#CC8AEF#CC8AEF

#CC8AEF is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.7% C 0.156 H 313.1°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#CC8AEF
RGBrgb(204, 138, 239)
HSLhsl(279, 76%, 74%)
HSVhsv(279, 42%, 94%)
CMYKcmyk(14.6%, 42.3%, 0%, 6.3%)
CIE-LABlab(67.46, 42.71, -41.13)
CIE-LCHlch(67.46, 59.30, 316.08°)
OKLaboklab(73.69% 0.1067 -0.1139)
OKLCHoklch(73.69% 0.156 313.1)
XYZxyz(49.5677, 37.2474, 86.2229)
Luminance0.3725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8AEF #ADEF8A
analogous
#9A8AEF #CC8AEF #EF8AE0
triadic
#CC8AEF #EFCC8A #8AEFCC
tetradic
#CC8AEF #EF9A8A #ADEF8A #8AE0EF
square
#CC8AEF #EF9A8A #ADEF8A #8AE0EF
split-complementary
#CC8AEF #E0EF8A #8AEF9A
monochromatic
#9D1FE0 #B554E8 #CC8AEF #E3C0F6 #F3E4FB

Accessibility & contrast

On white

2.49
#CC8AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#CC8AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8AEF
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8AEF#FFFFFF#000000##000000
##CC8AEF1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A1F3
Deuteranopia (green-blind)
#87A6EC
Tritanopia (blue-blind)
#C999B1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cc8aef;
/* rgb */ color: rgb(204, 138, 239);
/* oklch */ color: oklch(73.7% 0.156 313.1);
Tailwind
colors: {
  custom: {
    50: '#ddadf4',
    500: '#cc8aef',
    950: '#000000',
  },
}
SCSS
$custom: #cc8aef;
$custom-light: #ddadf4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8aef",
  "rgb": {
    "r": 204,
    "g": 138,
    "b": 239
  },
  "hsl": {
    "h": 279.208,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73687,
    "c": 0.15607,
    "h": 313.1
  },
  "luminance": 0.37246
}

Semantic roles & 50–950 ramp

primary
#CC8AEF
secondary
#E1F3D8
accent
#D80D54
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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