#CC51FF#CC51FF

#CC51FF is a light, highly saturated purple. Relative luminance 0.259; OKLCH L 67.0% C 0.255 H 314.2°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#CC51FF
RGBrgb(204, 81, 255)
HSLhsl(282, 100%, 66%)
HSVhsv(282, 68%, 100%)
CMYKcmyk(20%, 68.2%, 0%, 0%)
CIE-LABlab(57.98, 73.36, -65.00)
CIE-LCHlch(57.98, 98.01, 318.46°)
OKLaboklab(67% 0.1779 -0.1831)
OKLCHoklch(67% 0.255 314.2)
XYZxyz(45.8912, 25.9437, 97.1786)
Luminance0.2594 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51FF #84FF51
analogous
#7551FF #CC51FF #FF51DB
triadic
#CC51FF #FFCC51 #51FFCC
tetradic
#CC51FF #FF7551 #84FF51 #51DBFF
square
#CC51FF #FF7551 #84FF51 #51DBFF
split-complementary
#CC51FF #DBFF51 #51FF75
monochromatic
#9700D6 #BA14FF #CC51FF #DE8EFF #F0CBFF

Accessibility & contrast

On white

3.39
#CC51FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#CC51FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51FF
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51FF#FFFFFF#000000##000000
##CC51FF1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#488EFB
Tritanopia (blue-blind)
#C775A2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #cc51ff;
/* rgb */ color: rgb(204, 81, 255);
/* oklch */ color: oklch(67.0% 0.255 314.2);
Tailwind
colors: {
  custom: {
    50: '#e08bff',
    500: '#cc51ff',
    950: '#000000',
  },
}
SCSS
$custom: #cc51ff;
$custom-light: #e08bff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51ff",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 282.414,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.67003,
    "c": 0.25531,
    "h": 314.2
  },
  "luminance": 0.25942
}

Semantic roles & 50–950 ramp

primary
#CC51FF
secondary
#CAF3B9
accent
#E60043
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CC51FF

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

Preview Lab → · Contrast checker → · Palette generator →

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