#CF42AB#CF42AB
#CF42AB is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.3% C 0.208 H 339.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #CF42AB |
|---|---|
| RGB | rgb(207, 66, 171) |
| HSL | hsl(315, 59%, 54%) |
| HSV | hsv(315, 68%, 81%) |
| CMYK | cmyk(0%, 68.1%, 17.4%, 18.8%) |
| CIE-LAB | lab(51.96, 65.58, -26.73) |
| CIE-LCH | lch(51.96, 70.82, 337.82°) |
| OKLab | oklab(61.32% 0.1949 -0.0721) |
| OKLCH | oklch(61.32% 0.208 339.7) |
| XYZ | xyz(35.0319, 20.1054, 40.5559) |
| Luminance | 0.2010 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.81
Pinky Purple
#C94CBE
ΔE00 4.02
Purplish Pink
#CE5DAE
ΔE00 5.05
Purpleish Pink
#DF4EC8
ΔE00 5.87
Hot Magenta
#F504C9
ΔE00 6.62
Bright Pink
#FE01B1
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF42AB #42CF66
analogous
#AC42CF #CF42AB #CF4264
triadic
#CF42AB #ABCF42 #42ABCF
tetradic
#CF42AB #CFAC42 #42CF66 #4264CF
square
#CF42AB #CFAC42 #42CF66 #4264CF
split-complementary
#CF42AB #64CF42 #42CFAC
monochromatic
#781F61 #A92B89 #CF42AB #DB73C1 #E8A4D6
Accessibility & contrast
On white
4.18
#CF42AB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.02
#CF42AB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CF42AB
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF42AB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF42AB | 1.00 | 4.18 | 5.02 | 5.02 |
| #FFFFFF | 4.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A6EAE
Deuteranopia (green-blind)
#7784A8
Tritanopia (blue-blind)
#DB4671
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #cf42ab; /* rgb */ color: rgb(207, 66, 171); /* oklch */ color: oklch(61.3% 0.208 339.7);
Tailwind
colors: {
custom: {
50: '#e181c4',
500: '#cf42ab',
950: '#000000',
},
}SCSS
$custom: #cf42ab; $custom-light: #e181c4; $custom-dark: #000000;
JSON
{
"hex": "#cf42ab",
"rgb": {
"r": 207,
"g": 66,
"b": 171
},
"hsl": {
"h": 315.319,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.61321,
"c": 0.20779,
"h": 339.7
},
"luminance": 0.20102
}Semantic roles & 50–950 ramp
primary
#CF42AB
secondary
#98D5A8
accent
#E36D45
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81