#CD42D2#CD42D2

#CD42D2 is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 63.0% C 0.235 H 326.5°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#CD42D2
RGBrgb(205, 66, 210)
HSLhsl(298, 62%, 54%)
HSVhsv(298, 69%, 82%)
CMYKcmyk(2.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(53.53, 71.09, -46.85)
CIE-LCHlch(53.53, 85.14, 326.61°)
OKLaboklab(63.01% 0.196 -0.13)
OKLCHoklch(63.01% 0.235 326.5)
XYZxyz(38.7572, 21.5313, 63.0749)
Luminance0.2153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42D2 #47D242
analogous
#8542D2 #CD42D2 #D2428F
triadic
#CD42D2 #D2CD42 #42D2CD
tetradic
#CD42D2 #D28542 #47D242 #428FD2
square
#CD42D2 #D28542 #47D242 #428FD2
split-complementary
#CD42D2 #8FD242 #42D285
monochromatic
#791E7C #A929AD #CD42D2 #DA73DE #E7A5EA

Accessibility & contrast

On white

3.96
#CD42D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#CD42D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42D2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42D2#FFFFFF#000000##000000
##CD42D21.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2575D6
Deuteranopia (green-blind)
#6386CE
Tritanopia (blue-blind)
#D25885
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd42d2;
/* rgb */ color: rgb(205, 66, 210);
/* oklch */ color: oklch(63.0% 0.235 326.5);
Tailwind
colors: {
  custom: {
    50: '#e082e0',
    500: '#cd42d2',
    950: '#000000',
  },
}
SCSS
$custom: #cd42d2;
$custom-light: #e082e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42d2",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 297.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.63008,
    "c": 0.23519,
    "h": 326.5
  },
  "luminance": 0.21529
}

Semantic roles & 50–950 ramp

primary
#CD42D2
secondary
#9BD799
accent
#E54349
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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