#CC40A7#CC40A7

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

Color values

HEX#CC40A7
RGBrgb(204, 64, 167)
HSLhsl(316, 58%, 53%)
HSVhsv(316, 69%, 80%)
CMYKcmyk(0%, 68.6%, 18.1%, 20%)
CIE-LABlab(51.03, 64.99, -25.85)
CIE-LCHlch(51.03, 69.94, 338.31°)
OKLaboklab(60.5% 0.1935 -0.0697)
OKLCHoklch(60.5% 0.206 340.2)
XYZxyz(33.7112, 19.2974, 38.5011)
Luminance0.1929 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A7 #40CC65
analogous
#AB40CC #CC40A7 #CC4061
triadic
#CC40A7 #A7CC40 #40A7CC
tetradic
#CC40A7 #CCAB40 #40CC65 #4061CC
square
#CC40A7 #CCAB40 #40CC65 #4061CC
split-complementary
#CC40A7 #61CC40 #40CCAB
monochromatic
#731F5D #A32C84 #CC40A7 #D970BD #E6A1D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC40A7#FFFFFF#000000##000000
##CC40A71.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)
#496BAA
Deuteranopia (green-blind)
#7582A4
Tritanopia (blue-blind)
#D8446E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc40a7;
/* rgb */ color: rgb(204, 64, 167);
/* oklch */ color: oklch(60.5% 0.206 340.2);
Tailwind
colors: {
  custom: {
    50: '#df80c1',
    500: '#cc40a7',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a7;
$custom-light: #df80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a7",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 315.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.605,
    "c": 0.20569,
    "h": 340.2
  },
  "luminance": 0.19294
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC40A7

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

Preview Lab → · Contrast checker → · Palette generator →

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