#9E42BC#9E42BC
#9E42BC is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.195 H 316.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #9E42BC |
|---|---|
| RGB | rgb(158, 66, 188) |
| HSL | hsl(285, 48%, 50%) |
| HSV | hsv(285, 65%, 74%) |
| CMYK | cmyk(16%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(45.36, 56.43, -47.58) |
| CIE-LCH | lch(45.36, 73.81, 319.86°) |
| OKLab | oklab(55.34% 0.1422 -0.1334) |
| OKLCH | oklch(55.34% 0.195 316.8) |
| XYZ | xyz(25.1245, 14.7973, 49.0999) |
| Luminance | 0.1480 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.01
Darkorchid
#9932CC
ΔE00 4.11
Barney
#AC1DB8
ΔE00 4.82
Medium Purple
#9E43A2
ΔE00 4.84
Ugly Purple
#A442A0
ΔE00 5.78
Vibrant Purple
#AD03DE
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E42BC #60BC42
analogous
#6142BC #9E42BC #BC429D
triadic
#9E42BC #BC9E42 #42BC9E
tetradic
#9E42BC #BC6142 #60BC42 #429DBC
square
#9E42BC #BC6142 #60BC42 #429DBC
split-complementary
#9E42BC #9DBC42 #42BC61
monochromatic
#522261 #78328F #9E42BC #B56FCC #CD9CDC
Accessibility & contrast
On white
5.30
#9E42BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#9E42BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E42BC
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E42BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E42BC | 1.00 | 5.30 | 3.96 | 5.30 |
| #FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1366C0
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#9D5879
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #9e42bc; /* rgb */ color: rgb(158, 66, 188); /* oklch */ color: oklch(55.3% 0.195 316.8);
Tailwind
colors: {
custom: {
50: '#be7dd1',
500: '#9e42bc',
950: '#000000',
},
}SCSS
$custom: #9e42bc; $custom-light: #be7dd1; $custom-dark: #000000;
JSON
{
"hex": "#9e42bc",
"rgb": {
"r": 158,
"g": 66,
"b": 188
},
"hsl": {
"h": 285.246,
"s": 48.031,
"l": 49.804
},
"oklch": {
"l": 0.55335,
"c": 0.19496,
"h": 316.8
},
"luminance": 0.14796
}Semantic roles & 50–950 ramp
primary
#9E42BC
secondary
#9FC991
accent
#D85071
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82