#CD42BB#CD42BB

#CD42BB is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.8% C 0.218 H 333.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#CD42BB
RGBrgb(205, 66, 187)
HSLhsl(308, 58%, 53%)
HSVhsv(308, 68%, 80%)
CMYKcmyk(0%, 67.8%, 8.8%, 19.6%)
CIE-LABlab(52.36, 67.42, -35.46)
CIE-LCHlch(52.36, 76.18, 332.26°)
OKLaboklab(61.79% 0.1949 -0.097)
OKLCHoklch(61.79% 0.218 333.5)
XYZxyz(36.0949, 20.4664, 49.0534)
Luminance0.2046 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42BB #42CD54
analogous
#9942CD #CD42BB #CD4275
triadic
#CD42BB #BBCD42 #42BBCD
tetradic
#CD42BB #CD9942 #42CD54 #4275CD
square
#CD42BB #CD9942 #42CD54 #4275CD
split-complementary
#CD42BB #75CD42 #42CD99
monochromatic
#761F6A #A62C96 #CD42BB #DA72CC #E7A3DE

Accessibility & contrast

On white

4.12
#CD42BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#CD42BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42BB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42BB#FFFFFF#000000##000000
##CD42BB1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E70BE
Deuteranopia (green-blind)
#6F84B8
Tritanopia (blue-blind)
#D64E79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd42bb;
/* rgb */ color: rgb(205, 66, 187);
/* oklch */ color: oklch(61.8% 0.218 333.5);
Tailwind
colors: {
  custom: {
    50: '#e081d0',
    500: '#cd42bb',
    950: '#000000',
  },
}
SCSS
$custom: #cd42bb;
$custom-light: #e081d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42bb",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 307.77,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61789,
    "c": 0.21771,
    "h": 333.5
  },
  "luminance": 0.20463
}

Semantic roles & 50–950 ramp

primary
#CD42BB
secondary
#97D39F
accent
#E15A46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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