#9E40AE#9E40AE
#9E40AE is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.3% C 0.185 H 321.6°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).
Color values
| HEX | #9E40AE |
|---|---|
| RGB | rgb(158, 64, 174) |
| HSL | hsl(291, 46%, 47%) |
| HSV | hsv(291, 63%, 68%) |
| CMYK | cmyk(9.2%, 63.2%, 0%, 31.8%) |
| CIE-LAB | lab(44.22, 54.56, -41.17) |
| CIE-LCH | lch(44.22, 68.35, 322.96°) |
| OKLab | oklab(54.26% 0.1446 -0.1147) |
| OKLCH | oklch(54.26% 0.185 321.6) |
| XYZ | xyz(23.5731, 13.9931, 41.4954) |
| Luminance | 0.1399 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.71
Medium Purple
#9E43A2
ΔE00 2.46
Ugly Purple
#A442A0
ΔE00 3.53
Barney
#AC1DB8
ΔE00 4.38
Darkorchid
#9932CC
ΔE00 5.86
Warm Purple
#952E8F
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E40AE #50AE40
analogous
#6740AE #9E40AE #AE4087
triadic
#9E40AE #AE9E40 #40AE9E
tetradic
#9E40AE #AE6740 #50AE40 #4087AE
square
#9E40AE #AE6740 #50AE40 #4087AE
split-complementary
#9E40AE #87AE40 #40AE67
monochromatic
#4D1F55 #753081 #9E40AE #B865C6 #CD92D7
Accessibility & contrast
On white
5.53
#9E40AE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.80
#9E40AE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E40AE
5.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E40AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E40AE | 1.00 | 5.53 | 3.80 | 5.53 |
| #FFFFFF | 5.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2662B1
Deuteranopia (green-blind)
#4C6CAB
Tritanopia (blue-blind)
#A05271
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #9e40ae; /* rgb */ color: rgb(158, 64, 174); /* oklch */ color: oklch(54.3% 0.185 321.6);
Tailwind
colors: {
custom: {
50: '#be7bc7',
500: '#9e40ae',
950: '#000000',
},
}SCSS
$custom: #9e40ae; $custom-light: #be7bc7; $custom-dark: #000000;
JSON
{
"hex": "#9e40ae",
"rgb": {
"r": 158,
"g": 64,
"b": 174
},
"hsl": {
"h": 291.273,
"s": 46.218,
"l": 46.667
},
"oklch": {
"l": 0.54256,
"c": 0.18451,
"h": 321.6
},
"luminance": 0.13992
}Semantic roles & 50–950 ramp
primary
#9E40AE
secondary
#90C288
accent
#D65265
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120A13
muted
#817C82