#9E42BB#9E42BB
#9E42BB is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.194 H 317.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #9E42BB |
|---|---|
| RGB | rgb(158, 66, 187) |
| HSL | hsl(286, 48%, 50%) |
| HSV | hsv(286, 65%, 73%) |
| CMYK | cmyk(15.5%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(45.30, 56.23, -47.09) |
| CIE-LCH | lch(45.30, 73.34, 320.05°) |
| OKLab | oklab(55.27% 0.1422 -0.132) |
| OKLCH | oklch(55.27% 0.194 317.1) |
| XYZ | xyz(25.0171, 14.7544, 48.5342) |
| Luminance | 0.1475 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.90
Darkorchid
#9932CC
ΔE00 4.22
Medium Purple
#9E43A2
ΔE00 4.67
Barney
#AC1DB8
ΔE00 4.77
Ugly Purple
#A442A0
ΔE00 5.62
Vibrant Purple
#AD03DE
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E42BB #5FBB42
analogous
#6242BB #9E42BB #BB429C
triadic
#9E42BB #BB9E42 #42BB9E
tetradic
#9E42BB #BB6242 #5FBB42 #429CBB
square
#9E42BB #BB6242 #5FBB42 #429CBB
split-complementary
#9E42BB #9CBB42 #42BB62
monochromatic
#522261 #78328E #9E42BB #B56ECC #CC9CDC
Accessibility & contrast
On white
5.32
#9E42BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#9E42BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E42BB
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E42BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E42BB | 1.00 | 5.32 | 3.95 | 5.32 |
| #FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1565BF
Deuteranopia (green-blind)
#456EB8
Tritanopia (blue-blind)
#9D5879
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #9e42bb; /* rgb */ color: rgb(158, 66, 187); /* oklch */ color: oklch(55.3% 0.194 317.1);
Tailwind
colors: {
custom: {
50: '#be7dd0',
500: '#9e42bb',
950: '#000000',
},
}SCSS
$custom: #9e42bb; $custom-light: #be7dd0; $custom-dark: #000000;
JSON
{
"hex": "#9e42bb",
"rgb": {
"r": 158,
"g": 66,
"b": 187
},
"hsl": {
"h": 285.62,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.55273,
"c": 0.194,
"h": 317.1
},
"luminance": 0.14753
}Semantic roles & 50–950 ramp
primary
#9E42BB
secondary
#9EC891
accent
#D75071
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82