#CC5AF2#CC5AF2

#CC5AF2 is a light, highly saturated purple. Relative luminance 0.266; OKLCH L 67.2% C 0.232 H 316.7°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#CC5AF2
RGBrgb(204, 90, 242)
HSLhsl(285, 85%, 65%)
HSVhsv(285, 63%, 95%)
CMYKcmyk(15.7%, 62.8%, 0%, 5.1%)
CIE-LABlab(58.57, 67.08, -56.86)
CIE-LCHlch(58.57, 87.94, 319.72°)
OKLaboklab(67.18% 0.1689 -0.1593)
OKLCHoklch(67.18% 0.232 316.7)
XYZxyz(44.5826, 26.5622, 86.7658)
Luminance0.2656 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5AF2 #80F25A
analogous
#805AF2 #CC5AF2 #F25ACC
triadic
#CC5AF2 #F2CC5A #5AF2CC
tetradic
#CC5AF2 #F2805A #80F25A #5ACCF2
square
#CC5AF2 #F2805A #80F25A #5ACCF2
split-complementary
#CC5AF2 #CCF25A #5AF280
monochromatic
#960FC2 #BA21EE #CC5AF2 #DE93F6 #EFCBFB

Accessibility & contrast

On white

3.33
#CC5AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#CC5AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5AF2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5AF2#FFFFFF#000000##000000
##CC5AF21.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2486F7
Deuteranopia (green-blind)
#5C90EE
Tritanopia (blue-blind)
#CA759E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #cc5af2;
/* rgb */ color: rgb(204, 90, 242);
/* oklch */ color: oklch(67.2% 0.232 316.7);
Tailwind
colors: {
  custom: {
    50: '#df8ff7',
    500: '#cc5af2',
    950: '#000000',
  },
}
SCSS
$custom: #cc5af2;
$custom-light: #df8ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5af2",
  "rgb": {
    "r": 204,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 285,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.67178,
    "c": 0.23223,
    "h": 316.7
  },
  "luminance": 0.26561
}

Semantic roles & 50–950 ramp

primary
#CC5AF2
secondary
#C7EEBA
accent
#E2043B
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC5AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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