#CD40A4#CD40A4

#CD40A4 is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.5% C 0.204 H 341.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CD40A4
RGBrgb(205, 64, 164)
HSLhsl(317, 59%, 53%)
HSVhsv(317, 69%, 80%)
CMYKcmyk(0%, 68.8%, 20%, 19.6%)
CIE-LABlab(51.07, 64.83, -24.01)
CIE-LCHlch(51.07, 69.14, 339.68°)
OKLaboklab(60.52% 0.194 -0.0645)
OKLCHoklch(60.52% 0.204 341.6)
XYZxyz(33.7121, 19.3295, 37.0703)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40A4 #40CD69
analogous
#B040CD #CD40A4 #CD405D
triadic
#CD40A4 #A4CD40 #40A4CD
tetradic
#CD40A4 #CDB040 #40CD69 #405DCD
square
#CD40A4 #CDB040 #40CD69 #405DCD
split-complementary
#CD40A4 #5DCD40 #40CDB0
monochromatic
#741E5B #A52B81 #CD40A4 #DA71BB #E6A1D2

Accessibility & contrast

On white

4.32
#CD40A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD40A4#FFFFFF#000000##000000
##CD40A41.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA7
Deuteranopia (green-blind)
#7782A1
Tritanopia (blue-blind)
#D9426C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd40a4;
/* rgb */ color: rgb(205, 64, 164);
/* oklch */ color: oklch(60.5% 0.204 341.6);
Tailwind
colors: {
  custom: {
    50: '#e080bf',
    500: '#cd40a4',
    950: '#000000',
  },
}
SCSS
$custom: #cd40a4;
$custom-light: #e080bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40a4",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 317.447,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60517,
    "c": 0.20442,
    "h": 341.6
  },
  "luminance": 0.19326
}

Semantic roles & 50–950 ramp

primary
#CD40A4
secondary
#96D3A8
accent
#E27346
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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