#8E2EA6#8E2EA6
#8E2EA6 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.193 H 318.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2EA6 |
|---|---|
| RGB | rgb(142, 46, 166) |
| HSL | hsl(288, 57%, 42%) |
| HSV | hsv(288, 72%, 65%) |
| CMYK | cmyk(14.5%, 72.3%, 0%, 34.9%) |
| CIE-LAB | lab(38.65, 56.85, -45.44) |
| CIE-LCH | lch(38.65, 72.78, 321.36°) |
| OKLab | oklab(49.61% 0.1455 -0.1275) |
| OKLCH | oklch(49.61% 0.193 318.8) |
| XYZ | xyz(19.0143, 10.4588, 37.0862) |
| Luminance | 0.1046 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.33
Purple (survey)
#7E1E9C
ΔE00 4.40
Warm Purple
#952E8F
ΔE00 5.13
Barney Purple
#A00498
ΔE00 5.26
Barney
#AC1DB8
ΔE00 5.35
Darkorchid
#9932CC
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2EA6 #46A62E
analogous
#522EA6 #8E2EA6 #A62E82
triadic
#8E2EA6 #A68E2E #2EA68E
tetradic
#8E2EA6 #A6522E #46A62E #2E82A6
square
#8E2EA6 #A6522E #46A62E #2E82A6
split-complementary
#8E2EA6 #82A62E #2EA652
monochromatic
#3C1346 #652176 #8E2EA6 #B146CC #C576D9
Accessibility & contrast
On white
6.79
#8E2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#8E2EA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E2EA6
6.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2EA6 | 1.00 | 6.79 | 3.09 | 6.79 |
| #FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#355EA3
Tritanopia (blue-blind)
#8E4667
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #8e2ea6; /* rgb */ color: rgb(142, 46, 166); /* oklch */ color: oklch(49.6% 0.193 318.8);
Tailwind
colors: {
custom: {
50: '#b370c1',
500: '#8e2ea6',
950: '#000000',
},
}SCSS
$custom: #8e2ea6; $custom-light: #b370c1; $custom-dark: #000000;
JSON
{
"hex": "#8e2ea6",
"rgb": {
"r": 142,
"g": 46,
"b": 166
},
"hsl": {
"h": 288,
"s": 56.604,
"l": 41.569
},
"oklch": {
"l": 0.49614,
"c": 0.19346,
"h": 318.8
},
"luminance": 0.10458
}Semantic roles & 50–950 ramp
primary
#8E2EA6
secondary
#7FC16F
accent
#E04866
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81