#CF31B2#CF31B2
#CF31B2 is a mid, highly saturated pink. Relative luminance 0.187; OKLCH L 60.2% C 0.231 H 336.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #CF31B2 |
|---|---|
| RGB | rgb(207, 49, 178) |
| HSL | hsl(311, 62%, 50%) |
| HSV | hsv(311, 76%, 81%) |
| CMYK | cmyk(0%, 76.3%, 14%, 18.8%) |
| CIE-LAB | lab(50.31, 72.11, -33.40) |
| CIE-LCH | lch(50.31, 79.47, 335.15°) |
| OKLab | oklab(60.23% 0.2124 -0.091) |
| OKLCH | oklch(60.23% 0.231 336.8) |
| XYZ | xyz(34.8670, 18.6797, 43.8801) |
| Luminance | 0.1868 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.02
Pinky Purple
#C94CBE
ΔE00 4.17
Hot Magenta
#F504C9
ΔE00 6.50
Purple Pink
#D725DE
ΔE00 6.76
Fuchsia (survey)
#ED0DD9
ΔE00 6.80
Purpleish Pink
#DF4EC8
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF31B2 #31CF4E
analogous
#9D31CF #CF31B2 #CF3163
triadic
#CF31B2 #B2CF31 #31B2CF
tetradic
#CF31B2 #CF9D31 #31CF4E #3163CF
square
#CF31B2 #CF9D31 #31CF4E #3163CF
split-complementary
#CF31B2 #63CF31 #31CF9D
monochromatic
#6C195D #9E2588 #CF31B2 #DB63C5 #E694D7
Accessibility & contrast
On white
4.43
#CF31B2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#CF31B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CF31B2
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF31B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF31B2 | 1.00 | 4.43 | 4.74 | 4.74 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#6D80AE
Tritanopia (blue-blind)
#DA3C6F
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #cf31b2; /* rgb */ color: rgb(207, 49, 178); /* oklch */ color: oklch(60.2% 0.231 336.8);
Tailwind
colors: {
custom: {
50: '#e27ac9',
500: '#cf31b2',
950: '#000000',
},
}SCSS
$custom: #cf31b2; $custom-light: #e27ac9; $custom-dark: #000000;
JSON
{
"hex": "#cf31b2",
"rgb": {
"r": 207,
"g": 49,
"b": 178
},
"hsl": {
"h": 311.013,
"s": 62.205,
"l": 50.196
},
"oklch": {
"l": 0.60233,
"c": 0.23107,
"h": 336.8
},
"luminance": 0.18676
}Semantic roles & 50–950 ramp
primary
#CF31B2
secondary
#8BD198
accent
#E56043
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82