#CD17BA#CD17BA

#CD17BA is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 59.0% C 0.254 H 333.6°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#CD17BA
RGBrgb(205, 23, 186)
HSLhsl(306, 80%, 45%)
HSVhsv(306, 89%, 80%)
CMYKcmyk(0%, 88.8%, 9.3%, 19.6%)
CIE-LABlab(48.44, 78.39, -41.06)
CIE-LCHlch(48.44, 88.50, 332.36°)
OKLaboklab(58.96% 0.2275 -0.1129)
OKLCHoklch(58.96% 0.254 333.6)
XYZxyz(34.3465, 17.1403, 47.9444)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD17BA #17CD2A
analogous
#8517CD #CD17BA #CD175F
triadic
#CD17BA #BACD17 #17BACD
tetradic
#CD17BA #CD8517 #17CD2A #175FCD
square
#CD17BA #CD8517 #17CD2A #175FCD
split-complementary
#CD17BA #5FCD17 #17CD85
monochromatic
#5F0B56 #961188 #CD17BA #E938D6 #EF70E2

Accessibility & contrast

On white

4.74
#CD17BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#CD17BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CD17BA
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD17BA#FFFFFF#000000##FFFFFF
##CD17BA1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0563BE
Deuteranopia (green-blind)
#617CB6
Tritanopia (blue-blind)
#D7336F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cd17ba;
/* rgb */ color: rgb(205, 23, 186);
/* oklch */ color: oklch(59.0% 0.254 333.6);
Tailwind
colors: {
  custom: {
    50: '#e173cf',
    500: '#cd17ba',
    950: '#000000',
  },
}
SCSS
$custom: #cd17ba;
$custom-light: #e173cf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd17ba",
  "rgb": {
    "r": 205,
    "g": 23,
    "b": 186
  },
  "hsl": {
    "h": 306.264,
    "s": 79.825,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5896,
    "c": 0.25397,
    "h": 333.6
  },
  "luminance": 0.17137
}

Semantic roles & 50–950 ramp

primary
#CD17BA
secondary
#6BD576
accent
#F64632
background
#FEF7FC
surface
#FDEEF9
border
#D5C9D2
text
#160A14
muted
#847C82

Preview Lab

Preview with #CD17BA

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

Preview Lab → · Contrast checker → · Palette generator →

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