#CD40A5#CD40A5

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

Color values

HEX#CD40A5
RGBrgb(205, 64, 165)
HSLhsl(317, 59%, 53%)
HSVhsv(317, 69%, 80%)
CMYKcmyk(0%, 68.8%, 19.5%, 19.6%)
CIE-LABlab(51.11, 64.97, -24.54)
CIE-LCHlch(51.11, 69.45, 339.31°)
OKLaboklab(60.56% 0.1942 -0.066)
OKLCHoklch(60.56% 0.205 341.2)
XYZxyz(33.8027, 19.3658, 37.5478)
Luminance0.1936 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40A5 #40CD68
analogous
#AE40CD #CD40A5 #CD405F
triadic
#CD40A5 #A5CD40 #40A5CD
tetradic
#CD40A5 #CDAE40 #40CD68 #405FCD
square
#CD40A5 #CDAE40 #40CD68 #405FCD
split-complementary
#CD40A5 #5FCD40 #40CDAE
monochromatic
#741E5C #A52B82 #CD40A5 #DA71BC #E6A1D3

Accessibility & contrast

On white

4.31
#CD40A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#CD40A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40A5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40A5#FFFFFF#000000##000000
##CD40A51.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd40a5;
/* rgb */ color: rgb(205, 64, 165);
/* oklch */ color: oklch(60.6% 0.205 341.2);
Tailwind
colors: {
  custom: {
    50: '#e080c0',
    500: '#cd40a5',
    950: '#000000',
  },
}
SCSS
$custom: #cd40a5;
$custom-light: #e080c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40a5",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 317.021,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60561,
    "c": 0.20506,
    "h": 341.2
  },
  "luminance": 0.19363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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