#8A2AAA

A color in the Purple, Crimson, Magenta family

#8a2aaa is a color in the Purple, Crimson, Magenta family: RGB(138, 42, 170), HSL(285°, 60%, 42%), CMYK(19%, 75%, 0%, 33%). Closest named color: darkorchid. Contrast is 7.02:1 on white and 2.99:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a2aaa
RGBrgb(138 42 170)
RGB (legacy)rgb(138, 42, 170)
RGB %rgb(54% 16% 67%)
HSLhsl(285 60% 42%)
HSV / HSBhsv(285, 75%, 67%)
HWBhwb(285 16% 33%)
CMYKcmyk(19%, 75%, 0%, 33%)
CIELAB (D50)lab(37.39 54.16 -49.55)
LCHlch(37.39 73.4 317.54)
OKLaboklab(0.4895 0.144 -0.1388)
OKLCHoklch(0.4895 0.2 316.04)
Decimal9054890

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkorchid ΔE 6.1
Closest web-safe color#993399
Hue285°
Saturation (HSL / HSV)60% / 75%
Lightness (HSL)42%
Brightness or Value (HSV)67%
Luminance (Rec.601 / Rec.709)33% / 28%
Relative luminance (WCAG)0.0996
Red / Green / Blue138 / 42 / 170

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.02:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.99:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 83.3 / -18.7 · As background with white / black text: Lc -88.3 / 20.8

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #8a2aaa;
  --color-brand-oklch: oklch(48.95% 0.2 316.04);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 42 170 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a2aaa] text-[#8a2aaa] border-[#8a2aaa]">