#CD42C5#CD42C5

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

Color values

HEX#CD42C5
RGBrgb(205, 66, 197)
HSLhsl(303, 58%, 53%)
HSVhsv(303, 68%, 80%)
CMYKcmyk(0%, 67.8%, 3.9%, 19.6%)
CIE-LABlab(52.85, 68.98, -40.47)
CIE-LCHlch(52.85, 79.97, 329.60°)
OKLaboklab(62.3% 0.1956 -0.1115)
OKLCHoklch(62.3% 0.225 330.3)
XYZxyz(37.2029, 20.9096, 54.8890)
Luminance0.2091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42C5 #42CD4A
analogous
#8F42CD #CD42C5 #CD427F
triadic
#CD42C5 #C5CD42 #42C5CD
tetradic
#CD42C5 #CD8F42 #42CD4A #427FCD
square
#CD42C5 #CD8F42 #42CD4A #427FCD
split-complementary
#CD42C5 #7FCD42 #42CD8F
monochromatic
#761F71 #A62C9F #CD42C5 #DA72D4 #E7A3E3

Accessibility & contrast

On white

4.05
#CD42C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#CD42C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42C5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42C5#FFFFFF#000000##000000
##CD42C51.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3572C9
Deuteranopia (green-blind)
#6A85C1
Tritanopia (blue-blind)
#D5527E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd42c5;
/* rgb */ color: rgb(205, 66, 197);
/* oklch */ color: oklch(62.3% 0.225 330.3);
Tailwind
colors: {
  custom: {
    50: '#e082d7',
    500: '#cd42c5',
    950: '#000000',
  },
}
SCSS
$custom: #cd42c5;
$custom-light: #e082d7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42c5",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 303.453,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62302,
    "c": 0.22515,
    "h": 330.3
  },
  "luminance": 0.20907
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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