#CC51B2#CC51B2

#CC51B2 is a light, vivid pink. Relative luminance 0.219; OKLCH L 62.8% C 0.190 H 336.8°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#CC51B2
RGBrgb(204, 81, 178)
HSLhsl(313, 55%, 56%)
HSVhsv(313, 60%, 80%)
CMYKcmyk(0%, 60.3%, 12.7%, 20%)
CIE-LABlab(53.96, 59.80, -27.75)
CIE-LCHlch(53.96, 65.92, 335.11°)
OKLaboklab(62.79% 0.175 -0.0752)
OKLCHoklch(62.79% 0.19 336.8)
XYZxyz(35.8806, 21.9395, 44.4558)
Luminance0.2194 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51B2 #51CC6B
analogous
#A851CC #CC51B2 #CC5174
triadic
#CC51B2 #B2CC51 #51B2CC
tetradic
#CC51B2 #CCA851 #51CC6B #5174CC
square
#CC51B2 #CCA851 #51CC6B #5174CC
split-complementary
#CC51B2 #74CC51 #51CCA8
monochromatic
#7E256B #AD3393 #CC51B2 #DA80C7 #E8B0DC

Accessibility & contrast

On white

3.90
#CC51B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#CC51B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51B2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51B2#FFFFFF#000000##000000
##CC51B21.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#7988AF
Tritanopia (blue-blind)
#D6577A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cc51b2;
/* rgb */ color: rgb(204, 81, 178);
/* oklch */ color: oklch(62.8% 0.190 336.8);
Tailwind
colors: {
  custom: {
    50: '#df89c9',
    500: '#cc51b2',
    950: '#000000',
  },
}
SCSS
$custom: #cc51b2;
$custom-light: #df89c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51b2",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 312.683,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.62794,
    "c": 0.19049,
    "h": 336.8
  },
  "luminance": 0.21937
}

Semantic roles & 50–950 ramp

primary
#CC51B2
secondary
#A3D6AE
accent
#DE694A
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #CC51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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