#CC8CFC#CC8CFC

#CC8CFC is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.6% C 0.168 H 309.2°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#CC8CFC
RGBrgb(204, 140, 252)
HSLhsl(274, 95%, 77%)
HSVhsv(274, 44%, 99%)
CMYKcmyk(19%, 44.4%, 0%, 1.2%)
CIE-LABlab(68.48, 44.41, -46.66)
CIE-LCHlch(68.48, 64.42, 313.59°)
OKLaboklab(74.64% 0.106 -0.1299)
OKLCHoklch(74.64% 0.168 309.2)
XYZxyz(51.8473, 38.6225, 96.8002)
Luminance0.3862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CFC #BCFC8C
analogous
#948CFC #CC8CFC #FC8CF4
triadic
#CC8CFC #FCCC8C #8CFCCC
tetradic
#CC8CFC #FC948C #BCFC8C #8CF4FC
square
#CC8CFC #FC948C #BCFC8C #8CF4FC
split-complementary
#CC8CFC #F4FC8C #8CFC94
monochromatic
#9715F9 #B250FA #CC8CFC #E6C8FE #F2E1FE

Accessibility & contrast

On white

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

On black

8.72
#CC8CFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CFC
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CFC#FFFFFF#000000##000000
##CC8CFC1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A4FF
Deuteranopia (green-blind)
#83A8F9
Tritanopia (blue-blind)
#C69EB8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cc8cfc;
/* rgb */ color: rgb(204, 140, 252);
/* oklch */ color: oklch(74.6% 0.168 309.2);
Tailwind
colors: {
  custom: {
    50: '#ddaffe',
    500: '#cc8cfc',
    950: '#000000',
  },
}
SCSS
$custom: #cc8cfc;
$custom-light: #ddaffe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8cfc",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 252
  },
  "hsl": {
    "h": 274.286,
    "s": 94.915,
    "l": 76.863
  },
  "oklch": {
    "l": 0.7464,
    "c": 0.16767,
    "h": 309.2
  },
  "luminance": 0.38622
}

Semantic roles & 50–950 ramp

primary
#CC8CFC
secondary
#E3F6D5
accent
#E60062
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CC8CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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