#8E2FAA#8E2FAA
#8E2FAA is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.196 H 317.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2FAA |
|---|---|
| RGB | rgb(142, 47, 170) |
| HSL | hsl(286, 57%, 43%) |
| HSV | hsv(286, 72%, 67%) |
| CMYK | cmyk(16.5%, 72.4%, 0%, 33.3%) |
| CIE-LAB | lab(39.05, 57.25, -47.20) |
| CIE-LCH | lch(39.05, 74.20, 320.50°) |
| OKLab | oklab(49.98% 0.1442 -0.1326) |
| OKLCH | oklch(49.98% 0.196 317.4) |
| XYZ | xyz(19.4265, 10.6869, 39.0619) |
| Luminance | 0.1069 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.02
Purple (survey)
#7E1E9C
ΔE00 4.66
Barney
#AC1DB8
ΔE00 5.21
Darkorchid
#9932CC
ΔE00 5.43
Warm Purple
#952E8F
ΔE00 5.77
Barney Purple
#A00498
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2FAA #4BAA2F
analogous
#502FAA #8E2FAA #AA2F89
triadic
#8E2FAA #AA8E2F #2FAA8E
tetradic
#8E2FAA #AA502F #4BAA2F #2F89AA
square
#8E2FAA #AA502F #4BAA2F #2F89AA
split-complementary
#8E2FAA #89AA2F #2FAA50
monochromatic
#3E144A #66227A #8E2FAA #AF49CD #C479DA
Accessibility & contrast
On white
6.69
#8E2FAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#8E2FAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E2FAA
6.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2FAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2FAA | 1.00 | 6.69 | 3.14 | 6.69 |
| #FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#325FA7
Tritanopia (blue-blind)
#8D486A
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8e2faa; /* rgb */ color: rgb(142, 47, 170); /* oklch */ color: oklch(50.0% 0.196 317.4);
Tailwind
colors: {
custom: {
50: '#b371c4',
500: '#8e2faa',
950: '#000000',
},
}SCSS
$custom: #8e2faa; $custom-light: #b371c4; $custom-dark: #000000;
JSON
{
"hex": "#8e2faa",
"rgb": {
"r": 142,
"g": 47,
"b": 170
},
"hsl": {
"h": 286.341,
"s": 56.682,
"l": 42.549
},
"oklch": {
"l": 0.49977,
"c": 0.1959,
"h": 317.4
},
"luminance": 0.10686
}Semantic roles & 50–950 ramp
primary
#8E2FAA
secondary
#85C272
accent
#E0486A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82