#CD40A6#CD40A6

#CD40A6 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.6% C 0.206 H 340.9°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#CD40A6
RGBrgb(205, 64, 166)
HSLhsl(317, 59%, 53%)
HSVhsv(317, 69%, 80%)
CMYKcmyk(0%, 68.8%, 19%, 19.6%)
CIE-LABlab(51.15, 65.11, -25.06)
CIE-LCHlch(51.15, 69.76, 338.95°)
OKLaboklab(60.61% 0.1943 -0.0674)
OKLCHoklch(60.61% 0.206 340.9)
XYZxyz(33.8941, 19.4024, 38.0290)
Luminance0.1940 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40A6 #40CD67
analogous
#AE40CD #CD40A6 #CD405F
triadic
#CD40A6 #A6CD40 #40A6CD
tetradic
#CD40A6 #CDAE40 #40CD67 #405FCD
square
#CD40A6 #CDAE40 #40CD67 #405FCD
split-complementary
#CD40A6 #5FCD40 #40CDAE
monochromatic
#741E5C #A52B83 #CD40A6 #DA71BD #E6A1D3

Accessibility & contrast

On white

4.30
#CD40A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#CD40A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40A6
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40A6#FFFFFF#000000##000000
##CD40A61.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6BA9
Deuteranopia (green-blind)
#7682A3
Tritanopia (blue-blind)
#D9436D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd40a6;
/* rgb */ color: rgb(205, 64, 166);
/* oklch */ color: oklch(60.6% 0.206 340.9);
Tailwind
colors: {
  custom: {
    50: '#e080c0',
    500: '#cd40a6',
    950: '#000000',
  },
}
SCSS
$custom: #cd40a6;
$custom-light: #e080c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40a6",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 316.596,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60605,
    "c": 0.2057,
    "h": 340.9
  },
  "luminance": 0.19399
}

Semantic roles & 50–950 ramp

primary
#CD40A6
secondary
#96D3A7
accent
#E27146
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD40A6

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

Preview Lab → · Contrast checker → · Palette generator →

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