#9C42CB#9C42CB
#9C42CB is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.209 H 311.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #9C42CB |
|---|---|
| RGB | rgb(156, 66, 203) |
| HSL | hsl(279, 57%, 53%) |
| HSV | hsv(279, 67%, 80%) |
| CMYK | cmyk(23.2%, 67.5%, 0%, 20.4%) |
| CIE-LAB | lab(46.01, 59.09, -55.25) |
| CIE-LCH | lch(46.01, 80.90, 316.92°) |
| OKLab | oklab(56.05% 0.1389 -0.1559) |
| OKLCH | oklch(56.05% 0.209 311.7) |
| XYZ | xyz(26.4360, 15.2768, 58.0445) |
| Luminance | 0.1528 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.96
Purply
#983FB2
ΔE00 4.13
Vibrant Purple
#AD03DE
ΔE00 5.34
Lightish Purple
#A552E6
ΔE00 5.99
Barney
#AC1DB8
ΔE00 6.17
Blueviolet
#8A2BE2
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C42CB #71CB42
analogous
#5742CB #9C42CB #CB42B5
triadic
#9C42CB #CB9C42 #42CB9C
tetradic
#9C42CB #CB5742 #71CB42 #42B5CB
square
#9C42CB #CB5742 #71CB42 #42B5CB
split-complementary
#9C42CB #B5CB42 #42CB57
monochromatic
#562073 #7A2DA3 #9C42CB #B572D8 #CEA2E5
Accessibility & contrast
On white
5.18
#9C42CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#9C42CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9C42CB
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C42CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9C42CB | 1.00 | 5.18 | 4.06 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#336FC8
Tritanopia (blue-blind)
#965E81
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9c42cb; /* rgb */ color: rgb(156, 66, 203); /* oklch */ color: oklch(56.0% 0.209 311.7);
Tailwind
colors: {
custom: {
50: '#bd7ddc',
500: '#9c42cb',
950: '#000000',
},
}SCSS
$custom: #9c42cb; $custom-light: #bd7ddc; $custom-dark: #000000;
JSON
{
"hex": "#9c42cb",
"rgb": {
"r": 156,
"g": 66,
"b": 203
},
"hsl": {
"h": 279.416,
"s": 56.846,
"l": 52.745
},
"oklch": {
"l": 0.56047,
"c": 0.2088,
"h": 311.7
},
"luminance": 0.15276
}Semantic roles & 50–950 ramp
primary
#9C42CB
secondary
#ABD297
accent
#E0487C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83