#8E2AA4#8E2AA4
#8E2AA4 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.196 H 319.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2AA4 |
|---|---|
| RGB | rgb(142, 42, 164) |
| HSL | hsl(289, 59%, 40%) |
| HSV | hsv(289, 74%, 64%) |
| CMYK | cmyk(13.4%, 74.4%, 0%, 35.7%) |
| CIE-LAB | lab(38.00, 57.96, -45.29) |
| CIE-LCH | lch(38.00, 73.56, 322.00°) |
| OKLab | oklab(49.11% 0.1496 -0.127) |
| OKLCH | oklch(49.11% 0.196 319.7) |
| XYZ | xyz(18.6833, 10.0880, 36.0778) |
| Luminance | 0.1009 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.92
Barney Purple
#A00498
ΔE00 4.80
Warm Purple
#952E8F
ΔE00 4.93
Purply
#983FB2
ΔE00 4.96
Barney
#AC1DB8
ΔE00 5.53
Darkmagenta
#8B008B
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2AA4 #40A42A
analogous
#512AA4 #8E2AA4 #A42A7D
triadic
#8E2AA4 #A48E2A #2AA48E
tetradic
#8E2AA4 #A4512A #40A42A #2A7DA4
square
#8E2AA4 #A4512A #40A42A #2A7DA4
split-complementary
#8E2AA4 #7DA42A #2AA451
monochromatic
#3A1143 #641E73 #8E2AA4 #B43ECD #C76EDA
Accessibility & contrast
On white
6.96
#8E2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#8E2AA4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E2AA4
6.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2AA4 | 1.00 | 6.96 | 3.02 | 6.96 |
| #FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#345DA1
Tritanopia (blue-blind)
#8E4265
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #8e2aa4; /* rgb */ color: rgb(142, 42, 164); /* oklch */ color: oklch(49.1% 0.196 319.7);
Tailwind
colors: {
custom: {
50: '#b36ec0',
500: '#8e2aa4',
950: '#000000',
},
}SCSS
$custom: #8e2aa4; $custom-light: #b36ec0; $custom-dark: #000000;
JSON
{
"hex": "#8e2aa4",
"rgb": {
"r": 142,
"g": 42,
"b": 164
},
"hsl": {
"h": 289.18,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.49107,
"c": 0.19627,
"h": 319.7
},
"luminance": 0.10087
}Semantic roles & 50–950 ramp
primary
#8E2AA4
secondary
#79C169
accent
#E24562
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81