#CC51A3#CC51A3

#CC51A3 is a light, vivid pink. Relative luminance 0.214; OKLCH L 62.1% C 0.180 H 342.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#CC51A3
RGBrgb(204, 81, 163)
HSLhsl(320, 55%, 56%)
HSVhsv(320, 60%, 80%)
CMYKcmyk(0%, 60.3%, 20.1%, 20%)
CIE-LABlab(53.35, 57.59, -19.93)
CIE-LCHlch(53.35, 60.94, 340.91°)
OKLaboklab(62.15% 0.1721 -0.0532)
OKLCHoklch(62.15% 0.18 342.8)
XYZxyz(34.4560, 21.3697, 36.9533)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51A3 #51CC7A
analogous
#B751CC #CC51A3 #CC5165
triadic
#CC51A3 #A3CC51 #51A3CC
tetradic
#CC51A3 #CCB751 #51CC7A #5165CC
square
#CC51A3 #CCB751 #51CC7A #5165CC
split-complementary
#CC51A3 #65CC51 #51CCB7
monochromatic
#7E2560 #AD3384 #CC51A3 #DA80BC #E8B0D5

Accessibility & contrast

On white

3.98
#CC51A3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#CC51A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51A3
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51A3#FFFFFF#000000##000000
##CC51A31.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A6
Deuteranopia (green-blind)
#7E87A0
Tritanopia (blue-blind)
#D85173
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cc51a3;
/* rgb */ color: rgb(204, 81, 163);
/* oklch */ color: oklch(62.1% 0.180 342.8);
Tailwind
colors: {
  custom: {
    50: '#df88be',
    500: '#cc51a3',
    950: '#000000',
  },
}
SCSS
$custom: #cc51a3;
$custom-light: #df88be;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51a3",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 163
  },
  "hsl": {
    "h": 320,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.62145,
    "c": 0.1801,
    "h": 342.8
  },
  "luminance": 0.21367
}

Semantic roles & 50–950 ramp

primary
#CC51A3
secondary
#A3D6B4
accent
#DE7B4A
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CC51A3

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

Preview Lab → · Contrast checker → · Palette generator →

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