#CD40A9#CD40A9

#CD40A9 is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.7% C 0.208 H 339.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#CD40A9
RGBrgb(205, 64, 169)
HSLhsl(315, 59%, 53%)
HSVhsv(315, 69%, 80%)
CMYKcmyk(0%, 68.8%, 17.6%, 19.6%)
CIE-LABlab(51.28, 65.52, -26.63)
CIE-LCHlch(51.28, 70.73, 337.88°)
OKLaboklab(60.74% 0.1948 -0.0719)
OKLCHoklch(60.74% 0.208 339.8)
XYZxyz(34.1725, 19.5137, 39.4952)
Luminance0.1951 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40A9 #40CD64
analogous
#AA40CD #CD40A9 #CD4063
triadic
#CD40A9 #A9CD40 #40A9CD
tetradic
#CD40A9 #CDAA40 #40CD64 #4063CD
square
#CD40A9 #CDAA40 #40CD64 #4063CD
split-complementary
#CD40A9 #63CD40 #40CDAA
monochromatic
#741E5E #A52B86 #CD40A9 #DA71BF #E6A1D5

Accessibility & contrast

On white

4.28
#CD40A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CD40A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40A9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40A9#FFFFFF#000000##000000
##CD40A91.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#486CAC
Deuteranopia (green-blind)
#7582A6
Tritanopia (blue-blind)
#D9446F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd40a9;
/* rgb */ color: rgb(205, 64, 169);
/* oklch */ color: oklch(60.7% 0.208 339.8);
Tailwind
colors: {
  custom: {
    50: '#e080c3',
    500: '#cd40a9',
    950: '#000000',
  },
}
SCSS
$custom: #cd40a9;
$custom-light: #e080c3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40a9",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 315.319,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60741,
    "c": 0.20765,
    "h": 339.8
  },
  "luminance": 0.19511
}

Semantic roles & 50–950 ramp

primary
#CD40A9
secondary
#96D3A5
accent
#E26E46
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD40A9

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

Preview Lab → · Contrast checker → · Palette generator →

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