#CC40A9#CC40A9

#CC40A9 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.6% C 0.207 H 339.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CC40A9
RGBrgb(204, 64, 169)
HSLhsl(315, 58%, 53%)
HSVhsv(315, 69%, 80%)
CMYKcmyk(0%, 68.6%, 17.2%, 20%)
CIE-LABlab(51.12, 65.27, -26.90)
CIE-LCHlch(51.12, 70.60, 337.61°)
OKLaboklab(60.59% 0.1938 -0.0726)
OKLCHoklch(60.59% 0.207 339.5)
XYZxyz(33.8975, 19.3719, 39.4823)
Luminance0.1937 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A9 #40CC63
analogous
#A940CC #CC40A9 #CC4063
triadic
#CC40A9 #A9CC40 #40A9CC
tetradic
#CC40A9 #CCA940 #40CC63 #4063CC
square
#CC40A9 #CCA940 #40CC63 #4063CC
split-complementary
#CC40A9 #63CC40 #40CCA9
monochromatic
#731F5E #A32C85 #CC40A9 #D970BF #E6A1D4

Accessibility & contrast

On white

4.31
#CC40A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC40A9#FFFFFF#000000##000000
##CC40A91.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#486CAC
Deuteranopia (green-blind)
#7482A6
Tritanopia (blue-blind)
#D8456F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc40a9;
/* rgb */ color: rgb(204, 64, 169);
/* oklch */ color: oklch(60.6% 0.207 339.5);
Tailwind
colors: {
  custom: {
    50: '#df80c3',
    500: '#cc40a9',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a9;
$custom-light: #df80c3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a9",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 315,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6059,
    "c": 0.207,
    "h": 339.5
  },
  "luminance": 0.19369
}

Semantic roles & 50–950 ramp

primary
#CC40A9
secondary
#95D2A5
accent
#E16D47
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40A9

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

Preview Lab → · Contrast checker → · Palette generator →

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