#CD45A8#CD45A8

#CD45A8 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.2% C 0.201 H 340.3°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CD45A8
RGBrgb(205, 69, 168)
HSLhsl(316, 58%, 54%)
HSVhsv(316, 66%, 80%)
CMYKcmyk(0%, 66.3%, 18%, 19.6%)
CIE-LABlab(51.91, 63.51, -25.07)
CIE-LCHlch(51.91, 68.28, 338.46°)
OKLaboklab(61.19% 0.189 -0.0675)
OKLCHoklch(61.19% 0.201 340.3)
XYZxyz(34.3737, 20.0657, 39.1009)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD45A8 #45CD6A
analogous
#AE45CD #CD45A8 #CD4564
triadic
#CD45A8 #A8CD45 #45A8CD
tetradic
#CD45A8 #CDAE45 #45CD6A #4564CD
square
#CD45A8 #CDAE45 #45CD6A #4564CD
split-complementary
#CD45A8 #64CD45 #45CDAE
monochromatic
#772060 #A82D86 #CD45A8 #DA75BF #E7A5D5

Accessibility & contrast

On white

4.19
#CD45A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CD45A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD45A8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD45A8#FFFFFF#000000##000000
##CD45A81.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAB
Deuteranopia (green-blind)
#7884A5
Tritanopia (blue-blind)
#D94870
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd45a8;
/* rgb */ color: rgb(205, 69, 168);
/* oklch */ color: oklch(61.2% 0.201 340.3);
Tailwind
colors: {
  custom: {
    50: '#e082c2',
    500: '#cd45a8',
    950: '#000000',
  },
}
SCSS
$custom: #cd45a8;
$custom-light: #e082c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd45a8",
  "rgb": {
    "r": 205,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 316.324,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61185,
    "c": 0.20069,
    "h": 340.3
  },
  "luminance": 0.20063
}

Semantic roles & 50–950 ramp

primary
#CD45A8
secondary
#9AD4AA
accent
#E17147
background
#FEF8FB
surface
#FCF0F7
border
#D5CBD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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