#CF31A7#CF31A7
#CF31A7 is a mid, highly saturated pink. Relative luminance 0.183; OKLCH L 59.7% C 0.224 H 340.5°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #CF31A7 |
|---|---|
| RGB | rgb(207, 49, 167) |
| HSL | hsl(315, 62%, 50%) |
| HSV | hsv(315, 76%, 81%) |
| CMYK | cmyk(0%, 76.3%, 19.3%, 18.8%) |
| CIE-LAB | lab(49.80, 70.62, -27.72) |
| CIE-LCH | lch(49.80, 75.87, 338.57°) |
| OKLab | oklab(59.7% 0.2112 -0.0748) |
| OKLCH | oklch(59.7% 0.224 340.5) |
| XYZ | xyz(33.8065, 18.2555, 38.2950) |
| Luminance | 0.1825 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.80
Pinky Purple
#C94CBE
ΔE00 5.50
Mediumvioletred
#C71585
ΔE00 6.82
Hot Magenta
#F504C9
ΔE00 7.32
Purplish Pink
#CE5DAE
ΔE00 7.49
Purpleish Pink
#DF4EC8
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF31A7 #31CF59
analogous
#A831CF #CF31A7 #CF3158
triadic
#CF31A7 #A7CF31 #31A7CF
tetradic
#CF31A7 #CFA831 #31CF59 #3158CF
square
#CF31A7 #CFA831 #31CF59 #3158CF
split-complementary
#CF31A7 #58CF31 #31CFA8
monochromatic
#6C1957 #9E257F #CF31A7 #DB63BC #E694D1
Accessibility & contrast
On white
4.52
#CF31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#CF31A7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CF31A7
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF31A7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF31A7 | 1.00 | 4.52 | 4.65 | 4.65 |
| #FFFFFF | 4.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E66AA
Deuteranopia (green-blind)
#727FA3
Tritanopia (blue-blind)
#DB3669
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #cf31a7; /* rgb */ color: rgb(207, 49, 167); /* oklch */ color: oklch(59.7% 0.224 340.5);
Tailwind
colors: {
custom: {
50: '#e27ac1',
500: '#cf31a7',
950: '#000000',
},
}SCSS
$custom: #cf31a7; $custom-light: #e27ac1; $custom-dark: #000000;
JSON
{
"hex": "#cf31a7",
"rgb": {
"r": 207,
"g": 49,
"b": 167
},
"hsl": {
"h": 315.19,
"s": 62.205,
"l": 50.196
},
"oklch": {
"l": 0.59704,
"c": 0.22407,
"h": 340.5
},
"luminance": 0.18252
}Semantic roles & 50–950 ramp
primary
#CF31A7
secondary
#8BD19C
accent
#E56C43
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160A12
muted
#847C81