#CC5AFB#CC5AFB

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

Color values

HEX#CC5AFB
RGBrgb(204, 90, 251)
HSLhsl(282, 95%, 67%)
HSVhsv(282, 64%, 98%)
CMYKcmyk(18.7%, 64.1%, 0%, 1.6%)
CIE-LABlab(59.08, 68.84, -61.03)
CIE-LCHlch(59.08, 92.00, 318.44°)
OKLaboklab(67.71% 0.1687 -0.1715)
OKLCHoklch(67.71% 0.241 314.5)
XYZxyz(45.9677, 27.1162, 94.0606)
Luminance0.2712 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5AFB #89FB5A
analogous
#7B5AFB #CC5AFB #FB5ADA
triadic
#CC5AFB #FBCC5A #5AFBCC
tetradic
#CC5AFB #FB7B5A #89FB5A #5ADAFB
square
#CC5AFB #FB7B5A #89FB5A #5ADAFB
split-complementary
#CC5AFB #DAFB5A #5AFB7B
monochromatic
#9905D5 #BA1EFA #CC5AFB #DE96FC #F1D2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC5AFB#FFFFFF#000000##000000
##CC5AFB1.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)
#0688FF
Deuteranopia (green-blind)
#5591F7
Tritanopia (blue-blind)
#C879A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #cc5afb;
/* rgb */ color: rgb(204, 90, 251);
/* oklch */ color: oklch(67.7% 0.241 314.5);
Tailwind
colors: {
  custom: {
    50: '#df90fd',
    500: '#cc5afb',
    950: '#000000',
  },
}
SCSS
$custom: #cc5afb;
$custom-light: #df90fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5afb",
  "rgb": {
    "r": 204,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 282.484,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.67714,
    "c": 0.24059,
    "h": 314.5
  },
  "luminance": 0.27115
}

Semantic roles & 50–950 ramp

primary
#CC5AFB
secondary
#CEF2BF
accent
#E60043
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CC5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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