#CC8AEB#CC8AEB

#CC8AEB is a light, vivid purple. Relative luminance 0.370; OKLCH L 73.5% C 0.152 H 314.3°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#CC8AEB
RGBrgb(204, 138, 235)
HSLhsl(281, 71%, 73%)
HSVhsv(281, 41%, 92%)
CMYKcmyk(13.2%, 41.3%, 0%, 7.8%)
CIE-LABlab(67.29, 41.88, -39.21)
CIE-LCHlch(67.29, 57.37, 316.89°)
OKLaboklab(73.5% 0.1059 -0.1084)
OKLCHoklch(73.5% 0.152 314.3)
XYZxyz(48.9833, 37.0136, 83.1451)
Luminance0.3701 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8AEB #A9EB8A
analogous
#9B8AEB #CC8AEB #EB8AD9
triadic
#CC8AEB #EBCC8A #8AEBCC
tetradic
#CC8AEB #EB9B8A #A9EB8A #8AD9EB
square
#CC8AEB #EB9B8A #A9EB8A #8AD9EB
split-complementary
#CC8AEB #D9EB8A #8AEB9B
monochromatic
#9D25D6 #B556E2 #CC8AEB #E3BEF4 #F4E5FB

Accessibility & contrast

On white

2.50
#CC8AEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#CC8AEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8AEB
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8AEB#FFFFFF#000000##000000
##CC8AEB1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A0EF
Deuteranopia (green-blind)
#89A6E8
Tritanopia (blue-blind)
#CA98AF
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cc8aeb;
/* rgb */ color: rgb(204, 138, 235);
/* oklch */ color: oklch(73.5% 0.152 314.3);
Tailwind
colors: {
  custom: {
    50: '#ddadf2',
    500: '#cc8aeb',
    950: '#000000',
  },
}
SCSS
$custom: #cc8aeb;
$custom-light: #ddadf2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8aeb",
  "rgb": {
    "r": 204,
    "g": 138,
    "b": 235
  },
  "hsl": {
    "h": 280.825,
    "s": 70.803,
    "l": 73.137
  },
  "oklch": {
    "l": 0.73499,
    "c": 0.15156,
    "h": 314.3
  },
  "luminance": 0.37012
}

Semantic roles & 50–950 ramp

primary
#CC8AEB
secondary
#E1F2D9
accent
#D31350
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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