#CD168C#CD168C
#CD168C is a mid, highly saturated pink. Relative luminance 0.154; OKLCH L 56.7% C 0.228 H 348.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #CD168C |
|---|---|
| RGB | rgb(205, 22, 140) |
| HSL | hsl(321, 81%, 45%) |
| HSV | hsv(321, 89%, 80%) |
| CMYK | cmyk(0%, 89.3%, 31.7%, 19.6%) |
| CIE-LAB | lab(46.24, 72.89, -17.07) |
| CIE-LCH | lch(46.24, 74.86, 346.82°) |
| OKLab | oklab(56.7% 0.2236 -0.0449) |
| OKLCH | oklch(56.7% 0.228 348.6) |
| XYZ | xyz(30.1992, 15.4502, 26.1977) |
| Luminance | 0.1545 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 1.60
Magenta (survey)
#C20078
ΔE00 4.25
Purpley Pink
#C83CB9
ΔE00 8.95
Deep Pink
#CB0162
ΔE00 9.06
Ugly Purple
#A442A0
ΔE00 9.50
Dark Hot Pink
#D90166
ΔE00 9.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD168C #16CD57
analogous
#B216CD #CD168C #CD1631
triadic
#CD168C #8CCD16 #168CCD
tetradic
#CD168C #CDB216 #16CD57 #1631CD
square
#CD168C #CDB216 #16CD57 #1631CD
split-complementary
#CD168C #31CD16 #16CDB2
monochromatic
#5E0A41 #961066 #CD168C #EA37AA #EF6EC1
Accessibility & contrast
On white
5.14
#CD168C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#CD168C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #CD168C
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD168C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##CD168C | 1.00 | 5.14 | 4.09 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E5A8F
Deuteranopia (green-blind)
#737888
Tritanopia (blue-blind)
#DC0054
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #cd168c; /* rgb */ color: rgb(205, 22, 140); /* oklch */ color: oklch(56.7% 0.228 348.6);
Tailwind
colors: {
custom: {
50: '#e270ad',
500: '#cd168c',
950: '#000000',
},
}SCSS
$custom: #cd168c; $custom-light: #e270ad; $custom-dark: #000000;
JSON
{
"hex": "#cd168c",
"rgb": {
"r": 205,
"g": 22,
"b": 140
},
"hsl": {
"h": 321.311,
"s": 80.617,
"l": 44.51
},
"oklch": {
"l": 0.56698,
"c": 0.22801,
"h": 348.6
},
"luminance": 0.15446
}Semantic roles & 50–950 ramp
primary
#CD168C
secondary
#69D590
accent
#F77731
background
#FEF7FA
surface
#FDEDF4
border
#D5C8CE
text
#160910
muted
#847B7F