#8E319E#8E319E
#8E319E is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.183 H 321.4°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).
Color values
| HEX | #8E319E |
|---|---|
| RGB | rgb(142, 49, 158) |
| HSL | hsl(291, 53%, 41%) |
| HSV | hsv(291, 69%, 62%) |
| CMYK | cmyk(10.1%, 69%, 0%, 38%) |
| CIE-LAB | lab(38.58, 54.11, -40.75) |
| CIE-LCH | lch(38.58, 67.74, 323.01°) |
| OKLab | oklab(49.4% 0.1428 -0.1138) |
| OKLCH | oklch(49.4% 0.183 321.4) |
| XYZ | xyz(18.4245, 10.4170, 33.3813) |
| Luminance | 0.1042 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.71
Purply
#983FB2
ΔE00 4.62
Barney Purple
#A00498
ΔE00 4.72
Purple (survey)
#7E1E9C
ΔE00 4.87
Medium Purple
#9E43A2
ΔE00 5.45
Barney
#AC1DB8
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E319E #419E31
analogous
#58319E #8E319E #9E3177
triadic
#8E319E #9E8E31 #319E8E
tetradic
#8E319E #9E5831 #419E31 #31779E
square
#8E319E #9E5831 #419E31 #31779E
split-complementary
#8E319E #779E31 #319E58
monochromatic
#3A1441 #64236F #8E319E #B346C6 #C675D4
Accessibility & contrast
On white
6.81
#8E319E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#8E319E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E319E
6.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E319E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E319E | 1.00 | 6.81 | 3.08 | 6.81 |
| #FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B54A1
Deuteranopia (green-blind)
#3E5E9B
Tritanopia (blue-blind)
#8F4464
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #8e319e; /* rgb */ color: rgb(142, 49, 158); /* oklch */ color: oklch(49.4% 0.183 321.4);
Tailwind
colors: {
custom: {
50: '#b271bb',
500: '#8e319e',
950: '#000000',
},
}SCSS
$custom: #8e319e; $custom-light: #b271bb; $custom-dark: #000000;
JSON
{
"hex": "#8e319e",
"rgb": {
"r": 142,
"g": 49,
"b": 158
},
"hsl": {
"h": 291.193,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.49402,
"c": 0.18257,
"h": 321.4
},
"luminance": 0.10416
}Semantic roles & 50–950 ramp
primary
#8E319E
secondary
#7ABC6E
accent
#DC4C61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81