#CC40A3#CC40A3

#CC40A3 is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.3% C 0.203 H 341.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#CC40A3
RGBrgb(204, 64, 163)
HSLhsl(318, 58%, 53%)
HSVhsv(318, 69%, 80%)
CMYKcmyk(0%, 68.6%, 20.1%, 20%)
CIE-LABlab(50.86, 64.44, -23.76)
CIE-LCHlch(50.86, 68.68, 339.76°)
OKLaboklab(60.32% 0.1928 -0.0638)
OKLCHoklch(60.32% 0.203 341.7)
XYZxyz(33.3471, 19.1517, 36.5837)
Luminance0.1915 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40A3 #40CC69
analogous
#AF40CC #CC40A3 #CC405D
triadic
#CC40A3 #A3CC40 #40A3CC
tetradic
#CC40A3 #CCAF40 #40CC69 #405DCC
square
#CC40A3 #CCAF40 #40CC69 #405DCC
split-complementary
#CC40A3 #5DCC40 #40CCAF
monochromatic
#731F5A #A32C80 #CC40A3 #D970BA #E6A1D2

Accessibility & contrast

On white

4.35
#CC40A3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#CC40A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40A3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40A3#FFFFFF#000000##000000
##CC40A31.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA6
Deuteranopia (green-blind)
#7681A0
Tritanopia (blue-blind)
#D8426C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc40a3;
/* rgb */ color: rgb(204, 64, 163);
/* oklch */ color: oklch(60.3% 0.203 341.7);
Tailwind
colors: {
  custom: {
    50: '#df80be',
    500: '#cc40a3',
    950: '#000000',
  },
}
SCSS
$custom: #cc40a3;
$custom-light: #df80be;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40a3",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 317.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60321,
    "c": 0.20311,
    "h": 341.7
  },
  "luminance": 0.19149
}

Semantic roles & 50–950 ramp

primary
#CC40A3
secondary
#95D2A7
accent
#E17447
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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