#9C42CC#9C42CC
#9C42CC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.210 H 311.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #9C42CC |
|---|---|
| RGB | rgb(156, 66, 204) |
| HSL | hsl(279, 58%, 53%) |
| HSV | hsv(279, 68%, 80%) |
| CMYK | cmyk(23.5%, 67.6%, 0%, 20%) |
| CIE-LAB | lab(46.08, 59.30, -55.72) |
| CIE-LCH | lch(46.08, 81.38, 316.78°) |
| OKLab | oklab(56.11% 0.1388 -0.1573) |
| OKLCH | oklch(56.11% 0.21 311.4) |
| XYZ | xyz(26.5556, 15.3246, 58.6741) |
| Luminance | 0.1532 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.97
Purply
#983FB2
ΔE00 4.28
Vibrant Purple
#AD03DE
ΔE00 5.30
Lightish Purple
#A552E6
ΔE00 5.88
Blueviolet
#8A2BE2
ΔE00 6.26
Barney
#AC1DB8
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C42CC #72CC42
analogous
#5742CC #9C42CC #CC42B7
triadic
#9C42CC #CC9C42 #42CC9C
tetradic
#9C42CC #CC5742 #72CC42 #42B7CC
square
#9C42CC #CC5742 #72CC42 #42B7CC
split-complementary
#9C42CC #B7CC42 #42CC57
monochromatic
#571F74 #7B2CA4 #9C42CC #B572D9 #CEA2E6
Accessibility & contrast
On white
5.17
#9C42CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#9C42CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9C42CC
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C42CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9C42CC | 1.00 | 5.17 | 4.06 | 5.17 |
| #FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#326FC9
Tritanopia (blue-blind)
#965F82
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9c42cc; /* rgb */ color: rgb(156, 66, 204); /* oklch */ color: oklch(56.1% 0.210 311.4);
Tailwind
colors: {
custom: {
50: '#bd7ddc',
500: '#9c42cc',
950: '#000000',
},
}SCSS
$custom: #9c42cc; $custom-light: #bd7ddc; $custom-dark: #000000;
JSON
{
"hex": "#9c42cc",
"rgb": {
"r": 156,
"g": 66,
"b": 204
},
"hsl": {
"h": 279.13,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.56114,
"c": 0.20977,
"h": 311.4
},
"luminance": 0.15324
}Semantic roles & 50–950 ramp
primary
#9C42CC
secondary
#ACD397
accent
#E1477D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83