#CD42C8#CD42C8

#CD42C8 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.5% C 0.227 H 329.4°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#CD42C8
RGBrgb(205, 66, 200)
HSLhsl(302, 58%, 53%)
HSVhsv(302, 68%, 80%)
CMYKcmyk(0%, 67.8%, 2.4%, 19.6%)
CIE-LABlab(53.00, 69.46, -41.95)
CIE-LCHlch(53.00, 81.14, 328.87°)
OKLaboklab(62.46% 0.1958 -0.1158)
OKLCHoklch(62.46% 0.227 329.4)
XYZxyz(37.5501, 21.0484, 56.7174)
Luminance0.2105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42C8 #42CD47
analogous
#8C42CD #CD42C8 #CD4282
triadic
#CD42C8 #C8CD42 #42C8CD
tetradic
#CD42C8 #CD8C42 #42CD47 #4282CD
square
#CD42C8 #CD8C42 #42CD47 #4282CD
split-complementary
#CD42C8 #82CD42 #42CD8C
monochromatic
#761F72 #A62CA2 #CD42C8 #DA72D6 #E7A3E4

Accessibility & contrast

On white

4.03
#CD42C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#CD42C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42C8
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42C8#FFFFFF#000000##000000
##CD42C81.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3273CC
Deuteranopia (green-blind)
#6885C4
Tritanopia (blue-blind)
#D45480
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cd42c8;
/* rgb */ color: rgb(205, 66, 200);
/* oklch */ color: oklch(62.5% 0.227 329.4);
Tailwind
colors: {
  custom: {
    50: '#e082d9',
    500: '#cd42c8',
    950: '#000000',
  },
}
SCSS
$custom: #cd42c8;
$custom-light: #e082d9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42c8",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 302.158,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62461,
    "c": 0.22744,
    "h": 329.4
  },
  "luminance": 0.21046
}

Semantic roles & 50–950 ramp

primary
#CD42C8
secondary
#97D39A
accent
#E14C46
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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