#9E2AB6#9E2AB6
#9E2AB6 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.218 H 320.0°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #9E2AB6 |
|---|---|
| RGB | rgb(158, 42, 182) |
| HSL | hsl(290, 63%, 44%) |
| HSV | hsv(290, 77%, 71%) |
| CMYK | cmyk(13.2%, 76.9%, 0%, 28.6%) |
| CIE-LAB | lab(41.69, 64.56, -49.93) |
| CIE-LCH | lch(41.69, 81.62, 322.28°) |
| OKLab | oklab(52.6% 0.1669 -0.1401) |
| OKLCH | oklch(52.6% 0.218 320) |
| XYZ | xyz(23.3710, 12.3036, 45.3907) |
| Luminance | 0.1230 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Barney
#AC1DB8
ΔE00 2.39
Purply
#983FB2
ΔE00 3.14
Darkorchid
#9932CC
ΔE00 3.93
Vibrant Purple
#AD03DE
ΔE00 5.66
Medium Purple
#9E43A2
ΔE00 5.72
Darkviolet
#9400D3
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E2AB6 #42B62A
analogous
#582AB6 #9E2AB6 #B62A88
triadic
#9E2AB6 #B69E2A #2AB69E
tetradic
#9E2AB6 #B6582A #42B62A #2A88B6
square
#9E2AB6 #B6582A #42B62A #2A88B6
split-complementary
#9E2AB6 #88B62A #2AB658
monochromatic
#481353 #731F84 #9E2AB6 #BD48D5 #CF7AE0
Accessibility & contrast
On white
6.07
#9E2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#9E2AB6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E2AB6
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E2AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E2AB6 | 1.00 | 6.07 | 3.46 | 6.07 |
| #FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#3866B3
Tritanopia (blue-blind)
#9E476F
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #9e2ab6; /* rgb */ color: rgb(158, 42, 182); /* oklch */ color: oklch(52.6% 0.218 320.0);
Tailwind
colors: {
custom: {
50: '#bf71cd',
500: '#9e2ab6',
950: '#000000',
},
}SCSS
$custom: #9e2ab6; $custom-light: #bf71cd; $custom-dark: #000000;
JSON
{
"hex": "#9e2ab6",
"rgb": {
"r": 158,
"g": 42,
"b": 182
},
"hsl": {
"h": 289.714,
"s": 62.5,
"l": 43.922
},
"oklch": {
"l": 0.526,
"c": 0.21794,
"h": 320
},
"luminance": 0.12302
}Semantic roles & 50–950 ramp
primary
#9E2AB6
secondary
#82C873
accent
#E6425E
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82