#CC5AF6#CC5AF6

#CC5AF6 is a light, highly saturated purple. Relative luminance 0.268; OKLCH L 67.4% C 0.236 H 315.7°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#CC5AF6
RGBrgb(204, 90, 246)
HSLhsl(284, 90%, 66%)
HSVhsv(284, 63%, 96%)
CMYKcmyk(17.1%, 63.4%, 0%, 3.5%)
CIE-LABlab(58.79, 67.86, -58.72)
CIE-LCHlch(58.79, 89.74, 319.13°)
OKLaboklab(67.41% 0.1689 -0.1648)
OKLCHoklch(67.41% 0.236 315.7)
XYZxyz(45.1900, 26.8051, 89.9644)
Luminance0.2680 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5AF6 #84F65A
analogous
#7E5AF6 #CC5AF6 #F65AD2
triadic
#CC5AF6 #F6CC5A #5AF6CC
tetradic
#CC5AF6 #F67E5A #84F65A #5AD2F6
square
#CC5AF6 #F67E5A #84F65A #5AD2F6
split-complementary
#CC5AF6 #D2F65A #5AF67E
monochromatic
#970BCB #BA20F3 #CC5AF6 #DE94F9 #F0CEFC

Accessibility & contrast

On white

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

On black

6.36
#CC5AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5AF6
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5AF6#FFFFFF#000000##000000
##CC5AF61.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B87FB
Deuteranopia (green-blind)
#5991F2
Tritanopia (blue-blind)
#C977A0
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #cc5af6;
/* rgb */ color: rgb(204, 90, 246);
/* oklch */ color: oklch(67.4% 0.236 315.7);
Tailwind
colors: {
  custom: {
    50: '#df90fa',
    500: '#cc5af6',
    950: '#000000',
  },
}
SCSS
$custom: #cc5af6;
$custom-light: #df90fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5af6",
  "rgb": {
    "r": 204,
    "g": 90,
    "b": 246
  },
  "hsl": {
    "h": 283.846,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.67414,
    "c": 0.23594,
    "h": 315.7
  },
  "luminance": 0.26804
}

Semantic roles & 50–950 ramp

primary
#CC5AF6
secondary
#CAF0BC
accent
#E6003E
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC5AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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