#CC40AD#CC40AD

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

Color values

HEX#CC40AD
RGBrgb(204, 64, 173)
HSLhsl(313, 58%, 53%)
HSVhsv(313, 69%, 80%)
CMYKcmyk(0%, 68.6%, 15.2%, 20%)
CIE-LABlab(51.30, 65.84, -28.97)
CIE-LCHlch(51.30, 71.93, 336.25°)
OKLaboklab(60.78% 0.1944 -0.0785)
OKLCHoklch(60.78% 0.21 338)
XYZxyz(34.2787, 19.5244, 41.4903)
Luminance0.1952 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC40AD #40CC5F
analogous
#A540CC #CC40AD #CC4067
triadic
#CC40AD #ADCC40 #40ADCC
tetradic
#CC40AD #CCA540 #40CC5F #4067CC
square
#CC40AD #CCA540 #40CC5F #4067CC
split-complementary
#CC40AD #67CC40 #40CCA5
monochromatic
#731F60 #A32C89 #CC40AD #D970C2 #E6A1D6

Accessibility & contrast

On white

4.28
#CC40AD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC40AD#FFFFFF#000000##000000
##CC40AD1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#456CB0
Deuteranopia (green-blind)
#7382AA
Tritanopia (blue-blind)
#D74671
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc40ad;
/* rgb */ color: rgb(204, 64, 173);
/* oklch */ color: oklch(60.8% 0.210 338.0);
Tailwind
colors: {
  custom: {
    50: '#df80c5',
    500: '#cc40ad',
    950: '#000000',
  },
}
SCSS
$custom: #cc40ad;
$custom-light: #df80c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc40ad",
  "rgb": {
    "r": 204,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 313.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60776,
    "c": 0.20968,
    "h": 338
  },
  "luminance": 0.19521
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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