#CF42AD#CF42AD
#CF42AD is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.4% C 0.209 H 339.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #CF42AD |
|---|---|
| RGB | rgb(207, 66, 173) |
| HSL | hsl(314, 59%, 54%) |
| HSV | hsv(314, 68%, 81%) |
| CMYK | cmyk(0%, 68.1%, 16.4%, 18.8%) |
| CIE-LAB | lab(52.04, 65.86, -27.77) |
| CIE-LCH | lch(52.04, 71.47, 337.14°) |
| OKLab | oklab(61.41% 0.1952 -0.0751) |
| OKLCH | oklch(61.41% 0.209 339) |
| XYZ | xyz(35.2239, 20.1822, 41.5675) |
| Luminance | 0.2018 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.49
Pinky Purple
#C94CBE
ΔE00 3.67
Purplish Pink
#CE5DAE
ΔE00 5.09
Purpleish Pink
#DF4EC8
ΔE00 5.63
Hot Magenta
#F504C9
ΔE00 6.43
Pinkish Purple
#D648D7
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF42AD #42CF64
analogous
#AA42CF #CF42AD #CF4266
triadic
#CF42AD #ADCF42 #42ADCF
tetradic
#CF42AD #CFAA42 #42CF64 #4266CF
square
#CF42AD #CFAA42 #42CF64 #4266CF
split-complementary
#CF42AD #66CF42 #42CFAA
monochromatic
#781F62 #A92B8B #CF42AD #DB73C2 #E8A4D7
Accessibility & contrast
On white
4.17
#CF42AD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#CF42AD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CF42AD
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF42AD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF42AD | 1.00 | 4.17 | 5.04 | 5.04 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#496EB0
Deuteranopia (green-blind)
#7684AA
Tritanopia (blue-blind)
#DA4772
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #cf42ad; /* rgb */ color: rgb(207, 66, 173); /* oklch */ color: oklch(61.4% 0.209 339.0);
Tailwind
colors: {
custom: {
50: '#e181c5',
500: '#cf42ad',
950: '#000000',
},
}SCSS
$custom: #cf42ad; $custom-light: #e181c5; $custom-dark: #000000;
JSON
{
"hex": "#cf42ad",
"rgb": {
"r": 207,
"g": 66,
"b": 173
},
"hsl": {
"h": 314.468,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.61412,
"c": 0.20912,
"h": 339
},
"luminance": 0.20179
}Semantic roles & 50–950 ramp
primary
#CF42AD
secondary
#98D5A7
accent
#E36B45
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82