#CD407C#CD407C

#CD407C is a mid, vivid pink. Relative luminance 0.181; OKLCH L 59.0% C 0.184 H 358.3°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#CD407C
RGBrgb(205, 64, 124)
HSLhsl(334, 59%, 53%)
HSVhsv(334, 69%, 80%)
CMYKcmyk(0%, 68.8%, 39.5%, 19.6%)
CIE-LABlab(49.62, 60.02, -2.31)
CIE-LCHlch(49.62, 60.06, 357.80°)
OKLaboklab(58.98% 0.1839 -0.0053)
OKLCHoklch(58.98% 0.184 358.3)
XYZxyz(30.6504, 18.1049, 20.9454)
Luminance0.1810 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD407C #40CD91
analogous
#CD40C2 #CD407C #CD4A40
triadic
#CD407C #7CCD40 #407CCD
tetradic
#CD407C #C2CD40 #40CD91 #4A40CD
square
#CD407C #C2CD40 #40CD91 #4A40CD
split-complementary
#CD407C #40CD4A #40C2CD
monochromatic
#741E43 #A52B5F #CD407C #DA719D #E6A1BF

Accessibility & contrast

On white

4.55
#CD407C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#CD407C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD407C
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD407C#FFFFFF#000000##000000
##CD407C1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B657E
Deuteranopia (green-blind)
#828079
Tritanopia (blue-blind)
#DD3059
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cd407c;
/* rgb */ color: rgb(205, 64, 124);
/* oklch */ color: oklch(59.0% 0.184 358.3);
Tailwind
colors: {
  custom: {
    50: '#e17fa1',
    500: '#cd407c',
    950: '#000000',
  },
}
SCSS
$custom: #cd407c;
$custom-light: #e17fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd407c",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 334.468,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58981,
    "c": 0.18398,
    "h": 358.3
  },
  "luminance": 0.18101
}

Semantic roles & 50–950 ramp

primary
#CD407C
secondary
#96D3B9
accent
#E29F46
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#160B0F
muted
#847C7E

Preview Lab

Preview with #CD407C

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

Preview Lab → · Contrast checker → · Palette generator →

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