#CF31B4#CF31B4
#CF31B4 is a mid, highly saturated pink. Relative luminance 0.188; OKLCH L 60.3% C 0.232 H 336.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #CF31B4 |
|---|---|
| RGB | rgb(207, 49, 180) |
| HSL | hsl(310, 62%, 50%) |
| HSV | hsv(310, 76%, 81%) |
| CMYK | cmyk(0%, 76.3%, 13%, 18.8%) |
| CIE-LAB | lab(50.41, 72.39, -34.42) |
| CIE-LCH | lch(50.41, 80.15, 334.57°) |
| OKLab | oklab(60.33% 0.2126 -0.0939) |
| OKLCH | oklch(60.33% 0.232 336.2) |
| XYZ | xyz(35.0693, 18.7606, 44.9454) |
| Luminance | 0.1876 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 1.76
Pinky Purple
#C94CBE
ΔE00 3.99
Hot Magenta
#F504C9
ΔE00 6.40
Purple Pink
#D725DE
ΔE00 6.41
Fuchsia (survey)
#ED0DD9
ΔE00 6.56
Pinkish Purple
#D648D7
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF31B4 #31CF4C
analogous
#9B31CF #CF31B4 #CF3165
triadic
#CF31B4 #B4CF31 #31B4CF
tetradic
#CF31B4 #CF9B31 #31CF4C #3165CF
square
#CF31B4 #CF9B31 #31CF4C #3165CF
split-complementary
#CF31B4 #65CF31 #31CF9B
monochromatic
#6C195E #9E2589 #CF31B4 #DB63C6 #E694D8
Accessibility & contrast
On white
4.42
#CF31B4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#CF31B4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CF31B4
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF31B4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF31B4 | 1.00 | 4.42 | 4.75 | 4.75 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3469B7
Deuteranopia (green-blind)
#6D80B0
Tritanopia (blue-blind)
#DA3D70
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #cf31b4; /* rgb */ color: rgb(207, 49, 180); /* oklch */ color: oklch(60.3% 0.232 336.2);
Tailwind
colors: {
custom: {
50: '#e27acb',
500: '#cf31b4',
950: '#000000',
},
}SCSS
$custom: #cf31b4; $custom-light: #e27acb; $custom-dark: #000000;
JSON
{
"hex": "#cf31b4",
"rgb": {
"r": 207,
"g": 49,
"b": 180
},
"hsl": {
"h": 310.253,
"s": 62.205,
"l": 50.196
},
"oklch": {
"l": 0.60333,
"c": 0.2324,
"h": 336.2
},
"luminance": 0.18757
}Semantic roles & 50–950 ramp
primary
#CF31B4
secondary
#8BD197
accent
#E55E43
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82