#CC40A2#CC40A2

#CC40A2 is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.3% C 0.202 H 342.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#CC40A2
RGBrgb(204, 64, 162)
HSLhsl(318, 58%, 53%)
HSVhsv(318, 69%, 80%)
CMYKcmyk(0%, 68.6%, 20.6%, 20%)
CIE-LABlab(50.82, 64.31, -23.23)
CIE-LCHlch(50.82, 68.37, 340.14°)
OKLaboklab(60.28% 0.1927 -0.0623)
OKLCHoklch(60.28% 0.202 342.1)
XYZxyz(33.2578, 19.1160, 36.1137)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A2 #40CC6A
analogous
#B040CC #CC40A2 #CC405C
triadic
#CC40A2 #A2CC40 #40A2CC
tetradic
#CC40A2 #CCB040 #40CC6A #405CCC
square
#CC40A2 #CCB040 #40CC6A #405CCC
split-complementary
#CC40A2 #5CCC40 #40CCB0
monochromatic
#731F5A #A32C7F #CC40A2 #D970BA #E6A1D1

Accessibility & contrast

On white

4.35
#CC40A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#CC40A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40A2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40A2#FFFFFF#000000##000000
##CC40A21.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6AA5
Deuteranopia (green-blind)
#77819F
Tritanopia (blue-blind)
#D8426B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc40a2;
/* rgb */ color: rgb(204, 64, 162);
/* oklch */ color: oklch(60.3% 0.202 342.1);
Tailwind
colors: {
  custom: {
    50: '#df80bd',
    500: '#cc40a2',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a2;
$custom-light: #df80bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a2",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 318,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60277,
    "c": 0.20248,
    "h": 342.1
  },
  "luminance": 0.19113
}

Semantic roles & 50–950 ramp

primary
#CC40A2
secondary
#95D2A8
accent
#E17547
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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