#CD42D5#CD42D5

#CD42D5 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.2% C 0.238 H 325.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#CD42D5
RGBrgb(205, 66, 213)
HSLhsl(297, 64%, 55%)
HSVhsv(297, 69%, 84%)
CMYKcmyk(3.8%, 69%, 0%, 16.5%)
CIE-LABlab(53.69, 71.59, -48.30)
CIE-LCHlch(53.69, 86.36, 325.99°)
OKLaboklab(63.18% 0.196 -0.1342)
OKLCHoklch(63.18% 0.238 325.6)
XYZxyz(39.1344, 21.6822, 65.0617)
Luminance0.2168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42D5 #4AD542
analogous
#8442D5 #CD42D5 #D54293
triadic
#CD42D5 #D5CD42 #42D5CD
tetradic
#CD42D5 #D58442 #4AD542 #4293D5
square
#CD42D5 #D58442 #4AD542 #4293D5
split-complementary
#CD42D5 #93D542 #42D584
monochromatic
#7B1C80 #AB28B2 #CD42D5 #DA74E0 #E7A6EB

Accessibility & contrast

On white

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

On black

5.34
#CD42D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42D5
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42D5#FFFFFF#000000##000000
##CD42D51.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F75D9
Deuteranopia (green-blind)
#6186D1
Tritanopia (blue-blind)
#D25987
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd42d5;
/* rgb */ color: rgb(205, 66, 213);
/* oklch */ color: oklch(63.2% 0.238 325.6);
Tailwind
colors: {
  custom: {
    50: '#e082e2',
    500: '#cd42d5',
    950: '#000000',
  },
}
SCSS
$custom: #cd42d5;
$custom-light: #e082e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42d5",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 296.735,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63176,
    "c": 0.23755,
    "h": 325.6
  },
  "luminance": 0.2168
}

Semantic roles & 50–950 ramp

primary
#CD42D5
secondary
#9ED89A
accent
#E7414A
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CD42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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