#CD42C1#CD42C1

#CD42C1 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.1% C 0.222 H 331.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#CD42C1
RGBrgb(205, 66, 193)
HSLhsl(305, 58%, 53%)
HSVhsv(305, 68%, 80%)
CMYKcmyk(0%, 67.8%, 5.9%, 19.6%)
CIE-LABlab(52.65, 68.35, -38.47)
CIE-LCHlch(52.65, 78.43, 330.63°)
OKLaboklab(62.09% 0.1954 -0.1057)
OKLCHoklch(62.09% 0.222 331.6)
XYZxyz(36.7507, 20.7287, 52.5072)
Luminance0.2073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42C1 #42CD4E
analogous
#9342CD #CD42C1 #CD427B
triadic
#CD42C1 #C1CD42 #42C1CD
tetradic
#CD42C1 #CD9342 #42CD4E #427BCD
square
#CD42C1 #CD9342 #42CD4E #427BCD
split-complementary
#CD42C1 #7BCD42 #42CD93
monochromatic
#761F6E #A62C9B #CD42C1 #DA72D1 #E7A3E1

Accessibility & contrast

On white

4.08
#CD42C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#CD42C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42C1
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42C1#FFFFFF#000000##000000
##CD42C11.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3971C5
Deuteranopia (green-blind)
#6C85BD
Tritanopia (blue-blind)
#D5517C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd42c1;
/* rgb */ color: rgb(205, 66, 193);
/* oklch */ color: oklch(62.1% 0.222 331.6);
Tailwind
colors: {
  custom: {
    50: '#e082d4',
    500: '#cd42c1',
    950: '#000000',
  },
}
SCSS
$custom: #cd42c1;
$custom-light: #e082d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42c1",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 305.18,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62094,
    "c": 0.22214,
    "h": 331.6
  },
  "luminance": 0.20726
}

Semantic roles & 50–950 ramp

primary
#CD42C1
secondary
#97D39D
accent
#E15446
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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