#CC42D9#CC42D9

#CC42D9 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.3% C 0.240 H 324.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#CC42D9
RGBrgb(204, 66, 217)
HSLhsl(295, 67%, 55%)
HSVhsv(295, 70%, 85%)
CMYKcmyk(6%, 69.6%, 0%, 14.9%)
CIE-LABlab(53.76, 72.05, -50.48)
CIE-LCHlch(53.76, 87.98, 324.99°)
OKLaboklab(63.27% 0.1949 -0.1406)
OKLCHoklch(63.27% 0.24 324.2)
XYZxyz(39.3734, 21.7460, 67.7557)
Luminance0.2174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42D9 #4FD942
analogous
#8042D9 #CC42D9 #D9429B
triadic
#CC42D9 #D9CC42 #42D9CC
tetradic
#CC42D9 #D98042 #4FD942 #429BD9
square
#CC42D9 #D98042 #4FD942 #429BD9
split-complementary
#CC42D9 #9BD942 #42D980
monochromatic
#7D1B86 #AC25B9 #CC42D9 #DA75E3 #E7A8ED

Accessibility & contrast

On white

3.93
#CC42D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#CC42D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42D9
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42D9#FFFFFF#000000##000000
##CC42D91.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1476DD
Deuteranopia (green-blind)
#5D86D5
Tritanopia (blue-blind)
#D05B89
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cc42d9;
/* rgb */ color: rgb(204, 66, 217);
/* oklch */ color: oklch(63.3% 0.240 324.2);
Tailwind
colors: {
  custom: {
    50: '#df82e5',
    500: '#cc42d9',
    950: '#000000',
  },
}
SCSS
$custom: #cc42d9;
$custom-light: #df82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42d9",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 294.834,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.63266,
    "c": 0.24028,
    "h": 324.2
  },
  "luminance": 0.21744
}

Semantic roles & 50–950 ramp

primary
#CC42D9
secondary
#A1DB9C
accent
#E93E4D
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CC42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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