#9E40AB#9E40AB
#9E40AB is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.1% C 0.182 H 322.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #9E40AB |
|---|---|
| RGB | rgb(158, 64, 171) |
| HSL | hsl(293, 46%, 46%) |
| HSV | hsv(293, 63%, 67%) |
| CMYK | cmyk(7.6%, 62.6%, 0%, 32.9%) |
| CIE-LAB | lab(44.06, 53.99, -39.66) |
| CIE-LCH | lch(44.06, 66.99, 323.70°) |
| OKLab | oklab(54.08% 0.1445 -0.1103) |
| OKLCH | oklch(54.08% 0.182 322.6) |
| XYZ | xyz(23.2839, 13.8774, 39.9723) |
| Luminance | 0.1388 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 1.93
Purply
#983FB2
ΔE00 2.14
Ugly Purple
#A442A0
ΔE00 3.03
Barney
#AC1DB8
ΔE00 4.54
Warm Purple
#952E8F
ΔE00 6.02
Darkorchid
#9932CC
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E40AB #4DAB40
analogous
#6840AB #9E40AB #AB4082
triadic
#9E40AB #AB9E40 #40AB9E
tetradic
#9E40AB #AB6840 #4DAB40 #4082AB
square
#9E40AB #AB6840 #4DAB40 #4082AB
split-complementary
#9E40AB #82AB40 #40AB68
monochromatic
#4C1F52 #752F7E #9E40AB #B963C5 #CD90D5
Accessibility & contrast
On white
5.56
#9E40AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#9E40AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E40AB
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E40AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E40AB | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2961AE
Deuteranopia (green-blind)
#4E6CA8
Tritanopia (blue-blind)
#A05070
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #9e40ab; /* rgb */ color: rgb(158, 64, 171); /* oklch */ color: oklch(54.1% 0.182 322.6);
Tailwind
colors: {
custom: {
50: '#be7bc4',
500: '#9e40ab',
950: '#000000',
},
}SCSS
$custom: #9e40ab; $custom-light: #be7bc4; $custom-dark: #000000;
JSON
{
"hex": "#9e40ab",
"rgb": {
"r": 158,
"g": 64,
"b": 171
},
"hsl": {
"h": 292.71,
"s": 45.532,
"l": 46.078
},
"oklch": {
"l": 0.54082,
"c": 0.18174,
"h": 322.6
},
"luminance": 0.13876
}Semantic roles & 50–950 ramp
primary
#9E40AB
secondary
#8DC186
accent
#D55362
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120A13
muted
#817C82