#CC42D3#CC42D3

#CC42D3 is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.9% C 0.235 H 325.9°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#CC42D3
RGBrgb(204, 66, 211)
HSLhsl(297, 62%, 54%)
HSVhsv(297, 69%, 83%)
CMYKcmyk(3.3%, 68.7%, 0%, 17.3%)
CIE-LABlab(53.43, 71.04, -47.59)
CIE-LCHlch(53.43, 85.50, 326.18°)
OKLaboklab(62.92% 0.1949 -0.1321)
OKLCHoklch(62.92% 0.236 325.9)
XYZxyz(38.6071, 21.4395, 63.7201)
Luminance0.2144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42D3 #49D342
analogous
#8342D3 #CC42D3 #D34292
triadic
#CC42D3 #D3CC42 #42D3CC
tetradic
#CC42D3 #D38342 #49D342 #4292D3
square
#CC42D3 #D38342 #49D342 #4292D3
split-complementary
#CC42D3 #92D342 #42D383
monochromatic
#791D7D #A929AF #CC42D3 #D974DF #E7A5EA

Accessibility & contrast

On white

3.97
#CC42D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#CC42D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42D3
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42D3#FFFFFF#000000##000000
##CC42D31.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2275D7
Deuteranopia (green-blind)
#6186CF
Tritanopia (blue-blind)
#D15986
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cc42d3;
/* rgb */ color: rgb(204, 66, 211);
/* oklch */ color: oklch(62.9% 0.235 325.9);
Tailwind
colors: {
  custom: {
    50: '#df82e1',
    500: '#cc42d3',
    950: '#000000',
  },
}
SCSS
$custom: #cc42d3;
$custom-light: #df82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42d3",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 297.103,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62924,
    "c": 0.2355,
    "h": 325.9
  },
  "luminance": 0.21437
}

Semantic roles & 50–950 ramp

primary
#CC42D3
secondary
#9DD79A
accent
#E5424A
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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