#CC42A8#CC42A8

#CC42A8 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.7% C 0.204 H 339.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CC42A8
RGBrgb(204, 66, 168)
HSLhsl(316, 58%, 53%)
HSVhsv(316, 68%, 80%)
CMYKcmyk(0%, 67.6%, 17.6%, 20%)
CIE-LABlab(51.34, 64.39, -25.97)
CIE-LCHlch(51.34, 69.43, 338.04°)
OKLaboklab(60.74% 0.1915 -0.07)
OKLCHoklch(60.74% 0.204 339.9)
XYZxyz(33.9188, 19.5641, 39.0281)
Luminance0.1956 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42A8 #42CC66
analogous
#AB42CC #CC42A8 #CC4263
triadic
#CC42A8 #A8CC42 #42A8CC
tetradic
#CC42A8 #CCAB42 #42CC66 #4263CC
square
#CC42A8 #CCAB42 #42CC66 #4263CC
split-complementary
#CC42A8 #63CC42 #42CCAB
monochromatic
#741F5E #A42C85 #CC42A8 #D972BE #E6A2D4

Accessibility & contrast

On white

4.28
#CC42A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CC42A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42A8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42A8#FFFFFF#000000##000000
##CC42A81.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6CAB
Deuteranopia (green-blind)
#7582A5
Tritanopia (blue-blind)
#D8466F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc42a8;
/* rgb */ color: rgb(204, 66, 168);
/* oklch */ color: oklch(60.7% 0.204 339.9);
Tailwind
colors: {
  custom: {
    50: '#df81c2',
    500: '#cc42a8',
    950: '#000000',
  },
}
SCSS
$custom: #cc42a8;
$custom-light: #df81c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42a8",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 315.652,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60738,
    "c": 0.20386,
    "h": 339.9
  },
  "luminance": 0.19561
}

Semantic roles & 50–950 ramp

primary
#CC42A8
secondary
#97D3A7
accent
#E16F47
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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