#CC8CFA#CC8CFA

#CC8CFA is a light, vivid violet. Relative luminance 0.385; OKLCH L 74.5% C 0.165 H 309.7°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#CC8CFA
RGBrgb(204, 140, 250)
HSLhsl(275, 92%, 76%)
HSVhsv(275, 44%, 98%)
CMYKcmyk(18.4%, 44%, 0%, 2%)
CIE-LABlab(68.38, 43.98, -45.71)
CIE-LCHlch(68.38, 63.43, 313.89°)
OKLaboklab(74.54% 0.1057 -0.1272)
OKLCHoklch(74.54% 0.165 309.7)
XYZxyz(51.5320, 38.4964, 95.1398)
Luminance0.3850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CFA #BAFA8C
analogous
#958CFA #CC8CFA #FA8CF1
triadic
#CC8CFA #FACC8C #8CFACC
tetradic
#CC8CFA #FA958C #BAFA8C #8CF1FA
square
#CC8CFA #FA958C #BAFA8C #8CF1FA
split-complementary
#CC8CFA #F1FA8C #8CFA95
monochromatic
#9817F5 #B251F7 #CC8CFA #E6C7FD #F2E2FE

Accessibility & contrast

On white

2.41
#CC8CFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#CC8CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CFA
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CFA#FFFFFF#000000##000000
##CC8CFA1.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A4FE
Deuteranopia (green-blind)
#84A8F7
Tritanopia (blue-blind)
#C69DB7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cc8cfa;
/* rgb */ color: rgb(204, 140, 250);
/* oklch */ color: oklch(74.5% 0.165 309.7);
Tailwind
colors: {
  custom: {
    50: '#ddaffc',
    500: '#cc8cfa',
    950: '#000000',
  },
}
SCSS
$custom: #cc8cfa;
$custom-light: #ddaffc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8cfa",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 250
  },
  "hsl": {
    "h": 274.909,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74541,
    "c": 0.16536,
    "h": 309.7
  },
  "luminance": 0.38496
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC8CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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