#9D42CD#9D42CD
#9D42CD is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.3% C 0.211 H 311.5°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #9D42CD |
|---|---|
| RGB | rgb(157, 66, 205) |
| HSL | hsl(279, 58%, 53%) |
| HSV | hsv(279, 68%, 80%) |
| CMYK | cmyk(23.4%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(46.28, 59.73, -55.97) |
| CIE-LCH | lch(46.28, 81.86, 316.86°) |
| OKLab | oklab(56.31% 0.1399 -0.158) |
| OKLCH | oklch(56.31% 0.211 311.5) |
| XYZ | xyz(26.8702, 15.4730, 59.3169) |
| Luminance | 0.1547 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.08
Purply
#983FB2
ΔE00 4.43
Vibrant Purple
#AD03DE
ΔE00 5.25
Lightish Purple
#A552E6
ΔE00 5.70
Barney
#AC1DB8
ΔE00 6.31
Blueviolet
#8A2BE2
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D42CD #72CD42
analogous
#5842CD #9D42CD #CD42B7
triadic
#9D42CD #CD9D42 #42CD9D
tetradic
#9D42CD #CD5842 #72CD42 #42B7CD
square
#9D42CD #CD5842 #72CD42 #42B7CD
split-complementary
#9D42CD #B7CD42 #42CD58
monochromatic
#581F76 #7C2CA6 #9D42CD #B672DA #CFA3E7
Accessibility & contrast
On white
5.13
#9D42CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#9D42CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9D42CD
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D42CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9D42CD | 1.00 | 5.13 | 4.09 | 5.13 |
| #FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#326FCA
Tritanopia (blue-blind)
#975F82
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #9d42cd; /* rgb */ color: rgb(157, 66, 205); /* oklch */ color: oklch(56.3% 0.211 311.5);
Tailwind
colors: {
custom: {
50: '#be7ddd',
500: '#9d42cd',
950: '#000000',
},
}SCSS
$custom: #9d42cd; $custom-light: #be7ddd; $custom-dark: #000000;
JSON
{
"hex": "#9d42cd",
"rgb": {
"r": 157,
"g": 66,
"b": 205
},
"hsl": {
"h": 279.281,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.56306,
"c": 0.21108,
"h": 311.5
},
"luminance": 0.15472
}Semantic roles & 50–950 ramp
primary
#9D42CD
secondary
#ACD397
accent
#E1467C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83