#8E2B9B#8E2B9B
#8E2B9B is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.187 H 322.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2B9B |
|---|---|
| RGB | rgb(142, 43, 155) |
| HSL | hsl(293, 57%, 39%) |
| HSV | hsv(293, 72%, 61%) |
| CMYK | cmyk(8.4%, 72.3%, 0%, 39.2%) |
| CIE-LAB | lab(37.56, 55.90, -40.56) |
| CIE-LCH | lch(37.56, 69.07, 324.04°) |
| OKLab | oklab(48.62% 0.1492 -0.1132) |
| OKLCH | oklch(48.62% 0.187 322.8) |
| XYZ | xyz(17.9350, 9.8461, 31.9598) |
| Luminance | 0.0984 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.42
Barney Purple
#A00498
ΔE00 3.99
Purple (survey)
#7E1E9C
ΔE00 4.30
Darkmagenta
#8B008B
ΔE00 4.81
Purply
#983FB2
ΔE00 5.60
Barney
#AC1DB8
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2B9B #389B2B
analogous
#562B9B #8E2B9B #9B2B70
triadic
#8E2B9B #9B8E2B #2B9B8E
tetradic
#8E2B9B #9B562B #389B2B #2B709B
square
#8E2B9B #9B562B #389B2B #2B709B
split-complementary
#8E2B9B #709B2B #2B9B56
monochromatic
#36103B #621E6B #8E2B9B #B83BC9 #C96BD6
Accessibility & contrast
On white
7.07
#8E2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#8E2B9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E2B9B
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2B9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2B9B | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00519E
Deuteranopia (green-blind)
#3C5C98
Tritanopia (blue-blind)
#903F60
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #8e2b9b; /* rgb */ color: rgb(142, 43, 155); /* oklch */ color: oklch(48.6% 0.187 322.8);
Tailwind
colors: {
custom: {
50: '#b26eb9',
500: '#8e2b9b',
950: '#000000',
},
}SCSS
$custom: #8e2b9b; $custom-light: #b26eb9; $custom-dark: #000000;
JSON
{
"hex": "#8e2b9b",
"rgb": {
"r": 142,
"g": 43,
"b": 155
},
"hsl": {
"h": 293.036,
"s": 56.566,
"l": 38.824
},
"oklch": {
"l": 0.48616,
"c": 0.18731,
"h": 322.8
},
"luminance": 0.09845
}Semantic roles & 50–950 ramp
primary
#8E2B9B
secondary
#6FBC65
accent
#E0485A
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80