#CC5DF2#CC5DF2

#CC5DF2 is a light, highly saturated purple. Relative luminance 0.271; OKLCH L 67.5% C 0.228 H 316.5°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#CC5DF2
RGBrgb(204, 93, 242)
HSLhsl(285, 85%, 66%)
HSVhsv(285, 62%, 95%)
CMYKcmyk(15.7%, 61.6%, 0%, 5.1%)
CIE-LABlab(59.05, 65.76, -56.09)
CIE-LCHlch(59.05, 86.43, 319.54°)
OKLaboklab(67.53% 0.1655 -0.1571)
OKLCHoklch(67.53% 0.228 316.5)
XYZxyz(44.8408, 27.0785, 86.8518)
Luminance0.2708 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5DF2 #83F25D
analogous
#815DF2 #CC5DF2 #F25DCD
triadic
#CC5DF2 #F2CC5D #5DF2CC
tetradic
#CC5DF2 #F2815D #83F25D #5DCDF2
square
#CC5DF2 #F2815D #83F25D #5DCDF2
split-complementary
#CC5DF2 #CDF25D #5DF281
monochromatic
#9710C5 #BA24ED #CC5DF2 #DE96F7 #F0CEFB

Accessibility & contrast

On white

3.27
#CC5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#CC5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5DF2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5DF2#FFFFFF#000000##000000
##CC5DF21.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C87F7
Deuteranopia (green-blind)
#5F91EE
Tritanopia (blue-blind)
#CA779F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #cc5df2;
/* rgb */ color: rgb(204, 93, 242);
/* oklch */ color: oklch(67.5% 0.228 316.5);
Tailwind
colors: {
  custom: {
    50: '#df91f7',
    500: '#cc5df2',
    950: '#000000',
  },
}
SCSS
$custom: #cc5df2;
$custom-light: #df91f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5df2",
  "rgb": {
    "r": 204,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 284.698,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.67525,
    "c": 0.2282,
    "h": 316.5
  },
  "luminance": 0.27077
}

Semantic roles & 50–950 ramp

primary
#CC5DF2
secondary
#C9EEBD
accent
#E2043C
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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