#CC40AB#CC40AB

#CC40AB is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.7% C 0.208 H 338.7°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CC40AB
RGBrgb(204, 64, 171)
HSLhsl(314, 58%, 53%)
HSVhsv(314, 69%, 80%)
CMYKcmyk(0%, 68.6%, 16.2%, 20%)
CIE-LABlab(51.21, 65.55, -27.93)
CIE-LCHlch(51.21, 71.26, 336.92°)
OKLaboklab(60.68% 0.1941 -0.0756)
OKLCHoklch(60.68% 0.208 338.7)
XYZxyz(34.0867, 19.4476, 40.4787)
Luminance0.1944 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40AB #40CC61
analogous
#A740CC #CC40AB #CC4065
triadic
#CC40AB #ABCC40 #40ABCC
tetradic
#CC40AB #CCA740 #40CC61 #4065CC
square
#CC40AB #CCA740 #40CC61 #4065CC
split-complementary
#CC40AB #65CC40 #40CCA7
monochromatic
#731F5F #A32C87 #CC40AB #D970C0 #E6A1D5

Accessibility & contrast

On white

4.30
#CC40AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#CC40AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC40AB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC40AB#FFFFFF#000000##000000
##CC40AB1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#476CAE
Deuteranopia (green-blind)
#7482A8
Tritanopia (blue-blind)
#D74670
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc40ab;
/* rgb */ color: rgb(204, 64, 171);
/* oklch */ color: oklch(60.7% 0.208 338.7);
Tailwind
colors: {
  custom: {
    50: '#df80c4',
    500: '#cc40ab',
    950: '#000000',
  },
}
SCSS
$custom: #cc40ab;
$custom-light: #df80c4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40ab",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 314.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60682,
    "c": 0.20833,
    "h": 338.7
  },
  "luminance": 0.19444
}

Semantic roles & 50–950 ramp

primary
#CC40AB
secondary
#95D2A4
accent
#E16B47
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CC40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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