#CC8CEE#CC8CEE

#CC8CEE is a light, vivid violet. Relative luminance 0.378; OKLCH L 74.0% C 0.152 H 313.1°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#CC8CEE
RGBrgb(204, 140, 238)
HSLhsl(279, 74%, 74%)
HSVhsv(279, 41%, 93%)
CMYKcmyk(14.3%, 41.2%, 0%, 6.7%)
CIE-LABlab(67.85, 41.43, -39.98)
CIE-LCHlch(67.85, 57.57, 316.02°)
OKLaboklab(73.96% 0.1037 -0.1106)
OKLCHoklch(73.96% 0.152 313.1)
XYZxyz(49.7100, 37.7676, 85.5435)
Luminance0.3777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CEE #AEEE8C
analogous
#9B8CEE #CC8CEE #EE8CDF
triadic
#CC8CEE #EECC8C #8CEECC
tetradic
#CC8CEE #EE9B8C #AEEE8C #8CDFEE
square
#CC8CEE #EE9B8C #AEEE8C #8CDFEE
split-complementary
#CC8CEE #DFEE8C #8CEE9B
monochromatic
#9D21DE #B457E6 #CC8CEE #E4C1F6 #F3E4FB

Accessibility & contrast

On white

2.46
#CC8CEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#CC8CEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CEE
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CEE#FFFFFF#000000##000000
##CC8CEE1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A2F2
Deuteranopia (green-blind)
#8AA7EB
Tritanopia (blue-blind)
#C99AB2
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cc8cee;
/* rgb */ color: rgb(204, 140, 238);
/* oklch */ color: oklch(74.0% 0.152 313.1);
Tailwind
colors: {
  custom: {
    50: '#ddaff4',
    500: '#cc8cee',
    950: '#000000',
  },
}
SCSS
$custom: #cc8cee;
$custom-light: #ddaff4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8cee",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 238
  },
  "hsl": {
    "h": 279.184,
    "s": 74.242,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73964,
    "c": 0.1516,
    "h": 313.1
  },
  "luminance": 0.37767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC8CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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