#CD42A6#CD42A6
#CD42A6 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.8% C 0.203 H 341.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #CD42A6 |
|---|---|
| RGB | rgb(205, 66, 166) |
| HSL | hsl(317, 58%, 53%) |
| HSV | hsv(317, 68%, 80%) |
| CMYK | cmyk(0%, 67.8%, 19%, 19.6%) |
| CIE-LAB | lab(51.42, 64.37, -24.66) |
| CIE-LCH | lch(51.42, 68.93, 339.04°) |
| OKLab | oklab(60.8% 0.1921 -0.0663) |
| OKLCH | oklch(60.8% 0.203 341) |
| XYZ | xyz(34.0089, 19.6320, 38.0673) |
| Luminance | 0.1963 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.38
Pinky Purple
#C94CBE
ΔE00 4.81
Purplish Pink
#CE5DAE
ΔE00 5.26
Purpleish Pink
#DF4EC8
ΔE00 6.71
Hot Magenta
#F504C9
ΔE00 7.35
Bright Pink
#FE01B1
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD42A6 #42CD69
analogous
#AF42CD #CD42A6 #CD4260
triadic
#CD42A6 #A6CD42 #42A6CD
tetradic
#CD42A6 #CDAF42 #42CD69 #4260CD
square
#CD42A6 #CDAF42 #42CD69 #4260CD
split-complementary
#CD42A6 #60CD42 #42CDAF
monochromatic
#761F5D #A62C84 #CD42A6 #DA72BD #E7A3D4
Accessibility & contrast
On white
4.26
#CD42A6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#CD42A6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CD42A6
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD42A6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD42A6 | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C6CA9
Deuteranopia (green-blind)
#7783A3
Tritanopia (blue-blind)
#D9456E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #cd42a6; /* rgb */ color: rgb(205, 66, 166); /* oklch */ color: oklch(60.8% 0.203 341.0);
Tailwind
colors: {
custom: {
50: '#e081c0',
500: '#cd42a6',
950: '#000000',
},
}SCSS
$custom: #cd42a6; $custom-light: #e081c0; $custom-dark: #000000;
JSON
{
"hex": "#cd42a6",
"rgb": {
"r": 205,
"g": 66,
"b": 166
},
"hsl": {
"h": 316.835,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.60798,
"c": 0.20321,
"h": 341
},
"luminance": 0.19629
}Semantic roles & 50–950 ramp
primary
#CD42A6
secondary
#97D3A8
accent
#E17246
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81