#CD42C2#CD42C2

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

Color values

HEX#CD42C2
RGBrgb(205, 66, 194)
HSLhsl(305, 58%, 53%)
HSVhsv(305, 68%, 80%)
CMYKcmyk(0%, 67.8%, 5.4%, 19.6%)
CIE-LABlab(52.70, 68.51, -38.97)
CIE-LCHlch(52.70, 78.82, 330.37°)
OKLaboklab(62.15% 0.1954 -0.1072)
OKLCHoklch(62.15% 0.223 331.3)
XYZxyz(36.8626, 20.7734, 53.0966)
Luminance0.2077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42C2 #42CD4D
analogous
#9242CD #CD42C2 #CD427C
triadic
#CD42C2 #C2CD42 #42C2CD
tetradic
#CD42C2 #CD9242 #42CD4D #427CCD
square
#CD42C2 #CD9242 #42CD4D #427CCD
split-complementary
#CD42C2 #7CCD42 #42CD92
monochromatic
#761F6F #A62C9C #CD42C2 #DA72D2 #E7A3E1

Accessibility & contrast

On white

4.07
#CD42C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD42C2#FFFFFF#000000##000000
##CD42C21.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3871C6
Deuteranopia (green-blind)
#6B85BE
Tritanopia (blue-blind)
#D5517D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd42c2;
/* rgb */ color: rgb(205, 66, 194);
/* oklch */ color: oklch(62.1% 0.223 331.3);
Tailwind
colors: {
  custom: {
    50: '#e082d5',
    500: '#cd42c2',
    950: '#000000',
  },
}
SCSS
$custom: #cd42c2;
$custom-light: #e082d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42c2",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 304.748,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62146,
    "c": 0.22289,
    "h": 331.3
  },
  "luminance": 0.20771
}

Semantic roles & 50–950 ramp

primary
#CD42C2
secondary
#97D39C
accent
#E15346
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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