#CC51CB#CC51CB

#CC51CB is a light, highly saturated purple. Relative luminance 0.230; OKLCH L 64.0% C 0.210 H 328.0°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#CC51CB
RGBrgb(204, 81, 203)
HSLhsl(300, 55%, 56%)
HSVhsv(300, 60%, 80%)
CMYKcmyk(0%, 60.3%, 0.5%, 20%)
CIE-LABlab(55.11, 63.84, -40.36)
CIE-LCHlch(55.11, 75.52, 327.70°)
OKLaboklab(64.01% 0.1782 -0.1113)
OKLCHoklch(64.01% 0.21 328)
XYZxyz(38.6232, 23.0365, 58.9005)
Luminance0.2303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51CB #51CC52
analogous
#8F51CC #CC51CB #CC518D
triadic
#CC51CB #CBCC51 #51CBCC
tetradic
#CC51CB #CC8F51 #51CC52 #518DCC
square
#CC51CB #CC8F51 #51CC52 #518DCC
split-complementary
#CC51CB #8DCC51 #51CC8F
monochromatic
#7E257D #AD33AC #CC51CB #DA80D9 #E8B0E7

Accessibility & contrast

On white

3.75
#CC51CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#CC51CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51CB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51CB#FFFFFF#000000##000000
##CC51CB1.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#437ACF
Deuteranopia (green-blind)
#6E8AC8
Tritanopia (blue-blind)
#D26087
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #cc51cb;
/* rgb */ color: rgb(204, 81, 203);
/* oklch */ color: oklch(64.0% 0.210 328.0);
Tailwind
colors: {
  custom: {
    50: '#df89db',
    500: '#cc51cb',
    950: '#000000',
  },
}
SCSS
$custom: #cc51cb;
$custom-light: #df89db;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51cb",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 300.488,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.64006,
    "c": 0.21007,
    "h": 328
  },
  "luminance": 0.23034
}

Semantic roles & 50–950 ramp

primary
#CC51CB
secondary
#A3D6A3
accent
#DE4B4A
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CC51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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