#CC51C7#CC51C7

#CC51C7 is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 63.8% C 0.207 H 329.3°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#CC51C7
RGBrgb(204, 81, 199)
HSLhsl(302, 55%, 56%)
HSVhsv(302, 60%, 80%)
CMYKcmyk(0%, 60.3%, 2.5%, 20%)
CIE-LABlab(54.92, 63.16, -38.37)
CIE-LCHlch(54.92, 73.91, 328.72°)
OKLaboklab(63.8% 0.1778 -0.1056)
OKLCHoklch(63.8% 0.207 329.3)
XYZxyz(38.1527, 22.8483, 56.4224)
Luminance0.2285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51C7 #51CC56
analogous
#9351CC #CC51C7 #CC5189
triadic
#CC51C7 #C7CC51 #51C7CC
tetradic
#CC51C7 #CC9351 #51CC56 #5189CC
square
#CC51C7 #CC9351 #51CC56 #5189CC
split-complementary
#CC51C7 #89CC51 #51CC93
monochromatic
#7E257A #AD33A8 #CC51C7 #DA80D6 #E8B0E5

Accessibility & contrast

On white

3.77
#CC51C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#CC51C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51C7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51C7#FFFFFF#000000##000000
##CC51C71.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4679CB
Deuteranopia (green-blind)
#7089C4
Tritanopia (blue-blind)
#D35F85
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cc51c7;
/* rgb */ color: rgb(204, 81, 199);
/* oklch */ color: oklch(63.8% 0.207 329.3);
Tailwind
colors: {
  custom: {
    50: '#df89d8',
    500: '#cc51c7',
    950: '#000000',
  },
}
SCSS
$custom: #cc51c7;
$custom-light: #df89d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51c7",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 302.439,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.63802,
    "c": 0.2068,
    "h": 329.3
  },
  "luminance": 0.22846
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC51C7

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

Preview Lab → · Contrast checker → · Palette generator →

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