#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
RGBrgb(205, 22, 140)
HSLhsl(321, 81%, 45%)
HSVhsv(321, 89%, 80%)
CMYKcmyk(0%, 89.3%, 31.7%, 19.6%)
CIE-LABlab(46.24, 72.89, -17.07)
CIE-LCHlch(46.24, 74.86, 346.82°)
OKLaboklab(56.7% 0.2236 -0.0449)
OKLCHoklch(56.7% 0.228 348.6)
XYZxyz(30.1992, 15.4502, 26.1977)
Luminance0.1545 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

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
##CD168C1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.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

Preview Lab

Preview with #CD168C

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CD168C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva