#CC42C7#CC42C7

#CC42C7 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.3% C 0.226 H 329.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#CC42C7
RGBrgb(204, 66, 199)
HSLhsl(302, 58%, 53%)
HSVhsv(302, 68%, 80%)
CMYKcmyk(0%, 67.6%, 2.5%, 20%)
CIE-LABlab(52.80, 69.07, -41.71)
CIE-LCHlch(52.80, 80.69, 328.87°)
OKLaboklab(62.27% 0.1947 -0.1151)
OKLCHoklch(62.27% 0.226 329.4)
XYZxyz(37.1586, 20.8600, 56.0910)
Luminance0.2086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42C7 #42CC47
analogous
#8C42CC #CC42C7 #CC4282
triadic
#CC42C7 #C7CC42 #42C7CC
tetradic
#CC42C7 #CC8C42 #42CC47 #4282CC
square
#CC42C7 #CC8C42 #42CC47 #4282CC
split-complementary
#CC42C7 #82CC42 #42CC8C
monochromatic
#741F71 #A42CA0 #CC42C7 #D972D5 #E6A2E4

Accessibility & contrast

On white

4.06
#CC42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#CC42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42C7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42C7#FFFFFF#000000##000000
##CC42C71.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3272CB
Deuteranopia (green-blind)
#6885C3
Tritanopia (blue-blind)
#D35480
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cc42c7;
/* rgb */ color: rgb(204, 66, 199);
/* oklch */ color: oklch(62.3% 0.226 329.4);
Tailwind
colors: {
  custom: {
    50: '#df82d8',
    500: '#cc42c7',
    950: '#000000',
  },
}
SCSS
$custom: #cc42c7;
$custom-light: #df82d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42c7",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 302.174,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.62266,
    "c": 0.22615,
    "h": 329.4
  },
  "luminance": 0.20857
}

Semantic roles & 50–950 ramp

primary
#CC42C7
secondary
#97D399
accent
#E14D47
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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