#CD408C#CD408C

#CD408C is a mid, vivid pink. Relative luminance 0.185; OKLCH L 59.5% C 0.191 H 351.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#CD408C
RGBrgb(205, 64, 140)
HSLhsl(328, 59%, 53%)
HSVhsv(328, 69%, 80%)
CMYKcmyk(0%, 68.8%, 31.7%, 19.6%)
CIE-LABlab(50.15, 61.79, -11.16)
CIE-LCHlch(50.15, 62.79, 349.77°)
OKLaboklab(59.54% 0.1886 -0.0289)
OKLCHoklch(59.54% 0.191 351.3)
XYZxyz(31.7455, 18.5429, 26.7132)
Luminance0.1854 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD408C #40CD81
analogous
#C840CD #CD408C #CD4045
triadic
#CD408C #8CCD40 #408CCD
tetradic
#CD408C #CDC840 #40CD81 #4045CD
square
#CD408C #CDC840 #40CD81 #4045CD
split-complementary
#CD408C #45CD40 #40CDC8
monochromatic
#741E4D #A52B6D #CD408C #DA71A9 #E6A1C6

Accessibility & contrast

On white

4.46
#CD408C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#CD408C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD408C
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD408C#FFFFFF#000000##000000
##CD408C1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#56678E
Deuteranopia (green-blind)
#7E8189
Tritanopia (blue-blind)
#DC3760
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cd408c;
/* rgb */ color: rgb(205, 64, 140);
/* oklch */ color: oklch(59.5% 0.191 351.3);
Tailwind
colors: {
  custom: {
    50: '#e17fad',
    500: '#cd408c',
    950: '#000000',
  },
}
SCSS
$custom: #cd408c;
$custom-light: #e17fad;
$custom-dark: #000000;
JSON
{
  "hex": "#cd408c",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 327.66,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5954,
    "c": 0.19083,
    "h": 351.3
  },
  "luminance": 0.18539
}

Semantic roles & 50–950 ramp

primary
#CD408C
secondary
#96D3B2
accent
#E28E46
background
#FEF8FA
surface
#FDEFF4
border
#D5CACE
text
#160B10
muted
#847C7F

Preview Lab

Preview with #CD408C

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

Preview Lab → · Contrast checker → · Palette generator →

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