#CC42AA#CC42AA

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

Color values

HEX#CC42AA
RGBrgb(204, 66, 170)
HSLhsl(315, 58%, 53%)
HSVhsv(315, 68%, 80%)
CMYKcmyk(0%, 67.6%, 16.7%, 20%)
CIE-LABlab(51.43, 64.67, -27.01)
CIE-LCHlch(51.43, 70.09, 337.34°)
OKLaboklab(60.83% 0.1918 -0.073)
OKLCHoklch(60.83% 0.205 339.2)
XYZxyz(34.1065, 19.6392, 40.0169)
Luminance0.1964 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42AA #42CC64
analogous
#A942CC #CC42AA #CC4265
triadic
#CC42AA #AACC42 #42AACC
tetradic
#CC42AA #CCA942 #42CC64 #4265CC
square
#CC42AA #CCA942 #42CC64 #4265CC
split-complementary
#CC42AA #65CC42 #42CCA9
monochromatic
#741F5F #A42C87 #CC42AA #D972C0 #E6A2D5

Accessibility & contrast

On white

4.26
#CC42AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CC42AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42AA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42AA#FFFFFF#000000##000000
##CC42AA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#496DAD
Deuteranopia (green-blind)
#7582A7
Tritanopia (blue-blind)
#D74770
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc42aa;
/* rgb */ color: rgb(204, 66, 170);
/* oklch */ color: oklch(60.8% 0.205 339.2);
Tailwind
colors: {
  custom: {
    50: '#df81c3',
    500: '#cc42aa',
    950: '#000000',
  },
}
SCSS
$custom: #cc42aa;
$custom-light: #df81c3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42aa",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 314.783,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60828,
    "c": 0.20519,
    "h": 339.2
  },
  "luminance": 0.19636
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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