#CC5DEC#CC5DEC

#CC5DEC is a light, highly saturated purple. Relative luminance 0.267; OKLCH L 67.2% C 0.223 H 318.0°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#CC5DEC
RGBrgb(204, 93, 236)
HSLhsl(287, 79%, 65%)
HSVhsv(287, 61%, 93%)
CMYKcmyk(13.6%, 60.6%, 0%, 7.5%)
CIE-LABlab(58.72, 64.60, -53.27)
CIE-LCHlch(58.72, 83.73, 320.49°)
OKLaboklab(67.18% 0.1655 -0.1489)
OKLCHoklch(67.18% 0.223 318)
XYZxyz(43.9544, 26.7240, 82.1835)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5DEC #7DEC5D
analogous
#845DEC #CC5DEC #EC5DC5
triadic
#CC5DEC #ECCC5D #5DECCC
tetradic
#CC5DEC #EC845D #7DEC5D #5DC5EC
square
#CC5DEC #EC845D #7DEC5D #5DC5EC
split-complementary
#CC5DEC #C5EC5D #5DEC84
monochromatic
#9416B9 #BB26E6 #CC5DEC #DD94F2 #EECBF9

Accessibility & contrast

On white

3.31
#CC5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#CC5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5DEC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5DEC#FFFFFF#000000##000000
##CC5DEC1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3586F0
Deuteranopia (green-blind)
#6391E8
Tritanopia (blue-blind)
#CB759C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #cc5dec;
/* rgb */ color: rgb(204, 93, 236);
/* oklch */ color: oklch(67.2% 0.223 318.0);
Tailwind
colors: {
  custom: {
    50: '#df91f3',
    500: '#cc5dec',
    950: '#000000',
  },
}
SCSS
$custom: #cc5dec;
$custom-light: #df91f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5dec",
  "rgb": {
    "r": 204,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 286.573,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.6718,
    "c": 0.22259,
    "h": 318
  },
  "luminance": 0.26722
}

Semantic roles & 50–950 ramp

primary
#CC5DEC
secondary
#C5EBBA
accent
#DB0A39
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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