#CC42A9#CC42A9

#CC42A9 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.8% C 0.205 H 339.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CC42A9
RGBrgb(204, 66, 169)
HSLhsl(315, 58%, 53%)
HSVhsv(315, 68%, 80%)
CMYKcmyk(0%, 67.6%, 17.2%, 20%)
CIE-LABlab(51.38, 64.53, -26.49)
CIE-LCHlch(51.38, 69.76, 337.68°)
OKLaboklab(60.78% 0.1916 -0.0715)
OKLCHoklch(60.78% 0.205 339.5)
XYZxyz(34.0123, 19.6015, 39.5206)
Luminance0.1960 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42A9 #42CC65
analogous
#AA42CC #CC42A9 #CC4264
triadic
#CC42A9 #A9CC42 #42A9CC
tetradic
#CC42A9 #CCAA42 #42CC65 #4264CC
square
#CC42A9 #CCAA42 #42CC65 #4264CC
split-complementary
#CC42A9 #64CC42 #42CCAA
monochromatic
#741F5F #A42C86 #CC42A9 #D972BF #E6A2D5

Accessibility & contrast

On white

4.27
#CC42A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#CC42A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42A9
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42A9#FFFFFF#000000##000000
##CC42A91.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6CAC
Deuteranopia (green-blind)
#7582A6
Tritanopia (blue-blind)
#D74670
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc42a9;
/* rgb */ color: rgb(204, 66, 169);
/* oklch */ color: oklch(60.8% 0.205 339.5);
Tailwind
colors: {
  custom: {
    50: '#df81c3',
    500: '#cc42a9',
    950: '#000000',
  },
}
SCSS
$custom: #cc42a9;
$custom-light: #df81c3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42a9",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 315.217,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60783,
    "c": 0.20452,
    "h": 339.5
  },
  "luminance": 0.19598
}

Semantic roles & 50–950 ramp

primary
#CC42A9
secondary
#97D3A6
accent
#E16E47
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC42A9

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

Preview Lab → · Contrast checker → · Palette generator →

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