#9E2E97#9E2E97
#9E2E97 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.188 H 330.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #9E2E97 |
|---|---|
| RGB | rgb(158, 46, 151) |
| HSL | hsl(304, 55%, 40%) |
| HSV | hsv(304, 71%, 62%) |
| CMYK | cmyk(0%, 70.9%, 4.4%, 38%) |
| CIE-LAB | lab(40.34, 57.79, -33.57) |
| CIE-LCH | lch(40.34, 66.83, 329.85°) |
| OKLab | oklab(51.05% 0.1642 -0.0925) |
| OKLCH | oklch(51.05% 0.188 330.6) |
| XYZ | xyz(20.6634, 11.4590, 30.3957) |
| Luminance | 0.1146 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 1.95
Barney Purple
#A00498
ΔE00 3.57
Medium Purple
#9E43A2
ΔE00 4.15
Ugly Purple
#A442A0
ΔE00 4.24
Barney
#AC1DB8
ΔE00 5.56
Purply
#983FB2
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E2E97 #2E9E35
analogous
#6D2E9E #9E2E97 #9E2E5F
triadic
#9E2E97 #979E2E #2E979E
tetradic
#9E2E97 #9E6D2E #2E9E35 #2E5F9E
square
#9E2E97 #9E6D2E #2E9E35 #2E5F9E
split-complementary
#9E2E97 #5F9E2E #2E9E6D
monochromatic
#3F123C #6F206A #9E2E97 #C841BF #D671CF
Accessibility & contrast
On white
6.38
#9E2E97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#9E2E97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E2E97
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E2E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E2E97 | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#24559A
Deuteranopia (green-blind)
#4F6594
Tritanopia (blue-blind)
#A43B5F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #9e2e97; /* rgb */ color: rgb(158, 46, 151); /* oklch */ color: oklch(51.0% 0.188 330.6);
Tailwind
colors: {
custom: {
50: '#be71b6',
500: '#9e2e97',
950: '#000000',
},
}SCSS
$custom: #9e2e97; $custom-light: #be71b6; $custom-dark: #000000;
JSON
{
"hex": "#9e2e97",
"rgb": {
"r": 158,
"g": 46,
"b": 151
},
"hsl": {
"h": 303.75,
"s": 54.902,
"l": 40
},
"oklch": {
"l": 0.51048,
"c": 0.18847,
"h": 330.6
},
"luminance": 0.11457
}Semantic roles & 50–950 ramp
primary
#9E2E97
secondary
#6BBD70
accent
#DE534A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80