#CC8CF8#CC8CF8

#CC8CF8 is a light, vivid violet. Relative luminance 0.384; OKLCH L 74.4% C 0.163 H 310.3°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#CC8CF8
RGBrgb(204, 140, 248)
HSLhsl(276, 89%, 76%)
HSVhsv(276, 44%, 97%)
CMYKcmyk(17.7%, 43.5%, 0%, 2.7%)
CIE-LABlab(68.29, 43.55, -44.76)
CIE-LCHlch(68.29, 62.45, 314.21°)
OKLaboklab(74.44% 0.1054 -0.1244)
OKLCHoklch(74.44% 0.163 310.3)
XYZxyz(51.2201, 38.3716, 93.4969)
Luminance0.3837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CF8 #B8F88C
analogous
#968CF8 #CC8CF8 #F88CEE
triadic
#CC8CF8 #F8CC8C #8CF8CC
tetradic
#CC8CF8 #F8968C #B8F88C #8CEEF8
square
#CC8CF8 #F8968C #B8F88C #8CEEF8
split-complementary
#CC8CF8 #EEF88C #8CF896
monochromatic
#9919F1 #B252F4 #CC8CF8 #E6C6FC #F2E2FD

Accessibility & contrast

On white

2.42
#CC8CF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#CC8CF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CF8
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CF8#FFFFFF#000000##000000
##CC8CF81.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A3FC
Deuteranopia (green-blind)
#85A8F5
Tritanopia (blue-blind)
#C79DB6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cc8cf8;
/* rgb */ color: rgb(204, 140, 248);
/* oklch */ color: oklch(74.4% 0.163 310.3);
Tailwind
colors: {
  custom: {
    50: '#ddaffb',
    500: '#cc8cf8',
    950: '#000000',
  },
}
SCSS
$custom: #cc8cf8;
$custom-light: #ddaffb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8cf8",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 248
  },
  "hsl": {
    "h": 275.556,
    "s": 88.525,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74443,
    "c": 0.16306,
    "h": 310.3
  },
  "luminance": 0.38371
}

Semantic roles & 50–950 ramp

primary
#CC8CF8
secondary
#E3F5D6
accent
#E5005E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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