#CC42D1#CC42D1

#CC42D1 is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.8% C 0.234 H 326.4°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#CC42D1
RGBrgb(204, 66, 209)
HSLhsl(298, 61%, 54%)
HSVhsv(298, 68%, 82%)
CMYKcmyk(2.4%, 68.4%, 0%, 18%)
CIE-LABlab(53.32, 70.70, -46.62)
CIE-LCHlch(53.32, 84.69, 326.60°)
OKLaboklab(62.81% 0.1949 -0.1293)
OKLCHoklch(62.81% 0.234 326.4)
XYZxyz(38.3580, 21.3398, 62.4079)
Luminance0.2134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42D1 #47D142
analogous
#8542D1 #CC42D1 #D1428F
triadic
#CC42D1 #D1CC42 #42D1CC
tetradic
#CC42D1 #D18542 #47D142 #428FD1
square
#CC42D1 #D18542 #47D142 #428FD1
split-complementary
#CC42D1 #8FD142 #42D185
monochromatic
#771E7B #A72AAC #CC42D1 #D973DD #E7A4E9

Accessibility & contrast

On white

3.99
#CC42D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#CC42D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42D1
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42D1#FFFFFF#000000##000000
##CC42D11.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2574D5
Deuteranopia (green-blind)
#6285CD
Tritanopia (blue-blind)
#D15885
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cc42d1;
/* rgb */ color: rgb(204, 66, 209);
/* oklch */ color: oklch(62.8% 0.234 326.4);
Tailwind
colors: {
  custom: {
    50: '#df82e0',
    500: '#cc42d1',
    950: '#000000',
  },
}
SCSS
$custom: #cc42d1;
$custom-light: #df82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42d1",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 297.902,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62812,
    "c": 0.23393,
    "h": 326.4
  },
  "luminance": 0.21337
}

Semantic roles & 50–950 ramp

primary
#CC42D1
secondary
#9BD699
accent
#E44449
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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