#CF317C#CF317C
#CF317C is a mid, highly saturated pink. Relative luminance 0.169; OKLCH L 58.0% C 0.202 H 356.9°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #CF317C |
|---|---|
| RGB | rgb(207, 49, 124) |
| HSL | hsl(332, 62%, 50%) |
| HSV | hsv(332, 76%, 81%) |
| CMYK | cmyk(0%, 76.3%, 40.1%, 18.8%) |
| CIE-LAB | lab(48.16, 65.65, -4.43) |
| CIE-LCH | lch(48.16, 65.80, 356.14°) |
| OKLab | oklab(57.97% 0.2018 -0.0108) |
| OKLCH | oklch(57.97% 0.202 356.9) |
| XYZ | xyz(30.4707, 16.9212, 20.7264) |
| Luminance | 0.1692 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Darkish Pink
#DA467D
ΔE00 5.40
Mediumvioletred
#C71585
ΔE00 5.43
Dark Hot Pink
#D90166
ΔE00 5.45
Dark Pink
#CB416B
ΔE00 5.72
Deep Pink
#CB0162
ΔE00 6.02
Magenta (survey)
#C20078
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF317C #31CF84
analogous
#CF31CB #CF317C #CF3531
triadic
#CF317C #7CCF31 #317CCF
tetradic
#CF317C #CBCF31 #31CF84 #3531CF
square
#CF317C #CBCF31 #31CF84 #3531CF
split-complementary
#CF317C #31CF35 #31CBCF
monochromatic
#6C1941 #9E255E #CF317C #DB639C #E694BB
Accessibility & contrast
On white
4.79
#CF317C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.38
#CF317C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #CF317C
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF317C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##CF317C | 1.00 | 4.79 | 4.38 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#535F7E
Deuteranopia (green-blind)
#7E7D78
Tritanopia (blue-blind)
#E01853
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #cf317c; /* rgb */ color: rgb(207, 49, 124); /* oklch */ color: oklch(58.0% 0.202 356.9);
Tailwind
colors: {
custom: {
50: '#e378a1',
500: '#cf317c',
950: '#000000',
},
}SCSS
$custom: #cf317c; $custom-light: #e378a1; $custom-dark: #000000;
JSON
{
"hex": "#cf317c",
"rgb": {
"r": 207,
"g": 49,
"b": 124
},
"hsl": {
"h": 331.519,
"s": 62.205,
"l": 50.196
},
"oklch": {
"l": 0.57971,
"c": 0.20208,
"h": 356.9
},
"luminance": 0.16917
}Semantic roles & 50–950 ramp
primary
#CF317C
secondary
#8BD1B0
accent
#E59843
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#170A0F
muted
#857C7E