#8E2EA8#8E2EA8
#8E2EA8 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.195 H 318.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2EA8 |
|---|---|
| RGB | rgb(142, 46, 168) |
| HSL | hsl(287, 57%, 42%) |
| HSV | hsv(287, 73%, 66%) |
| CMYK | cmyk(15.5%, 72.6%, 0%, 34.1%) |
| CIE-LAB | lab(38.78, 57.24, -46.43) |
| CIE-LCH | lch(38.78, 73.71, 320.95°) |
| OKLab | oklab(49.75% 0.1453 -0.1304) |
| OKLCH | oklch(49.75% 0.195 318.1) |
| XYZ | xyz(19.1992, 10.5328, 38.0599) |
| Luminance | 0.1053 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.23
Purple (survey)
#7E1E9C
ΔE00 4.45
Barney
#AC1DB8
ΔE00 5.28
Warm Purple
#952E8F
ΔE00 5.46
Barney Purple
#A00498
ΔE00 5.49
Darkorchid
#9932CC
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2EA8 #48A82E
analogous
#512EA8 #8E2EA8 #A82E85
triadic
#8E2EA8 #A88E2E #2EA88E
tetradic
#8E2EA8 #A8512E #48A82E #2E85A8
square
#8E2EA8 #A8512E #48A82E #2E85A8
split-complementary
#8E2EA8 #85A82E #2EA851
monochromatic
#3D1448 #652178 #8E2EA8 #B047CD #C577DA
Accessibility & contrast
On white
6.76
#8E2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.11
#8E2EA8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E2EA8
6.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2EA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2EA8 | 1.00 | 6.76 | 3.11 | 6.76 |
| #FFFFFF | 6.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#335EA5
Tritanopia (blue-blind)
#8D4668
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #8e2ea8; /* rgb */ color: rgb(142, 46, 168); /* oklch */ color: oklch(49.7% 0.195 318.1);
Tailwind
colors: {
custom: {
50: '#b370c2',
500: '#8e2ea8',
950: '#000000',
},
}SCSS
$custom: #8e2ea8; $custom-light: #b370c2; $custom-dark: #000000;
JSON
{
"hex": "#8e2ea8",
"rgb": {
"r": 142,
"g": 46,
"b": 168
},
"hsl": {
"h": 287.213,
"s": 57.009,
"l": 41.961
},
"oklch": {
"l": 0.49746,
"c": 0.19526,
"h": 318.1
},
"luminance": 0.10532
}Semantic roles & 50–950 ramp
primary
#8E2EA8
secondary
#82C270
accent
#E04868
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81