#CC40A8#CC40A8

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

Color values

HEX#CC40A8
RGBrgb(204, 64, 168)
HSLhsl(315, 58%, 53%)
HSVhsv(315, 69%, 80%)
CMYKcmyk(0%, 68.6%, 17.6%, 20%)
CIE-LABlab(51.08, 65.13, -26.37)
CIE-LCHlch(51.08, 70.27, 337.95°)
OKLaboklab(60.55% 0.1937 -0.0711)
OKLCHoklch(60.55% 0.206 339.8)
XYZxyz(33.8040, 19.3345, 38.9898)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A8 #40CC64
analogous
#AA40CC #CC40A8 #CC4062
triadic
#CC40A8 #A8CC40 #40A8CC
tetradic
#CC40A8 #CCAA40 #40CC64 #4062CC
square
#CC40A8 #CCAA40 #40CC64 #4062CC
split-complementary
#CC40A8 #62CC40 #40CCAA
monochromatic
#731F5D #A32C84 #CC40A8 #D970BE #E6A1D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC40A8#FFFFFF#000000##000000
##CC40A81.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#486BAB
Deuteranopia (green-blind)
#7582A5
Tritanopia (blue-blind)
#D8446E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc40a8;
/* rgb */ color: rgb(204, 64, 168);
/* oklch */ color: oklch(60.5% 0.206 339.8);
Tailwind
colors: {
  custom: {
    50: '#df80c2',
    500: '#cc40a8',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a8;
$custom-light: #df80c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a8",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 315.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60545,
    "c": 0.20634,
    "h": 339.8
  },
  "luminance": 0.19331
}

Semantic roles & 50–950 ramp

primary
#CC40A8
secondary
#95D2A5
accent
#E16E47
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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