#CC51C2#CC51C2

#CC51C2 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 63.6% C 0.203 H 331.0°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#CC51C2
RGBrgb(204, 81, 194)
HSLhsl(305, 55%, 56%)
HSVhsv(305, 60%, 80%)
CMYKcmyk(0%, 60.3%, 4.9%, 20%)
CIE-LABlab(54.68, 62.34, -35.88)
CIE-LCHlch(54.68, 71.92, 330.08°)
OKLaboklab(63.55% 0.1773 -0.0984)
OKLCHoklch(63.55% 0.203 331)
XYZxyz(37.5817, 22.6199, 53.4151)
Luminance0.2262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51C2 #51CC5B
analogous
#9851CC #CC51C2 #CC5184
triadic
#CC51C2 #C2CC51 #51C2CC
tetradic
#CC51C2 #CC9851 #51CC5B #5184CC
square
#CC51C2 #CC9851 #51CC5B #5184CC
split-complementary
#CC51C2 #84CC51 #51CC98
monochromatic
#7E2577 #AD33A3 #CC51C2 #DA80D3 #E8B0E3

Accessibility & contrast

On white

3.80
#CC51C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#CC51C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51C2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51C2#FFFFFF#000000##000000
##CC51C21.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C5
Deuteranopia (green-blind)
#7289BF
Tritanopia (blue-blind)
#D45D82
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cc51c2;
/* rgb */ color: rgb(204, 81, 194);
/* oklch */ color: oklch(63.6% 0.203 331.0);
Tailwind
colors: {
  custom: {
    50: '#df89d5',
    500: '#cc51c2',
    950: '#000000',
  },
}
SCSS
$custom: #cc51c2;
$custom-light: #df89d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51c2",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 304.878,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.63552,
    "c": 0.20277,
    "h": 331
  },
  "luminance": 0.22617
}

Semantic roles & 50–950 ramp

primary
#CC51C2
secondary
#A3D6A7
accent
#DE564A
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #CC51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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