#CD40A1#CD40A1

#CD40A1 is a mid, highly saturated pink. Relative luminance 0.192; OKLCH L 60.4% C 0.203 H 342.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CD40A1
RGBrgb(205, 64, 161)
HSLhsl(319, 59%, 53%)
HSVhsv(319, 69%, 80%)
CMYKcmyk(0%, 68.8%, 21.5%, 19.6%)
CIE-LABlab(50.95, 64.43, -22.43)
CIE-LCHlch(50.95, 68.22, 340.80°)
OKLaboklab(60.39% 0.1934 -0.06)
OKLCHoklch(60.39% 0.203 342.8)
XYZxyz(33.4443, 19.2225, 35.6603)
Luminance0.1922 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40A1 #40CD6C
analogous
#B240CD #CD40A1 #CD405B
triadic
#CD40A1 #A1CD40 #40A1CD
tetradic
#CD40A1 #CDB240 #40CD6C #405BCD
square
#CD40A1 #CDB240 #40CD6C #405BCD
split-complementary
#CD40A1 #5BCD40 #40CDB2
monochromatic
#741E59 #A52B7F #CD40A1 #DA71B9 #E6A1D1

Accessibility & contrast

On white

4.34
#CD40A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#CD40A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40A1
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40A1#FFFFFF#000000##000000
##CD40A11.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA4
Deuteranopia (green-blind)
#78829E
Tritanopia (blue-blind)
#DA416B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cd40a1;
/* rgb */ color: rgb(205, 64, 161);
/* oklch */ color: oklch(60.4% 0.203 342.8);
Tailwind
colors: {
  custom: {
    50: '#e080bd',
    500: '#cd40a1',
    950: '#000000',
  },
}
SCSS
$custom: #cd40a1;
$custom-light: #e080bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40a1",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 318.723,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60386,
    "c": 0.20253,
    "h": 342.8
  },
  "luminance": 0.19219
}

Semantic roles & 50–950 ramp

primary
#CD40A1
secondary
#96D3A9
accent
#E27746
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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