#8E2BA5#8E2BA5
#8E2BA5 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.196 H 319.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2BA5 |
|---|---|
| RGB | rgb(142, 43, 165) |
| HSL | hsl(289, 59%, 41%) |
| HSV | hsv(289, 74%, 65%) |
| CMYK | cmyk(13.9%, 73.9%, 0%, 35.3%) |
| CIE-LAB | lab(38.19, 57.79, -45.58) |
| CIE-LCH | lch(38.19, 73.60, 321.73°) |
| OKLab | oklab(49.26% 0.1486 -0.1279) |
| OKLCH | oklch(49.26% 0.196 319.3) |
| XYZ | xyz(18.8099, 10.1961, 36.5673) |
| Luminance | 0.1019 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.04
Purply
#983FB2
ΔE00 4.77
Barney Purple
#A00498
ΔE00 4.96
Warm Purple
#952E8F
ΔE00 5.05
Barney
#AC1DB8
ΔE00 5.45
Darkmagenta
#8B008B
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2BA5 #42A52B
analogous
#512BA5 #8E2BA5 #A52B7F
triadic
#8E2BA5 #A58E2B #2BA58E
tetradic
#8E2BA5 #A5512B #42A52B #2B7FA5
square
#8E2BA5 #A5512B #42A52B #2B7FA5
split-complementary
#8E2BA5 #7FA52B #2BA551
monochromatic
#3A1244 #641E74 #8E2BA5 #B340CD #C671DA
Accessibility & contrast
On white
6.91
#8E2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#8E2BA5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8E2BA5
6.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2BA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2BA5 | 1.00 | 6.91 | 3.04 | 6.91 |
| #FFFFFF | 6.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#345DA2
Tritanopia (blue-blind)
#8E4366
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8e2ba5; /* rgb */ color: rgb(142, 43, 165); /* oklch */ color: oklch(49.3% 0.196 319.3);
Tailwind
colors: {
custom: {
50: '#b36fc0',
500: '#8e2ba5',
950: '#000000',
},
}SCSS
$custom: #8e2ba5; $custom-light: #b36fc0; $custom-dark: #000000;
JSON
{
"hex": "#8e2ba5",
"rgb": {
"r": 142,
"g": 43,
"b": 165
},
"hsl": {
"h": 288.689,
"s": 58.654,
"l": 40.784
},
"oklch": {
"l": 0.49264,
"c": 0.19603,
"h": 319.3
},
"luminance": 0.10195
}Semantic roles & 50–950 ramp
primary
#8E2BA5
secondary
#7BC16B
accent
#E24663
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81