#CF31A6#CF31A6
#CF31A6 is a mid, highly saturated pink. Relative luminance 0.182; OKLCH L 59.7% C 0.223 H 340.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #CF31A6 |
|---|---|
| RGB | rgb(207, 49, 166) |
| HSL | hsl(316, 62%, 50%) |
| HSV | hsv(316, 76%, 81%) |
| CMYK | cmyk(0%, 76.3%, 19.8%, 18.8%) |
| CIE-LAB | lab(49.76, 70.49, -27.20) |
| CIE-LCH | lch(49.76, 75.56, 338.90°) |
| OKLab | oklab(59.66% 0.2111 -0.0733) |
| OKLCH | oklch(59.66% 0.223 340.8) |
| XYZ | xyz(33.7144, 18.2186, 37.8100) |
| Luminance | 0.1822 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.98
Pinky Purple
#C94CBE
ΔE00 5.64
Mediumvioletred
#C71585
ΔE00 6.67
Hot Magenta
#F504C9
ΔE00 7.42
Purplish Pink
#CE5DAE
ΔE00 7.49
Ugly Purple
#A442A0
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF31A6 #31CF5A
analogous
#A931CF #CF31A6 #CF3157
triadic
#CF31A6 #A6CF31 #31A6CF
tetradic
#CF31A6 #CFA931 #31CF5A #3157CF
square
#CF31A6 #CFA931 #31CF5A #3157CF
split-complementary
#CF31A6 #57CF31 #31CFA9
monochromatic
#6C1957 #9E257F #CF31A6 #DB63BB #E694D1
Accessibility & contrast
On white
4.52
#CF31A6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#CF31A6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CF31A6
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF31A6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF31A6 | 1.00 | 4.52 | 4.64 | 4.64 |
| #FFFFFF | 4.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F66A9
Deuteranopia (green-blind)
#727FA2
Tritanopia (blue-blind)
#DC3569
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #cf31a6; /* rgb */ color: rgb(207, 49, 166); /* oklch */ color: oklch(59.7% 0.223 340.8);
Tailwind
colors: {
custom: {
50: '#e27ac0',
500: '#cf31a6',
950: '#000000',
},
}SCSS
$custom: #cf31a6; $custom-light: #e27ac0; $custom-dark: #000000;
JSON
{
"hex": "#cf31a6",
"rgb": {
"r": 207,
"g": 49,
"b": 166
},
"hsl": {
"h": 315.57,
"s": 62.205,
"l": 50.196
},
"oklch": {
"l": 0.59658,
"c": 0.22345,
"h": 340.8
},
"luminance": 0.18215
}Semantic roles & 50–950 ramp
primary
#CF31A6
secondary
#8BD19D
accent
#E56D43
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160A12
muted
#847C81