#CD45B8#CD45B8

#CD45B8 is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 61.9% C 0.212 H 334.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#CD45B8
RGBrgb(205, 69, 184)
HSLhsl(309, 58%, 54%)
HSVhsv(309, 66%, 80%)
CMYKcmyk(0%, 66.3%, 10.2%, 19.6%)
CIE-LABlab(52.62, 65.85, -33.31)
CIE-LCHlch(52.62, 73.80, 333.17°)
OKLaboklab(61.93% 0.1913 -0.0909)
OKLCHoklch(61.93% 0.212 334.6)
XYZxyz(35.9570, 20.6990, 47.4396)
Luminance0.2070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD45B8 #45CD5A
analogous
#9E45CD #CD45B8 #CD4574
triadic
#CD45B8 #B8CD45 #45B8CD
tetradic
#CD45B8 #CD9E45 #45CD5A #4574CD
square
#CD45B8 #CD9E45 #45CD5A #4574CD
split-complementary
#CD45B8 #74CD45 #45CD9E
monochromatic
#77206A #A82D95 #CD45B8 #DA75CA #E7A5DD

Accessibility & contrast

On white

4.09
#CD45B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#CD45B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD45B8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD45B8#FFFFFF#000000##000000
##CD45B81.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4471BB
Deuteranopia (green-blind)
#7185B5
Tritanopia (blue-blind)
#D74F79
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd45b8;
/* rgb */ color: rgb(205, 69, 184);
/* oklch */ color: oklch(61.9% 0.212 334.6);
Tailwind
colors: {
  custom: {
    50: '#e083cd',
    500: '#cd45b8',
    950: '#000000',
  },
}
SCSS
$custom: #cd45b8;
$custom-light: #e083cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd45b8",
  "rgb": {
    "r": 205,
    "g": 69,
    "b": 184
  },
  "hsl": {
    "h": 309.265,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.6193,
    "c": 0.21181,
    "h": 334.6
  },
  "luminance": 0.20696
}

Semantic roles & 50–950 ramp

primary
#CD45B8
secondary
#9AD4A3
accent
#E15F47
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD45B8

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

Preview Lab → · Contrast checker → · Palette generator →

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