#CC51E1#CC51E1

#CC51E1 is a light, highly saturated purple. Relative luminance 0.242; OKLCH L 65.2% C 0.229 H 321.5°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#CC51E1
RGBrgb(204, 81, 225)
HSLhsl(291, 71%, 60%)
HSVhsv(291, 64%, 88%)
CMYKcmyk(9.3%, 64%, 0%, 11.8%)
CIE-LABlab(56.25, 67.70, -51.04)
CIE-LCHlch(56.25, 84.79, 322.99°)
OKLaboklab(65.2% 0.1791 -0.1423)
OKLCHoklch(65.2% 0.229 321.5)
XYZxyz(41.4334, 24.1606, 73.7006)
Luminance0.2416 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51E1 #66E151
analogous
#8451E1 #CC51E1 #E151AE
triadic
#CC51E1 #E1CC51 #51E1CC
tetradic
#CC51E1 #E18451 #66E151 #51AEE1
square
#CC51E1 #E18451 #66E151 #51AEE1
split-complementary
#CC51E1 #AEE151 #51E184
monochromatic
#8A1B9D #B824D1 #CC51E1 #DB85EA #EBB9F3

Accessibility & contrast

On white

3.60
#CC51E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#CC51E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51E1
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51E1#FFFFFF#000000##000000
##CC51E11.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7EE5
Deuteranopia (green-blind)
#628BDD
Tritanopia (blue-blind)
#CE6992
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #cc51e1;
/* rgb */ color: rgb(204, 81, 225);
/* oklch */ color: oklch(65.2% 0.229 321.5);
Tailwind
colors: {
  custom: {
    50: '#df8aeb',
    500: '#cc51e1',
    950: '#000000',
  },
}
SCSS
$custom: #cc51e1;
$custom-light: #df8aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51e1",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 291.25,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.652,
    "c": 0.22876,
    "h": 321.5
  },
  "luminance": 0.24158
}

Semantic roles & 50–950 ramp

primary
#CC51E1
secondary
#B3E3AB
accent
#ED3A55
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CC51E1

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

Preview Lab → · Contrast checker → · Palette generator →

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