#CC8AFA#CC8AFA

#CC8AFA is a light, vivid violet. Relative luminance 0.379; OKLCH L 74.2% C 0.169 H 310.0°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#CC8AFA
RGBrgb(204, 138, 250)
HSLhsl(275, 92%, 76%)
HSVhsv(275, 45%, 98%)
CMYKcmyk(18.4%, 44.8%, 0%, 2%)
CIE-LABlab(67.96, 45.05, -46.38)
CIE-LCHlch(67.96, 64.66, 314.16°)
OKLaboklab(74.22% 0.1084 -0.1291)
OKLCHoklch(74.22% 0.169 310)
XYZxyz(51.2425, 37.9173, 95.0433)
Luminance0.3792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8AFA #B8FA8A
analogous
#948AFA #CC8AFA #FA8AF0
triadic
#CC8AFA #FACC8A #8AFACC
tetradic
#CC8AFA #FA948A #B8FA8A #8AF0FA
square
#CC8AFA #FA948A #B8FA8A #8AF0FA
split-complementary
#CC8AFA #F0FA8A #8AFA94
monochromatic
#9915F5 #B24FF7 #CC8AFA #E6C5FD #F2E2FE

Accessibility & contrast

On white

2.45
#CC8AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#CC8AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8AFA
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8AFA#FFFFFF#000000##000000
##CC8AFA1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A3FE
Deuteranopia (green-blind)
#82A7F7
Tritanopia (blue-blind)
#C69CB6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cc8afa;
/* rgb */ color: rgb(204, 138, 250);
/* oklch */ color: oklch(74.2% 0.169 310.0);
Tailwind
colors: {
  custom: {
    50: '#ddadfc',
    500: '#cc8afa',
    950: '#000000',
  },
}
SCSS
$custom: #cc8afa;
$custom-light: #ddadfc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8afa",
  "rgb": {
    "r": 204,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 275.357,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74223,
    "c": 0.16859,
    "h": 310
  },
  "luminance": 0.37916
}

Semantic roles & 50–950 ramp

primary
#CC8AFA
secondary
#E3F6D5
accent
#E6005E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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