#8E2AA5#8E2AA5
#8E2AA5 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.2% C 0.197 H 319.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2AA5 |
|---|---|
| RGB | rgb(142, 42, 165) |
| HSL | hsl(289, 59%, 41%) |
| HSV | hsv(289, 75%, 65%) |
| CMYK | cmyk(13.9%, 74.5%, 0%, 35.3%) |
| CIE-LAB | lab(38.06, 58.15, -45.79) |
| CIE-LCH | lch(38.06, 74.02, 321.78°) |
| OKLab | oklab(49.17% 0.1495 -0.1285) |
| OKLCH | oklch(49.17% 0.197 319.3) |
| XYZ | xyz(18.7739, 10.1242, 36.5553) |
| Luminance | 0.1012 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.93
Purply
#983FB2
ΔE00 4.90
Barney Purple
#A00498
ΔE00 4.91
Warm Purple
#952E8F
ΔE00 5.09
Barney
#AC1DB8
ΔE00 5.48
Darkmagenta
#8B008B
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2AA5 #41A52A
analogous
#502AA5 #8E2AA5 #A52A7F
triadic
#8E2AA5 #A58E2A #2AA58E
tetradic
#8E2AA5 #A5502A #41A52A #2A7FA5
square
#8E2AA5 #A5502A #41A52A #2A7FA5
split-complementary
#8E2AA5 #7FA52A #2AA550
monochromatic
#3A1143 #641E74 #8E2AA5 #B33ECE #C66FDA
Accessibility & contrast
On white
6.94
#8E2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#8E2AA5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E2AA5
6.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2AA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2AA5 | 1.00 | 6.94 | 3.02 | 6.94 |
| #FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#335DA2
Tritanopia (blue-blind)
#8E4366
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8e2aa5; /* rgb */ color: rgb(142, 42, 165); /* oklch */ color: oklch(49.2% 0.197 319.3);
Tailwind
colors: {
custom: {
50: '#b36ec0',
500: '#8e2aa5',
950: '#000000',
},
}SCSS
$custom: #8e2aa5; $custom-light: #b36ec0; $custom-dark: #000000;
JSON
{
"hex": "#8e2aa5",
"rgb": {
"r": 142,
"g": 42,
"b": 165
},
"hsl": {
"h": 288.78,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.49174,
"c": 0.19715,
"h": 319.3
},
"luminance": 0.10123
}Semantic roles & 50–950 ramp
primary
#8E2AA5
secondary
#7AC169
accent
#E34563
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81