#CC51C8#CC51C8

#CC51C8 is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 63.9% C 0.208 H 329.0°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#CC51C8
RGBrgb(204, 81, 200)
HSLhsl(302, 55%, 56%)
HSVhsv(302, 60%, 80%)
CMYKcmyk(0%, 60.3%, 2%, 20%)
CIE-LABlab(54.96, 63.33, -38.87)
CIE-LCHlch(54.96, 74.31, 328.46°)
OKLaboklab(63.85% 0.1779 -0.107)
OKLCHoklch(63.85% 0.208 329)
XYZxyz(38.2692, 22.8949, 57.0359)
Luminance0.2289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51C8 #51CC55
analogous
#9251CC #CC51C8 #CC518A
triadic
#CC51C8 #C8CC51 #51C8CC
tetradic
#CC51C8 #CC9251 #51CC55 #518ACC
square
#CC51C8 #CC9251 #51CC55 #518ACC
split-complementary
#CC51C8 #8ACC51 #51CC92
monochromatic
#7E257B #AD33A9 #CC51C8 #DA80D7 #E8B0E6

Accessibility & contrast

On white

3.76
#CC51C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#CC51C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51C8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51C8#FFFFFF#000000##000000
##CC51C81.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4579CC
Deuteranopia (green-blind)
#7089C5
Tritanopia (blue-blind)
#D35F85
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #cc51c8;
/* rgb */ color: rgb(204, 81, 200);
/* oklch */ color: oklch(63.9% 0.208 329.0);
Tailwind
colors: {
  custom: {
    50: '#df89d9',
    500: '#cc51c8',
    950: '#000000',
  },
}
SCSS
$custom: #cc51c8;
$custom-light: #df89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51c8",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 301.951,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.63853,
    "c": 0.20762,
    "h": 329
  },
  "luminance": 0.22892
}

Semantic roles & 50–950 ramp

primary
#CC51C8
secondary
#A3D6A5
accent
#DE4F4A
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #CC51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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