#CF42AF#CF42AF
#CF42AF is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.5% C 0.210 H 338.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #CF42AF |
|---|---|
| RGB | rgb(207, 66, 175) |
| HSL | hsl(314, 59%, 54%) |
| HSV | hsv(314, 68%, 81%) |
| CMYK | cmyk(0%, 68.1%, 15.5%, 18.8%) |
| CIE-LAB | lab(52.13, 66.14, -28.81) |
| CIE-LCH | lch(52.13, 72.14, 336.47°) |
| OKLab | oklab(61.51% 0.1955 -0.078) |
| OKLCH | oklch(61.51% 0.21 338.2) |
| XYZ | xyz(35.4189, 20.2602, 42.5944) |
| Luminance | 0.2026 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.18
Pinky Purple
#C94CBE
ΔE00 3.32
Purplish Pink
#CE5DAE
ΔE00 5.16
Purpleish Pink
#DF4EC8
ΔE00 5.40
Hot Magenta
#F504C9
ΔE00 6.27
Pinkish Purple
#D648D7
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF42AF #42CF62
analogous
#A842CF #CF42AF #CF4268
triadic
#CF42AF #AFCF42 #42AFCF
tetradic
#CF42AF #CFA842 #42CF62 #4268CF
square
#CF42AF #CFA842 #42CF62 #4268CF
split-complementary
#CF42AF #68CF42 #42CFA8
monochromatic
#781F64 #A92B8C #CF42AF #DB73C4 #E8A4D8
Accessibility & contrast
On white
4.16
#CF42AF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#CF42AF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CF42AF
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF42AF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF42AF | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#486EB2
Deuteranopia (green-blind)
#7584AC
Tritanopia (blue-blind)
#DA4873
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #cf42af; /* rgb */ color: rgb(207, 66, 175); /* oklch */ color: oklch(61.5% 0.210 338.2);
Tailwind
colors: {
custom: {
50: '#e181c7',
500: '#cf42af',
950: '#000000',
},
}SCSS
$custom: #cf42af; $custom-light: #e181c7; $custom-dark: #000000;
JSON
{
"hex": "#cf42af",
"rgb": {
"r": 207,
"g": 66,
"b": 175
},
"hsl": {
"h": 313.617,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.61505,
"c": 0.21047,
"h": 338.2
},
"luminance": 0.20257
}Semantic roles & 50–950 ramp
primary
#CF42AF
secondary
#98D5A6
accent
#E36945
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82