#CC51D9#CC51D9

#CC51D9 is a light, highly saturated purple. Relative luminance 0.237; OKLCH L 64.8% C 0.222 H 323.8°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#CC51D9
RGBrgb(204, 81, 217)
HSLhsl(294, 64%, 58%)
HSVhsv(294, 63%, 85%)
CMYKcmyk(6%, 62.7%, 0%, 14.9%)
CIE-LABlab(55.82, 66.27, -47.20)
CIE-LCHlch(55.82, 81.36, 324.54°)
OKLaboklab(64.75% 0.179 -0.1311)
OKLCHoklch(64.75% 0.222 323.8)
XYZxyz(40.3675, 23.7343, 68.0871)
Luminance0.2373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51D9 #5ED951
analogous
#8851D9 #CC51D9 #D951A2
triadic
#CC51D9 #D9CC51 #51D9CC
tetradic
#CC51D9 #D98851 #5ED951 #51A2D9
square
#CC51D9 #D98851 #5ED951 #51A2D9
split-complementary
#CC51D9 #A2D951 #51D988
monochromatic
#851F90 #B42AC2 #CC51D9 #DB83E4 #E9B5EF

Accessibility & contrast

On white

3.65
#CC51D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#CC51D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51D9
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51D9#FFFFFF#000000##000000
##CC51D91.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#367CDD
Deuteranopia (green-blind)
#678BD5
Tritanopia (blue-blind)
#D0668E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cc51d9;
/* rgb */ color: rgb(204, 81, 217);
/* oklch */ color: oklch(64.8% 0.222 323.8);
Tailwind
colors: {
  custom: {
    50: '#df8ae5',
    500: '#cc51d9',
    950: '#000000',
  },
}
SCSS
$custom: #cc51d9;
$custom-light: #df8ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51d9",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 294.265,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.64753,
    "c": 0.22185,
    "h": 323.8
  },
  "luminance": 0.23732
}

Semantic roles & 50–950 ramp

primary
#CC51D9
secondary
#ADDEA8
accent
#E74151
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CC51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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