#CF317E#CF317E
#CF317E is a mid, highly saturated pink. Relative luminance 0.170; OKLCH L 58.0% C 0.203 H 356.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #CF317E |
|---|---|
| RGB | rgb(207, 49, 126) |
| HSL | hsl(331, 62%, 50%) |
| HSV | hsv(331, 76%, 81%) |
| CMYK | cmyk(0%, 76.3%, 39.1%, 18.8%) |
| CIE-LAB | lab(48.23, 65.85, -5.55) |
| CIE-LCH | lch(48.23, 66.08, 355.18°) |
| OKLab | oklab(58.04% 0.2024 -0.0138) |
| OKLCH | oklch(58.04% 0.203 356.1) |
| XYZ | xyz(30.5985, 16.9723, 21.3993) |
| Luminance | 0.1697 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 5.12
Darkish Pink
#DA467D
ΔE00 5.60
Dark Hot Pink
#D90166
ΔE00 5.87
Magenta (survey)
#C20078
ΔE00 5.91
Dark Pink
#CB416B
ΔE00 6.16
Deep Pink
#CB0162
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF317E #31CF82
analogous
#CF31CD #CF317E #CF3331
triadic
#CF317E #7ECF31 #317ECF
tetradic
#CF317E #CDCF31 #31CF82 #3331CF
square
#CF317E #CDCF31 #31CF82 #3331CF
split-complementary
#CF317E #31CF33 #31CDCF
monochromatic
#6C1942 #9E2560 #CF317E #DB639D #E694BC
Accessibility & contrast
On white
4.78
#CF317E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#CF317E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #CF317E
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##CF317E | 1.00 | 4.78 | 4.39 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#526080
Deuteranopia (green-blind)
#7E7D7A
Tritanopia (blue-blind)
#E01A54
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #cf317e; /* rgb */ color: rgb(207, 49, 126); /* oklch */ color: oklch(58.0% 0.203 356.1);
Tailwind
colors: {
custom: {
50: '#e378a3',
500: '#cf317e',
950: '#000000',
},
}SCSS
$custom: #cf317e; $custom-light: #e378a3; $custom-dark: #000000;
JSON
{
"hex": "#cf317e",
"rgb": {
"r": 207,
"g": 49,
"b": 126
},
"hsl": {
"h": 330.759,
"s": 62.205,
"l": 50.196
},
"oklch": {
"l": 0.5804,
"c": 0.20285,
"h": 356.1
},
"luminance": 0.16968
}Semantic roles & 50–950 ramp
primary
#CF317E
secondary
#8BD1AF
accent
#E59643
background
#FEF7FA
surface
#FDEEF3
border
#D5C9CD
text
#160A0F
muted
#847C7F