#9B42DC#9B42DC
#9B42DC is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.225 H 307.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #9B42DC |
|---|---|
| RGB | rgb(155, 66, 220) |
| HSL | hsl(275, 69%, 56%) |
| HSV | hsv(275, 70%, 86%) |
| CMYK | cmyk(29.5%, 70%, 0%, 13.7%) |
| CIE-LAB | lab(47.02, 62.57, -63.38) |
| CIE-LCH | lch(47.02, 89.06, 314.63°) |
| OKLab | oklab(57.1% 0.1356 -0.1798) |
| OKLCH | oklch(57.1% 0.225 307) |
| XYZ | xyz(28.3813, 16.0326, 69.2957) |
| Luminance | 0.1603 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.96
Lightish Purple
#A552E6
ΔE00 4.59
Electric Purple
#AA23FF
ΔE00 4.86
Bright Violet
#AD0AFD
ΔE00 5.30
Vibrant Purple
#AD03DE
ΔE00 5.34
Blueviolet
#8A2BE2
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B42DC #83DC42
analogous
#4E42DC #9B42DC #DC42D0
triadic
#9B42DC #DC9B42 #42DC9B
tetradic
#9B42DC #DC4E42 #83DC42 #42D0DC
square
#9B42DC #DC4E42 #83DC42 #42D0DC
split-complementary
#9B42DC #D0DC42 #42DC4E
monochromatic
#5B1A8A #7C23BE #9B42DC #B676E6 #D2A9EF
Accessibility & contrast
On white
4.99
#9B42DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#9B42DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9B42DC
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B42DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9B42DC | 1.00 | 4.99 | 4.21 | 4.99 |
| #FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#0D70D9
Tritanopia (blue-blind)
#90658B
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #9b42dc; /* rgb */ color: rgb(155, 66, 220); /* oklch */ color: oklch(57.1% 0.225 307.0);
Tailwind
colors: {
custom: {
50: '#be7de8',
500: '#9b42dc',
950: '#000000',
},
}SCSS
$custom: #9b42dc; $custom-light: #be7de8; $custom-dark: #000000;
JSON
{
"hex": "#9b42dc",
"rgb": {
"r": 155,
"g": 66,
"b": 220
},
"hsl": {
"h": 274.675,
"s": 68.75,
"l": 56.078
},
"oklch": {
"l": 0.57099,
"c": 0.22525,
"h": 307
},
"luminance": 0.16032
}Semantic roles & 50–950 ramp
primary
#9B42DC
secondary
#B8DD9D
accent
#EC3C86
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84