#CC51D7#CC51D7

#CC51D7 is a light, highly saturated purple. Relative luminance 0.236; OKLCH L 64.6% C 0.220 H 324.4°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#CC51D7
RGBrgb(204, 81, 215)
HSLhsl(295, 63%, 58%)
HSVhsv(295, 62%, 84%)
CMYKcmyk(5.1%, 62.3%, 0%, 15.7%)
CIE-LABlab(55.72, 65.91, -46.23)
CIE-LCHlch(55.72, 80.51, 324.95°)
OKLaboklab(64.64% 0.1789 -0.1283)
OKLCHoklch(64.64% 0.22 324.4)
XYZxyz(40.1090, 23.6308, 66.7254)
Luminance0.2363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51D7 #5CD751
analogous
#8951D7 #CC51D7 #D7519F
triadic
#CC51D7 #D7CC51 #51D7CC
tetradic
#CC51D7 #D78951 #5CD751 #519FD7
square
#CC51D7 #D78951 #5CD751 #519FD7
split-complementary
#CC51D7 #9FD751 #51D789
monochromatic
#84208D #B32CBF #CC51D7 #DB83E2 #E9B5EE

Accessibility & contrast

On white

3.67
#CC51D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#CC51D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51D7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51D7#FFFFFF#000000##000000
##CC51D71.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#387CDB
Deuteranopia (green-blind)
#688BD3
Tritanopia (blue-blind)
#D0658D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cc51d7;
/* rgb */ color: rgb(204, 81, 215);
/* oklch */ color: oklch(64.6% 0.220 324.4);
Tailwind
colors: {
  custom: {
    50: '#df8ae4',
    500: '#cc51d7',
    950: '#000000',
  },
}
SCSS
$custom: #cc51d7;
$custom-light: #df8ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51d7",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 295.075,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.64643,
    "c": 0.22014,
    "h": 324.4
  },
  "luminance": 0.23629
}

Semantic roles & 50–950 ramp

primary
#CC51D7
secondary
#ACDDA7
accent
#E64250
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C15
muted
#847D84

Preview Lab

Preview with #CC51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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