#CC40A6#CC40A6

#CC40A6 is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.5% C 0.205 H 340.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#CC40A6
RGBrgb(204, 64, 166)
HSLhsl(316, 58%, 53%)
HSVhsv(316, 69%, 80%)
CMYKcmyk(0%, 68.6%, 18.6%, 20%)
CIE-LABlab(50.99, 64.85, -25.33)
CIE-LCHlch(50.99, 69.62, 338.67°)
OKLaboklab(60.46% 0.1934 -0.0682)
OKLCHoklch(60.46% 0.205 340.6)
XYZxyz(33.6191, 19.2605, 38.0161)
Luminance0.1926 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A6 #40CC66
analogous
#AC40CC #CC40A6 #CC4060
triadic
#CC40A6 #A6CC40 #40A6CC
tetradic
#CC40A6 #CCAC40 #40CC66 #4060CC
square
#CC40A6 #CCAC40 #40CC66 #4060CC
split-complementary
#CC40A6 #60CC40 #40CCAC
monochromatic
#731F5C #A32C83 #CC40A6 #D970BD #E6A1D3

Accessibility & contrast

On white

4.33
#CC40A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#CC40A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40A6
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40A6#FFFFFF#000000##000000
##CC40A61.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6BA9
Deuteranopia (green-blind)
#7582A3
Tritanopia (blue-blind)
#D8436D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc40a6;
/* rgb */ color: rgb(204, 64, 166);
/* oklch */ color: oklch(60.5% 0.205 340.6);
Tailwind
colors: {
  custom: {
    50: '#df80c0',
    500: '#cc40a6',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a6;
$custom-light: #df80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a6",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 316.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60455,
    "c": 0.20503,
    "h": 340.6
  },
  "luminance": 0.19257
}

Semantic roles & 50–950 ramp

primary
#CC40A6
secondary
#95D2A6
accent
#E17147
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40A6

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

Preview Lab → · Contrast checker → · Palette generator →

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