#CC40A5#CC40A5

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

Color values

HEX#CC40A5
RGBrgb(204, 64, 165)
HSLhsl(317, 58%, 53%)
HSVhsv(317, 69%, 80%)
CMYKcmyk(0%, 68.6%, 19.1%, 20%)
CIE-LABlab(50.95, 64.71, -24.81)
CIE-LCHlch(50.95, 69.31, 339.03°)
OKLaboklab(60.41% 0.1932 -0.0667)
OKLCHoklch(60.41% 0.204 340.9)
XYZxyz(33.5277, 19.2240, 37.5349)
Luminance0.1922 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A5 #40CC67
analogous
#AD40CC #CC40A5 #CC405F
triadic
#CC40A5 #A5CC40 #40A5CC
tetradic
#CC40A5 #CCAD40 #40CC67 #405FCC
square
#CC40A5 #CCAD40 #40CC67 #405FCC
split-complementary
#CC40A5 #5FCC40 #40CCAD
monochromatic
#731F5B #A32C82 #CC40A5 #D970BC #E6A1D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC40A5#FFFFFF#000000##000000
##CC40A51.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)
#4A6BA8
Deuteranopia (green-blind)
#7682A2
Tritanopia (blue-blind)
#D8436D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc40a5;
/* rgb */ color: rgb(204, 64, 165);
/* oklch */ color: oklch(60.4% 0.204 340.9);
Tailwind
colors: {
  custom: {
    50: '#df80c0',
    500: '#cc40a5',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a5;
$custom-light: #df80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a5",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 316.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6041,
    "c": 0.20439,
    "h": 340.9
  },
  "luminance": 0.19221
}

Semantic roles & 50–950 ramp

primary
#CC40A5
secondary
#95D2A6
accent
#E17247
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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