#CC42C9#CC42C9

#CC42C9 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.4% C 0.228 H 328.8°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#CC42C9
RGBrgb(204, 66, 201)
HSLhsl(301, 58%, 53%)
HSVhsv(301, 68%, 80%)
CMYKcmyk(0%, 67.6%, 1.5%, 20%)
CIE-LABlab(52.90, 69.39, -42.70)
CIE-LCHlch(52.90, 81.48, 328.39°)
OKLaboklab(62.37% 0.1948 -0.118)
OKLCHoklch(62.37% 0.228 328.8)
XYZxyz(37.3923, 20.9535, 57.3220)
Luminance0.2095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42C9 #42CC45
analogous
#8A42CC #CC42C9 #CC4284
triadic
#CC42C9 #C9CC42 #42C9CC
tetradic
#CC42C9 #CC8A42 #42CC45 #4284CC
square
#CC42C9 #CC8A42 #42CC45 #4284CC
split-complementary
#CC42C9 #84CC42 #42CC8A
monochromatic
#741F72 #A42CA2 #CC42C9 #D972D7 #E6A2E5

Accessibility & contrast

On white

4.05
#CC42C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#CC42C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42C9
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42C9#FFFFFF#000000##000000
##CC42C91.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3073CD
Deuteranopia (green-blind)
#6785C5
Tritanopia (blue-blind)
#D35481
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cc42c9;
/* rgb */ color: rgb(204, 66, 201);
/* oklch */ color: oklch(62.4% 0.228 328.8);
Tailwind
colors: {
  custom: {
    50: '#df82da',
    500: '#cc42c9',
    950: '#000000',
  },
}
SCSS
$custom: #cc42c9;
$custom-light: #df82da;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42c9",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 301.304,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.62373,
    "c": 0.22769,
    "h": 328.8
  },
  "luminance": 0.20951
}

Semantic roles & 50–950 ramp

primary
#CC42C9
secondary
#97D398
accent
#E14A47
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC42C9

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

Preview Lab → · Contrast checker → · Palette generator →

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