#8E2BA6#8E2BA6
#8E2BA6 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.197 H 318.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2BA6 |
|---|---|
| RGB | rgb(142, 43, 166) |
| HSL | hsl(288, 59%, 41%) |
| HSV | hsv(288, 74%, 65%) |
| CMYK | cmyk(14.5%, 74.1%, 0%, 34.9%) |
| CIE-LAB | lab(38.26, 57.98, -46.08) |
| CIE-LCH | lch(38.26, 74.06, 321.52°) |
| OKLab | oklab(49.33% 0.1485 -0.1293) |
| OKLCH | oklch(49.33% 0.197 318.9) |
| XYZ | xyz(18.9012, 10.2326, 37.0485) |
| Luminance | 0.1023 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.06
Purply
#983FB2
ΔE00 4.72
Barney Purple
#A00498
ΔE00 5.08
Warm Purple
#952E8F
ΔE00 5.21
Barney
#AC1DB8
ΔE00 5.41
Darkmagenta
#8B008B
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2BA6 #43A62B
analogous
#502BA6 #8E2BA6 #A62B80
triadic
#8E2BA6 #A68E2B #2BA68E
tetradic
#8E2BA6 #A6502B #43A62B #2B80A6
square
#8E2BA6 #A6502B #43A62B #2B80A6
split-complementary
#8E2BA6 #80A62B #2BA650
monochromatic
#3B1245 #641E75 #8E2BA6 #B241CE #C671DA
Accessibility & contrast
On white
6.89
#8E2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#8E2BA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E2BA6
6.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2BA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2BA6 | 1.00 | 6.89 | 3.05 | 6.89 |
| #FFFFFF | 6.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#335DA3
Tritanopia (blue-blind)
#8E4466
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8e2ba6; /* rgb */ color: rgb(142, 43, 166); /* oklch */ color: oklch(49.3% 0.197 318.9);
Tailwind
colors: {
custom: {
50: '#b36fc1',
500: '#8e2ba6',
950: '#000000',
},
}SCSS
$custom: #8e2ba6; $custom-light: #b36fc1; $custom-dark: #000000;
JSON
{
"hex": "#8e2ba6",
"rgb": {
"r": 142,
"g": 43,
"b": 166
},
"hsl": {
"h": 288.293,
"s": 58.852,
"l": 40.98
},
"oklch": {
"l": 0.49331,
"c": 0.19691,
"h": 318.9
},
"luminance": 0.10232
}Semantic roles & 50–950 ramp
primary
#8E2BA6
secondary
#7CC16B
accent
#E24664
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81