#CD42D9#CD42D9

#CD42D9 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.4% C 0.241 H 324.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#CD42D9
RGBrgb(205, 66, 217)
HSLhsl(295, 67%, 55%)
HSVhsv(295, 70%, 85%)
CMYKcmyk(5.5%, 69.6%, 0%, 14.9%)
CIE-LABlab(53.91, 72.27, -50.23)
CIE-LCHlch(53.91, 88.01, 325.20°)
OKLaboklab(63.4% 0.196 -0.1398)
OKLCHoklch(63.4% 0.241 324.5)
XYZxyz(39.6484, 21.8878, 67.7686)
Luminance0.2188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42D9 #4ED942
analogous
#8142D9 #CD42D9 #D94299
triadic
#CD42D9 #D9CD42 #42D9CD
tetradic
#CD42D9 #D98142 #4ED942 #4299D9
square
#CD42D9 #D98142 #4ED942 #4299D9
split-complementary
#CD42D9 #99D942 #42D981
monochromatic
#7D1B86 #AD25B9 #CD42D9 #DA75E3 #E8A8ED

Accessibility & contrast

On white

3.91
#CD42D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#CD42D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42D9
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42D9#FFFFFF#000000##000000
##CD42D91.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1676DD
Deuteranopia (green-blind)
#5E87D5
Tritanopia (blue-blind)
#D15B89
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cd42d9;
/* rgb */ color: rgb(205, 66, 217);
/* oklch */ color: oklch(63.4% 0.241 324.5);
Tailwind
colors: {
  custom: {
    50: '#e082e5',
    500: '#cd42d9',
    950: '#000000',
  },
}
SCSS
$custom: #cd42d9;
$custom-light: #e082e5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42d9",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 295.232,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.63404,
    "c": 0.24072,
    "h": 324.5
  },
  "luminance": 0.21885
}

Semantic roles & 50–950 ramp

primary
#CD42D9
secondary
#A1DB9C
accent
#E93E4C
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CD42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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