#CC42A1#CC42A1

#CC42A1 is a mid, vivid pink. Relative luminance 0.193; OKLCH L 60.4% C 0.199 H 342.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#CC42A1
RGBrgb(204, 66, 161)
HSLhsl(319, 58%, 53%)
HSVhsv(319, 68%, 80%)
CMYKcmyk(0%, 67.6%, 21.1%, 20%)
CIE-LABlab(51.05, 63.43, -22.29)
CIE-LCHlch(51.05, 67.23, 340.64°)
OKLaboklab(60.43% 0.1902 -0.0597)
OKLCHoklch(60.43% 0.199 342.6)
XYZxyz(33.2841, 19.3103, 35.6856)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42A1 #42CC6D
analogous
#B242CC #CC42A1 #CC425C
triadic
#CC42A1 #A1CC42 #42A1CC
tetradic
#CC42A1 #CCB242 #42CC6D #425CCC
square
#CC42A1 #CCB242 #42CC6D #425CCC
split-complementary
#CC42A1 #5CCC42 #42CCB2
monochromatic
#741F5A #A42C7F #CC42A1 #D972B9 #E6A2D1

Accessibility & contrast

On white

4.32
#CC42A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#CC42A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42A1
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42A1#FFFFFF#000000##000000
##CC42A11.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6BA4
Deuteranopia (green-blind)
#78829E
Tritanopia (blue-blind)
#D8436C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc42a1;
/* rgb */ color: rgb(204, 66, 161);
/* oklch */ color: oklch(60.4% 0.199 342.6);
Tailwind
colors: {
  custom: {
    50: '#df81bd',
    500: '#cc42a1',
    950: '#000000',
  },
}
SCSS
$custom: #cc42a1;
$custom-light: #df81bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42a1",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 318.696,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60428,
    "c": 0.19935,
    "h": 342.6
  },
  "luminance": 0.19307
}

Semantic roles & 50–950 ramp

primary
#CC42A1
secondary
#97D3AA
accent
#E17747
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC42A1

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

Preview Lab → · Contrast checker → · Palette generator →

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