#CC5AFE#CC5AFE

#CC5AFE is a light, highly saturated purple. Relative luminance 0.273; OKLCH L 67.9% C 0.243 H 313.8°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#CC5AFE
RGBrgb(204, 90, 254)
HSLhsl(282, 99%, 67%)
HSVhsv(282, 65%, 100%)
CMYKcmyk(19.7%, 64.6%, 0%, 0.4%)
CIE-LABlab(59.26, 69.44, -62.40)
CIE-LCHlch(59.26, 93.36, 318.05°)
OKLaboklab(67.9% 0.1686 -0.1756)
OKLCHoklch(67.9% 0.243 313.8)
XYZxyz(46.4444, 27.3069, 96.5709)
Luminance0.2731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5AFE #8CFE5A
analogous
#7A5AFE #CC5AFE #FE5ADE
triadic
#CC5AFE #FECC5A #5AFECC
tetradic
#CC5AFE #FE7A5A #8CFE5A #5ADEFE
square
#CC5AFE #FE7A5A #8CFE5A #5ADEFE
split-complementary
#CC5AFE #DEFE5A #5AFE7A
monochromatic
#9A01DC #B91DFE #CC5AFE #DF97FE #F2D4FF

Accessibility & contrast

On white

3.25
#CC5AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#CC5AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5AFE
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5AFE#FFFFFF#000000##000000
##CC5AFE1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0088FF
Deuteranopia (green-blind)
#5291FA
Tritanopia (blue-blind)
#C77AA5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #cc5afe;
/* rgb */ color: rgb(204, 90, 254);
/* oklch */ color: oklch(67.9% 0.243 313.8);
Tailwind
colors: {
  custom: {
    50: '#e090ff',
    500: '#cc5afe',
    950: '#000000',
  },
}
SCSS
$custom: #cc5afe;
$custom-light: #e090ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5afe",
  "rgb": {
    "r": 204,
    "g": 90,
    "b": 254
  },
  "hsl": {
    "h": 281.707,
    "s": 98.795,
    "l": 67.451
  },
  "oklch": {
    "l": 0.67897,
    "c": 0.2434,
    "h": 313.8
  },
  "luminance": 0.27305
}

Semantic roles & 50–950 ramp

primary
#CC5AFE
secondary
#D0F4C0
accent
#E60046
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CC5AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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