#CC42A2#CC42A2

#CC42A2 is a mid, vivid pink. Relative luminance 0.193; OKLCH L 60.5% C 0.200 H 342.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CC42A2
RGBrgb(204, 66, 162)
HSLhsl(318, 58%, 53%)
HSVhsv(318, 68%, 80%)
CMYKcmyk(0%, 67.6%, 20.6%, 20%)
CIE-LABlab(51.09, 63.56, -22.82)
CIE-LCHlch(51.09, 67.53, 340.25°)
OKLaboklab(60.47% 0.1904 -0.0611)
OKLCHoklch(60.47% 0.2 342.2)
XYZxyz(33.3727, 19.3457, 36.1519)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42A2 #42CC6C
analogous
#B142CC #CC42A2 #CC425D
triadic
#CC42A2 #A2CC42 #42A2CC
tetradic
#CC42A2 #CCB142 #42CC6C #425DCC
square
#CC42A2 #CCB142 #42CC6C #425DCC
split-complementary
#CC42A2 #5DCC42 #42CCB1
monochromatic
#741F5A #A42C80 #CC42A2 #D972BA #E6A2D1

Accessibility & contrast

On white

4.31
#CC42A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#CC42A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42A2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42A2#FFFFFF#000000##000000
##CC42A21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc42a2;
/* rgb */ color: rgb(204, 66, 162);
/* oklch */ color: oklch(60.5% 0.200 342.2);
Tailwind
colors: {
  custom: {
    50: '#df81bd',
    500: '#cc42a2',
    950: '#000000',
  },
}
SCSS
$custom: #cc42a2;
$custom-light: #df81bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42a2",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 318.261,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60472,
    "c": 0.19998,
    "h": 342.2
  },
  "luminance": 0.19342
}

Semantic roles & 50–950 ramp

primary
#CC42A2
secondary
#97D3A9
accent
#E17647
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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