#CC40AC#CC40AC

#CC40AC is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.7% C 0.209 H 338.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#CC40AC
RGBrgb(204, 64, 172)
HSLhsl(314, 58%, 53%)
HSVhsv(314, 69%, 80%)
CMYKcmyk(0%, 68.6%, 15.7%, 20%)
CIE-LABlab(51.25, 65.70, -28.45)
CIE-LCHlch(51.25, 71.59, 336.58°)
OKLaboklab(60.73% 0.1943 -0.077)
OKLCHoklch(60.73% 0.209 338.4)
XYZxyz(34.1823, 19.4858, 40.9826)
Luminance0.1948 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40AC #40CC60
analogous
#A640CC #CC40AC #CC4066
triadic
#CC40AC #ACCC40 #40ACCC
tetradic
#CC40AC #CCA640 #40CC60 #4066CC
square
#CC40AC #CCA640 #40CC60 #4066CC
split-complementary
#CC40AC #66CC40 #40CCA6
monochromatic
#731F60 #A32C88 #CC40AC #D970C1 #E6A1D6

Accessibility & contrast

On white

4.29
#CC40AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CC40AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40AC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40AC#FFFFFF#000000##000000
##CC40AC1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#466CAF
Deuteranopia (green-blind)
#7382A9
Tritanopia (blue-blind)
#D74671
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc40ac;
/* rgb */ color: rgb(204, 64, 172);
/* oklch */ color: oklch(60.7% 0.209 338.4);
Tailwind
colors: {
  custom: {
    50: '#df80c5',
    500: '#cc40ac',
    950: '#000000',
  },
}
SCSS
$custom: #cc40ac;
$custom-light: #df80c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40ac",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 313.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60729,
    "c": 0.20901,
    "h": 338.4
  },
  "luminance": 0.19483
}

Semantic roles & 50–950 ramp

primary
#CC40AC
secondary
#95D2A3
accent
#E16A47
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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