#CD42C4#CD42C4

#CD42C4 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.3% C 0.224 H 330.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#CD42C4
RGBrgb(205, 66, 196)
HSLhsl(304, 58%, 53%)
HSVhsv(304, 68%, 80%)
CMYKcmyk(0%, 67.8%, 4.4%, 19.6%)
CIE-LABlab(52.80, 68.82, -39.97)
CIE-LCHlch(52.80, 79.59, 329.85°)
OKLaboklab(62.25% 0.1956 -0.11)
OKLCHoklch(62.25% 0.224 330.6)
XYZxyz(37.0887, 20.8639, 54.2876)
Luminance0.2086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42C4 #42CD4B
analogous
#9042CD #CD42C4 #CD427E
triadic
#CD42C4 #C4CD42 #42C4CD
tetradic
#CD42C4 #CD9042 #42CD4B #427ECD
square
#CD42C4 #CD9042 #42CD4B #427ECD
split-complementary
#CD42C4 #7ECD42 #42CD90
monochromatic
#761F70 #A62C9E #CD42C4 #DA72D3 #E7A3E2

Accessibility & contrast

On white

4.06
#CD42C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#CD42C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42C4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42C4#FFFFFF#000000##000000
##CD42C41.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3672C8
Deuteranopia (green-blind)
#6A85C0
Tritanopia (blue-blind)
#D5527E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd42c4;
/* rgb */ color: rgb(205, 66, 196);
/* oklch */ color: oklch(62.3% 0.224 330.6);
Tailwind
colors: {
  custom: {
    50: '#e082d6',
    500: '#cd42c4',
    950: '#000000',
  },
}
SCSS
$custom: #cd42c4;
$custom-light: #e082d6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42c4",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 303.885,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6225,
    "c": 0.22439,
    "h": 330.6
  },
  "luminance": 0.20861
}

Semantic roles & 50–950 ramp

primary
#CD42C4
secondary
#97D39B
accent
#E15046
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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