#CC5AEF#CC5AEF

#CC5AEF is a light, highly saturated purple. Relative luminance 0.264; OKLCH L 67.0% C 0.229 H 317.4°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#CC5AEF
RGBrgb(204, 90, 239)
HSLhsl(286, 82%, 65%)
HSVhsv(286, 62%, 94%)
CMYKcmyk(14.6%, 62.3%, 0%, 6.3%)
CIE-LABlab(58.40, 66.50, -55.45)
CIE-LCHlch(58.40, 86.59, 320.18°)
OKLaboklab(67% 0.169 -0.1552)
OKLCHoklch(67% 0.229 317.4)
XYZxyz(44.1358, 26.3834, 84.4123)
Luminance0.2638 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5AEF #7DEF5A
analogous
#825AEF #CC5AEF #EF5AC8
triadic
#CC5AEF #EFCC5A #5AEFCC
tetradic
#CC5AEF #EF825A #7DEF5A #5AC8EF
square
#CC5AEF #EF825A #7DEF5A #5AC8EF
split-complementary
#CC5AEF #C8EF5A #5AEF82
monochromatic
#9412BC #BB22EA #CC5AEF #DD92F4 #EECAFA

Accessibility & contrast

On white

3.35
#CC5AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#CC5AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5AEF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5AEF#FFFFFF#000000##000000
##CC5AEF1.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A85F4
Deuteranopia (green-blind)
#5E90EB
Tritanopia (blue-blind)
#CB749D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #cc5aef;
/* rgb */ color: rgb(204, 90, 239);
/* oklch */ color: oklch(67.0% 0.229 317.4);
Tailwind
colors: {
  custom: {
    50: '#df8ff5',
    500: '#cc5aef',
    950: '#000000',
  },
}
SCSS
$custom: #cc5aef;
$custom-light: #df8ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5aef",
  "rgb": {
    "r": 204,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 285.906,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.67002,
    "c": 0.22945,
    "h": 317.4
  },
  "luminance": 0.26382
}

Semantic roles & 50–950 ramp

primary
#CC5AEF
secondary
#C5ECB9
accent
#DF073A
background
#FEF9FF
surface
#FCF1FE
border
#D5CBD6
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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