#CC51A2#CC51A2

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

Color values

HEX#CC51A2
RGBrgb(204, 81, 162)
HSLhsl(320, 55%, 56%)
HSVhsv(320, 60%, 80%)
CMYKcmyk(0%, 60.3%, 20.6%, 20%)
CIE-LABlab(53.31, 57.44, -19.41)
CIE-LCHlch(53.31, 60.63, 341.33°)
OKLaboklab(62.1% 0.1718 -0.0517)
OKLCHoklch(62.1% 0.179 343.2)
XYZxyz(34.3668, 21.3340, 36.4833)
Luminance0.2133 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51A2 #51CC7B
analogous
#B951CC #CC51A2 #CC5164
triadic
#CC51A2 #A2CC51 #51A2CC
tetradic
#CC51A2 #CCB951 #51CC7B #5164CC
square
#CC51A2 #CCB951 #51CC7B #5164CC
split-complementary
#CC51A2 #64CC51 #51CCB9
monochromatic
#7E255F #AD3383 #CC51A2 #DA80BB #E8B0D5

Accessibility & contrast

On white

3.99
#CC51A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC51A2#FFFFFF#000000##000000
##CC51A21.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A5
Deuteranopia (green-blind)
#7E879F
Tritanopia (blue-blind)
#D85172
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cc51a2;
/* rgb */ color: rgb(204, 81, 162);
/* oklch */ color: oklch(62.1% 0.179 343.2);
Tailwind
colors: {
  custom: {
    50: '#df88bd',
    500: '#cc51a2',
    950: '#000000',
  },
}
SCSS
$custom: #cc51a2;
$custom-light: #df88bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51a2",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 320.488,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.62104,
    "c": 0.17945,
    "h": 343.2
  },
  "luminance": 0.21331
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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