#CD42D4#CD42D4

#CD42D4 is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.1% C 0.237 H 325.9°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#CD42D4
RGBrgb(205, 66, 212)
HSLhsl(297, 63%, 55%)
HSVhsv(297, 69%, 83%)
CMYKcmyk(3.3%, 68.9%, 0%, 16.9%)
CIE-LABlab(53.63, 71.42, -47.82)
CIE-LCHlch(53.63, 85.95, 326.20°)
OKLaboklab(63.12% 0.196 -0.1328)
OKLCHoklch(63.12% 0.237 325.9)
XYZxyz(39.0079, 21.6316, 64.3953)
Luminance0.2163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42D4 #49D442
analogous
#8442D4 #CD42D4 #D44292
triadic
#CD42D4 #D4CD42 #42D4CD
tetradic
#CD42D4 #D48442 #49D442 #4292D4
square
#CD42D4 #D48442 #49D442 #4292D4
split-complementary
#CD42D4 #92D442 #42D484
monochromatic
#7A1D7F #AA28B1 #CD42D4 #DA74DF #E7A6EB

Accessibility & contrast

On white

3.94
#CD42D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#CD42D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42D4
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42D4#FFFFFF#000000##000000
##CD42D41.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2175D8
Deuteranopia (green-blind)
#6286D0
Tritanopia (blue-blind)
#D25987
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd42d4;
/* rgb */ color: rgb(205, 66, 212);
/* oklch */ color: oklch(63.1% 0.237 325.9);
Tailwind
colors: {
  custom: {
    50: '#e082e2',
    500: '#cd42d4',
    950: '#000000',
  },
}
SCSS
$custom: #cd42d4;
$custom-light: #e082e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42d4",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 297.123,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.6312,
    "c": 0.23676,
    "h": 325.9
  },
  "luminance": 0.21629
}

Semantic roles & 50–950 ramp

primary
#CD42D4
secondary
#9DD89A
accent
#E6424A
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD42D4

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

Preview Lab → · Contrast checker → · Palette generator →

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