#CC51AC#CC51AC

#CC51AC is a light, vivid pink. Relative luminance 0.217; OKLCH L 62.5% C 0.186 H 339.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#CC51AC
RGBrgb(204, 81, 172)
HSLhsl(316, 55%, 56%)
HSVhsv(316, 60%, 80%)
CMYKcmyk(0%, 60.3%, 15.7%, 20%)
CIE-LABlab(53.71, 58.89, -24.64)
CIE-LCHlch(53.71, 63.84, 337.29°)
OKLaboklab(62.53% 0.1739 -0.0664)
OKLCHoklch(62.53% 0.186 339.1)
XYZxyz(35.2913, 21.7038, 41.3523)
Luminance0.2170 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51AC #51CC71
analogous
#AF51CC #CC51AC #CC516E
triadic
#CC51AC #ACCC51 #51ACCC
tetradic
#CC51AC #CCAF51 #51CC71 #516ECC
square
#CC51AC #CCAF51 #51CC71 #516ECC
split-complementary
#CC51AC #6ECC51 #51CCAF
monochromatic
#7E2567 #AD338D #CC51AC #DA80C3 #E8B0D9

Accessibility & contrast

On white

3.93
#CC51AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#CC51AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51AC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51AC#FFFFFF#000000##000000
##CC51AC1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5674AF
Deuteranopia (green-blind)
#7B87A9
Tritanopia (blue-blind)
#D75577
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cc51ac;
/* rgb */ color: rgb(204, 81, 172);
/* oklch */ color: oklch(62.5% 0.186 339.1);
Tailwind
colors: {
  custom: {
    50: '#df89c5',
    500: '#cc51ac',
    950: '#000000',
  },
}
SCSS
$custom: #cc51ac;
$custom-light: #df89c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51ac",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 315.61,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.62527,
    "c": 0.18619,
    "h": 339.1
  },
  "luminance": 0.21701
}

Semantic roles & 50–950 ramp

primary
#CC51AC
secondary
#A3D6B0
accent
#DE704A
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #CC51AC

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

Preview Lab → · Contrast checker → · Palette generator →

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