#CC42C6#CC42C6

#CC42C6 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.2% C 0.225 H 329.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#CC42C6
RGBrgb(204, 66, 198)
HSLhsl(303, 58%, 53%)
HSVhsv(303, 68%, 80%)
CMYKcmyk(0%, 67.6%, 2.9%, 20%)
CIE-LABlab(52.74, 68.91, -41.22)
CIE-LCHlch(52.74, 80.30, 329.11°)
OKLaboklab(62.21% 0.1946 -0.1137)
OKLCHoklch(62.21% 0.225 329.7)
XYZxyz(37.0428, 20.8137, 55.4816)
Luminance0.2081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42C6 #42CC48
analogous
#8D42CC #CC42C6 #CC4281
triadic
#CC42C6 #C6CC42 #42C6CC
tetradic
#CC42C6 #CC8D42 #42CC48 #4281CC
square
#CC42C6 #CC8D42 #42CC48 #4281CC
split-complementary
#CC42C6 #81CC42 #42CC8D
monochromatic
#741F71 #A42C9F #CC42C6 #D972D5 #E6A2E3

Accessibility & contrast

On white

4.07
#CC42C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#CC42C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42C6
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42C6#FFFFFF#000000##000000
##CC42C61.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3372CA
Deuteranopia (green-blind)
#6984C2
Tritanopia (blue-blind)
#D3537F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cc42c6;
/* rgb */ color: rgb(204, 66, 198);
/* oklch */ color: oklch(62.2% 0.225 329.7);
Tailwind
colors: {
  custom: {
    50: '#df82d8',
    500: '#cc42c6',
    950: '#000000',
  },
}
SCSS
$custom: #cc42c6;
$custom-light: #df82d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42c6",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 302.609,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.62212,
    "c": 0.22539,
    "h": 329.7
  },
  "luminance": 0.20811
}

Semantic roles & 50–950 ramp

primary
#CC42C6
secondary
#97D39A
accent
#E14E47
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC42C6

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

Preview Lab → · Contrast checker → · Palette generator →

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