#CC5AF7#CC5AF7

#CC5AF7 is a light, highly saturated purple. Relative luminance 0.269; OKLCH L 67.5% C 0.237 H 315.5°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#CC5AF7
RGBrgb(204, 90, 247)
HSLhsl(284, 91%, 66%)
HSVhsv(284, 64%, 97%)
CMYKcmyk(17.4%, 63.6%, 0%, 3.1%)
CIE-LABlab(58.85, 68.06, -59.18)
CIE-LCHlch(58.85, 90.19, 318.99°)
OKLaboklab(67.47% 0.1688 -0.1661)
OKLCHoklch(67.47% 0.237 315.5)
XYZxyz(45.3439, 26.8667, 90.7749)
Luminance0.2686 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5AF7 #85F75A
analogous
#7D5AF7 #CC5AF7 #F75AD3
triadic
#CC5AF7 #F7CC5A #5AF7CC
tetradic
#CC5AF7 #F77D5A #85F75A #5AD3F7
square
#CC5AF7 #F77D5A #85F75A #5AD3F7
split-complementary
#CC5AF7 #D3F75A #5AF77D
monochromatic
#970ACD #BA20F4 #CC5AF7 #DE94FA #F0CFFD

Accessibility & contrast

On white

3.30
#CC5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#CC5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5AF7
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5AF7#FFFFFF#000000##000000
##CC5AF71.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1887FC
Deuteranopia (green-blind)
#5891F3
Tritanopia (blue-blind)
#C977A1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #cc5af7;
/* rgb */ color: rgb(204, 90, 247);
/* oklch */ color: oklch(67.5% 0.237 315.5);
Tailwind
colors: {
  custom: {
    50: '#df90fa',
    500: '#cc5af7',
    950: '#000000',
  },
}
SCSS
$custom: #cc5af7;
$custom-light: #df90fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5af7",
  "rgb": {
    "r": 204,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 283.567,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67474,
    "c": 0.23687,
    "h": 315.5
  },
  "luminance": 0.26865
}

Semantic roles & 50–950 ramp

primary
#CC5AF7
secondary
#CBF0BD
accent
#E6003F
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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