#CD42D3#CD42D3

#CD42D3 is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.1% C 0.236 H 326.2°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#CD42D3
RGBrgb(205, 66, 211)
HSLhsl(298, 62%, 54%)
HSVhsv(298, 69%, 83%)
CMYKcmyk(2.8%, 68.7%, 0%, 17.3%)
CIE-LABlab(53.58, 71.26, -47.34)
CIE-LCHlch(53.58, 85.55, 326.40°)
OKLaboklab(63.06% 0.196 -0.1314)
OKLCHoklch(63.06% 0.236 326.2)
XYZxyz(38.8822, 21.5813, 63.7330)
Luminance0.2158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42D3 #48D342
analogous
#8542D3 #CD42D3 #D34291
triadic
#CD42D3 #D3CD42 #42D3CD
tetradic
#CD42D3 #D38542 #48D342 #4291D3
square
#CD42D3 #D38542 #48D342 #4291D3
split-complementary
#CD42D3 #91D342 #42D385
monochromatic
#791D7D #A929AF #CD42D3 #DA74DF #E7A5EA

Accessibility & contrast

On white

3.95
#CD42D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#CD42D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42D3
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42D3#FFFFFF#000000##000000
##CD42D31.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2375D7
Deuteranopia (green-blind)
#6286CF
Tritanopia (blue-blind)
#D25986
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd42d3;
/* rgb */ color: rgb(205, 66, 211);
/* oklch */ color: oklch(63.1% 0.236 326.2);
Tailwind
colors: {
  custom: {
    50: '#e082e1',
    500: '#cd42d3',
    950: '#000000',
  },
}
SCSS
$custom: #cd42d3;
$custom-light: #e082e1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42d3",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 297.517,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63063,
    "c": 0.23598,
    "h": 326.2
  },
  "luminance": 0.21579
}

Semantic roles & 50–950 ramp

primary
#CD42D3
secondary
#9CD79A
accent
#E54249
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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