#CD408B#CD408B

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

Color values

HEX#CD408B
RGBrgb(205, 64, 139)
HSLhsl(328, 59%, 53%)
HSVhsv(328, 69%, 80%)
CMYKcmyk(0%, 68.8%, 32.2%, 19.6%)
CIE-LABlab(50.11, 61.67, -10.61)
CIE-LCHlch(50.11, 62.58, 350.24°)
OKLaboklab(59.5% 0.1884 -0.0274)
OKLCHoklch(59.5% 0.19 351.7)
XYZxyz(31.6721, 18.5136, 26.3266)
Luminance0.1851 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD408B #40CD82
analogous
#C840CD #CD408B #CD4045
triadic
#CD408B #8BCD40 #408BCD
tetradic
#CD408B #CDC840 #40CD82 #4045CD
square
#CD408B #CDC840 #40CD82 #4045CD
split-complementary
#CD408B #45CD40 #40CDC8
monochromatic
#741E4C #A52B6C #CD408B #DA71A8 #E6A1C6

Accessibility & contrast

On white

4.47
#CD408B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#CD408B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD408B
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD408B#FFFFFF#000000##000000
##CD408B1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd408b;
/* rgb */ color: rgb(205, 64, 139);
/* oklch */ color: oklch(59.5% 0.190 351.7);
Tailwind
colors: {
  custom: {
    50: '#e17fac',
    500: '#cd408b',
    950: '#000000',
  },
}
SCSS
$custom: #cd408b;
$custom-light: #e17fac;
$custom-dark: #000000;
JSON
{
  "hex": "#cd408b",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 328.085,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59503,
    "c": 0.19035,
    "h": 351.7
  },
  "luminance": 0.1851
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD408B

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

Preview Lab → · Contrast checker → · Palette generator →

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