#CC40A1#CC40A1

#CC40A1 is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.2% C 0.202 H 342.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#CC40A1
RGBrgb(204, 64, 161)
HSLhsl(318, 58%, 53%)
HSVhsv(318, 69%, 80%)
CMYKcmyk(0%, 68.6%, 21.1%, 20%)
CIE-LABlab(50.78, 64.17, -22.70)
CIE-LCHlch(50.78, 68.07, 340.52°)
OKLaboklab(60.23% 0.1925 -0.0608)
OKLCHoklch(60.23% 0.202 342.5)
XYZxyz(33.1693, 19.0806, 35.6474)
Luminance0.1908 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A1 #40CC6B
analogous
#B140CC #CC40A1 #CC405B
triadic
#CC40A1 #A1CC40 #40A1CC
tetradic
#CC40A1 #CCB140 #40CC6B #405BCC
square
#CC40A1 #CCB140 #40CC6B #405BCC
split-complementary
#CC40A1 #5BCC40 #40CCB1
monochromatic
#731F59 #A32C7E #CC40A1 #D970B9 #E6A1D1

Accessibility & contrast

On white

4.36
#CC40A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#CC40A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40A1
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40A1#FFFFFF#000000##000000
##CC40A11.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6AA4
Deuteranopia (green-blind)
#77819E
Tritanopia (blue-blind)
#D9416B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc40a1;
/* rgb */ color: rgb(204, 64, 161);
/* oklch */ color: oklch(60.2% 0.202 342.5);
Tailwind
colors: {
  custom: {
    50: '#df80bd',
    500: '#cc40a1',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a1;
$custom-light: #df80bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a1",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 318.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60234,
    "c": 0.20186,
    "h": 342.5
  },
  "luminance": 0.19077
}

Semantic roles & 50–950 ramp

primary
#CC40A1
secondary
#95D2A8
accent
#E17647
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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