#CC8DF7#CC8DF7

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

Color values

HEX#CC8DF7
RGBrgb(204, 141, 247)
HSLhsl(276, 87%, 76%)
HSVhsv(276, 43%, 97%)
CMYKcmyk(17.4%, 42.9%, 0%, 3.1%)
CIE-LABlab(68.46, 42.80, -43.95)
CIE-LCHlch(68.46, 61.35, 314.24°)
OKLaboklab(74.56% 0.1039 -0.1221)
OKLCHoklch(74.56% 0.16 310.4)
XYZxyz(51.2122, 38.6033, 92.7310)
Luminance0.3860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8DF7 #B8F78D
analogous
#978DF7 #CC8DF7 #F78DED
triadic
#CC8DF7 #F7CC8D #8DF7CC
tetradic
#CC8DF7 #F7978D #B8F78D #8DEDF7
square
#CC8DF7 #F7978D #B8F78D #8DEDF7
split-complementary
#CC8DF7 #EDF78D #8DF797
monochromatic
#991BEF #B254F3 #CC8DF7 #E6C6FB #F2E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC8DF7#FFFFFF#000000##000000
##CC8DF71.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)
#76A4FB
Deuteranopia (green-blind)
#86A8F4
Tritanopia (blue-blind)
#C79DB6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cc8df7;
/* rgb */ color: rgb(204, 141, 247);
/* oklch */ color: oklch(74.6% 0.160 310.4);
Tailwind
colors: {
  custom: {
    50: '#ddaffa',
    500: '#cc8df7',
    950: '#000000',
  },
}
SCSS
$custom: #cc8df7;
$custom-light: #ddaffa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8df7",
  "rgb": {
    "r": 204,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 275.66,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74555,
    "c": 0.16027,
    "h": 310.4
  },
  "luminance": 0.38603
}

Semantic roles & 50–950 ramp

primary
#CC8DF7
secondary
#E3F5D6
accent
#E3025D
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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