#CC40A4#CC40A4

#CC40A4 is a mid, highly saturated pink. Relative luminance 0.192; OKLCH L 60.4% C 0.204 H 341.3°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CC40A4
RGBrgb(204, 64, 164)
HSLhsl(317, 58%, 53%)
HSVhsv(317, 69%, 80%)
CMYKcmyk(0%, 68.6%, 19.6%, 20%)
CIE-LABlab(50.91, 64.58, -24.28)
CIE-LCHlch(50.91, 68.99, 339.39°)
OKLaboklab(60.37% 0.193 -0.0652)
OKLCHoklch(60.37% 0.204 341.3)
XYZxyz(33.4370, 19.1877, 37.0574)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A4 #40CC68
analogous
#AE40CC #CC40A4 #CC405E
triadic
#CC40A4 #A4CC40 #40A4CC
tetradic
#CC40A4 #CCAE40 #40CC68 #405ECC
square
#CC40A4 #CCAE40 #40CC68 #405ECC
split-complementary
#CC40A4 #5ECC40 #40CCAE
monochromatic
#731F5B #A32C81 #CC40A4 #D970BB #E6A1D2

Accessibility & contrast

On white

4.34
#CC40A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#CC40A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40A4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40A4#FFFFFF#000000##000000
##CC40A41.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA7
Deuteranopia (green-blind)
#7681A1
Tritanopia (blue-blind)
#D8426C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc40a4;
/* rgb */ color: rgb(204, 64, 164);
/* oklch */ color: oklch(60.4% 0.204 341.3);
Tailwind
colors: {
  custom: {
    50: '#df80bf',
    500: '#cc40a4',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a4;
$custom-light: #df80bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a4",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 317.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60365,
    "c": 0.20375,
    "h": 341.3
  },
  "luminance": 0.19184
}

Semantic roles & 50–950 ramp

primary
#CC40A4
secondary
#95D2A7
accent
#E17347
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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