#9B42CB#9B42CB
#9B42CB is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.9% C 0.208 H 311.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #9B42CB |
|---|---|
| RGB | rgb(155, 66, 203) |
| HSL | hsl(279, 57%, 53%) |
| HSV | hsv(279, 67%, 80%) |
| CMYK | cmyk(23.6%, 67.5%, 0%, 20.4%) |
| CIE-LAB | lab(45.88, 58.88, -55.48) |
| CIE-LCH | lch(45.88, 80.89, 316.70°) |
| OKLab | oklab(55.92% 0.1376 -0.1566) |
| OKLCH | oklch(55.92% 0.208 311.3) |
| XYZ | xyz(26.2433, 15.1774, 58.0354) |
| Luminance | 0.1518 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.86
Purply
#983FB2
ΔE00 4.14
Vibrant Purple
#AD03DE
ΔE00 5.36
Lightish Purple
#A552E6
ΔE00 6.06
Blueviolet
#8A2BE2
ΔE00 6.20
Barney
#AC1DB8
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B42CB #72CB42
analogous
#5642CB #9B42CB #CB42B6
triadic
#9B42CB #CB9B42 #42CB9B
tetradic
#9B42CB #CB5642 #72CB42 #42B6CB
square
#9B42CB #CB5642 #72CB42 #42B6CB
split-complementary
#9B42CB #B6CB42 #42CB56
monochromatic
#562073 #7A2DA3 #9B42CB #B472D8 #CEA2E5
Accessibility & contrast
On white
5.20
#9B42CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#9B42CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9B42CB
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B42CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9B42CB | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#316EC8
Tritanopia (blue-blind)
#955E81
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9b42cb; /* rgb */ color: rgb(155, 66, 203); /* oklch */ color: oklch(55.9% 0.208 311.3);
Tailwind
colors: {
custom: {
50: '#bd7ddc',
500: '#9b42cb',
950: '#000000',
},
}SCSS
$custom: #9b42cb; $custom-light: #bd7ddc; $custom-dark: #000000;
JSON
{
"hex": "#9b42cb",
"rgb": {
"r": 155,
"g": 66,
"b": 203
},
"hsl": {
"h": 278.978,
"s": 56.846,
"l": 52.745
},
"oklch": {
"l": 0.55922,
"c": 0.20847,
"h": 311.3
},
"luminance": 0.15177
}Semantic roles & 50–950 ramp
primary
#9B42CB
secondary
#ACD297
accent
#E0487D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83