#CD408E#CD408E

#CD408E is a mid, vivid pink. Relative luminance 0.186; OKLCH L 59.6% C 0.192 H 350.4°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#CD408E
RGBrgb(205, 64, 142)
HSLhsl(327, 59%, 53%)
HSVhsv(327, 69%, 80%)
CMYKcmyk(0%, 68.8%, 30.7%, 19.6%)
CIE-LABlab(50.22, 62.03, -12.25)
CIE-LCHlch(50.22, 63.22, 348.83°)
OKLaboklab(59.61% 0.1892 -0.0319)
OKLCHoklch(59.61% 0.192 350.4)
XYZxyz(31.8943, 18.6025, 27.4969)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD408E #40CD7F
analogous
#C640CD #CD408E #CD4047
triadic
#CD408E #8ECD40 #408ECD
tetradic
#CD408E #CDC640 #40CD7F #4047CD
square
#CD408E #CDC640 #40CD7F #4047CD
split-complementary
#CD408E #47CD40 #40CDC6
monochromatic
#741E4E #A52B6E #CD408E #DA71AB #E6A1C7

Accessibility & contrast

On white

4.45
#CD408E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#CD408E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD408E
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD408E#FFFFFF#000000##000000
##CD408E1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#556890
Deuteranopia (green-blind)
#7D818B
Tritanopia (blue-blind)
#DC3861
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cd408e;
/* rgb */ color: rgb(205, 64, 142);
/* oklch */ color: oklch(59.6% 0.192 350.4);
Tailwind
colors: {
  custom: {
    50: '#e17faf',
    500: '#cd408e',
    950: '#000000',
  },
}
SCSS
$custom: #cd408e;
$custom-light: #e17faf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd408e",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 326.809,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59615,
    "c": 0.19182,
    "h": 350.4
  },
  "luminance": 0.18599
}

Semantic roles & 50–950 ramp

primary
#CD408E
secondary
#96D3B1
accent
#E28C46
background
#FEF8FA
surface
#FDEFF4
border
#D5CACE
text
#160B10
muted
#847C7F

Preview Lab

Preview with #CD408E

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

Preview Lab → · Contrast checker → · Palette generator →

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