#CC51B7#CC51B7

#CC51B7 is a light, vivid pink. Relative luminance 0.221; OKLCH L 63.0% C 0.194 H 334.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#CC51B7
RGBrgb(204, 81, 183)
HSLhsl(310, 55%, 56%)
HSVhsv(310, 60%, 80%)
CMYKcmyk(0%, 60.3%, 10.3%, 20%)
CIE-LABlab(54.18, 60.57, -30.31)
CIE-LCHlch(54.18, 67.73, 333.42°)
OKLaboklab(63.02% 0.1758 -0.0825)
OKLCHoklch(63.02% 0.194 334.9)
XYZxyz(36.3918, 22.1440, 47.1481)
Luminance0.2214 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51B7 #51CC66
analogous
#A351CC #CC51B7 #CC5179
triadic
#CC51B7 #B7CC51 #51B7CC
tetradic
#CC51B7 #CCA351 #51CC66 #5179CC
square
#CC51B7 #CCA351 #51CC66 #5179CC
split-complementary
#CC51B7 #79CC51 #51CCA3
monochromatic
#7E256F #AD3398 #CC51B7 #DA80CB #E8B0DE

Accessibility & contrast

On white

3.87
#CC51B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#CC51B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51B7
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51B7#FFFFFF#000000##000000
##CC51B71.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5176BA
Deuteranopia (green-blind)
#7788B4
Tritanopia (blue-blind)
#D5597D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cc51b7;
/* rgb */ color: rgb(204, 81, 183);
/* oklch */ color: oklch(63.0% 0.194 334.9);
Tailwind
colors: {
  custom: {
    50: '#df89cd',
    500: '#cc51b7',
    950: '#000000',
  },
}
SCSS
$custom: #cc51b7;
$custom-light: #df89cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51b7",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 310.244,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.63024,
    "c": 0.19422,
    "h": 334.9
  },
  "luminance": 0.22141
}

Semantic roles & 50–950 ramp

primary
#CC51B7
secondary
#A3D6AC
accent
#DE634A
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160C13
muted
#847D82

Preview Lab

Preview with #CC51B7

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

Preview Lab → · Contrast checker → · Palette generator →

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