#CD42BD#CD42BD

#CD42BD is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.9% C 0.219 H 332.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#CD42BD
RGBrgb(205, 66, 189)
HSLhsl(307, 58%, 53%)
HSVhsv(307, 68%, 80%)
CMYKcmyk(0%, 67.8%, 7.8%, 19.6%)
CIE-LABlab(52.46, 67.73, -36.47)
CIE-LCHlch(52.46, 76.92, 331.70°)
OKLaboklab(61.89% 0.1951 -0.0999)
OKLCHoklch(61.89% 0.219 332.9)
XYZxyz(36.3105, 20.5526, 50.1889)
Luminance0.2055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42BD #42CD52
analogous
#9742CD #CD42BD #CD4278
triadic
#CD42BD #BDCD42 #42BDCD
tetradic
#CD42BD #CD9742 #42CD52 #4278CD
square
#CD42BD #CD9742 #42CD52 #4278CD
split-complementary
#CD42BD #78CD42 #42CD97
monochromatic
#761F6C #A62C98 #CD42BD #DA72CE #E7A3DF

Accessibility & contrast

On white

4.11
#CD42BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#CD42BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42BD
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42BD#FFFFFF#000000##000000
##CD42BD1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D70C1
Deuteranopia (green-blind)
#6E84BA
Tritanopia (blue-blind)
#D64F7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd42bd;
/* rgb */ color: rgb(205, 66, 189);
/* oklch */ color: oklch(61.9% 0.219 332.9);
Tailwind
colors: {
  custom: {
    50: '#e081d1',
    500: '#cd42bd',
    950: '#000000',
  },
}
SCSS
$custom: #cd42bd;
$custom-light: #e081d1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42bd",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 306.906,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6189,
    "c": 0.21918,
    "h": 332.9
  },
  "luminance": 0.2055
}

Semantic roles & 50–950 ramp

primary
#CD42BD
secondary
#97D39E
accent
#E15846
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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