#CC42CC#CC42CC

#CC42CC is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.5% C 0.230 H 327.9°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#CC42CC
RGBrgb(204, 66, 204)
HSLhsl(300, 58%, 53%)
HSVhsv(300, 68%, 80%)
CMYKcmyk(0%, 67.6%, 0%, 20%)
CIE-LABlab(53.05, 69.88, -44.18)
CIE-LCHlch(53.05, 82.67, 327.70°)
OKLaboklab(62.54% 0.1949 -0.1222)
OKLCHoklch(62.54% 0.23 327.9)
XYZxyz(37.7486, 21.0961, 59.1988)
Luminance0.2109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42CC #42CC42
analogous
#8742CC #CC42CC #CC4287
triadic
#CC42CC #CCCC42 #42CCCC
tetradic
#CC42CC #CC8742 #42CC42 #4287CC
square
#CC42CC #CC8742 #42CC42 #4287CC
split-complementary
#CC42CC #87CC42 #42CC87
monochromatic
#741F74 #A42CA4 #CC42CC #D972D9 #E6A2E6

Accessibility & contrast

On white

4.02
#CC42CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#CC42CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42CC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42CC#FFFFFF#000000##000000
##CC42CC1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C73D0
Deuteranopia (green-blind)
#6585C8
Tritanopia (blue-blind)
#D25682
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cc42cc;
/* rgb */ color: rgb(204, 66, 204);
/* oklch */ color: oklch(62.5% 0.230 327.9);
Tailwind
colors: {
  custom: {
    50: '#df82dc',
    500: '#cc42cc',
    950: '#000000',
  },
}
SCSS
$custom: #cc42cc;
$custom-light: #df82dc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42cc",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 300,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.62536,
    "c": 0.23001,
    "h": 327.9
  },
  "luminance": 0.21093
}

Semantic roles & 50–950 ramp

primary
#CC42CC
secondary
#97D397
accent
#E14747
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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