#CC8CF7#CC8CF7

#CC8CF7 is a light, vivid violet. Relative luminance 0.383; OKLCH L 74.4% C 0.162 H 310.5°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#CC8CF7
RGBrgb(204, 140, 247)
HSLhsl(276, 87%, 76%)
HSVhsv(276, 43%, 97%)
CMYKcmyk(17.4%, 43.3%, 0%, 3.1%)
CIE-LABlab(68.25, 43.33, -44.29)
CIE-LCHlch(68.25, 61.96, 314.38°)
OKLaboklab(74.39% 0.1052 -0.123)
OKLCHoklch(74.39% 0.162 310.5)
XYZxyz(51.0654, 38.3098, 92.6821)
Luminance0.3831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CF7 #B7F78C
analogous
#968CF7 #CC8CF7 #F78CEC
triadic
#CC8CF7 #F7CC8C #8CF7CC
tetradic
#CC8CF7 #F7968C #B7F78C #8CECF7
square
#CC8CF7 #F7968C #B7F78C #8CECF7
split-complementary
#CC8CF7 #ECF78C #8CF796
monochromatic
#991AEF #B353F3 #CC8CF7 #E5C5FB #F2E2FD

Accessibility & contrast

On white

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

On black

8.66
#CC8CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CF7
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CF7#FFFFFF#000000##000000
##CC8CF71.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A3FB
Deuteranopia (green-blind)
#85A8F4
Tritanopia (blue-blind)
#C79CB6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cc8cf7;
/* rgb */ color: rgb(204, 140, 247);
/* oklch */ color: oklch(74.4% 0.162 310.5);
Tailwind
colors: {
  custom: {
    50: '#ddaffa',
    500: '#cc8cf7',
    950: '#000000',
  },
}
SCSS
$custom: #cc8cf7;
$custom-light: #ddaffa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8cf7",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 247
  },
  "hsl": {
    "h": 275.888,
    "s": 86.992,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74394,
    "c": 0.1619,
    "h": 310.5
  },
  "luminance": 0.38309
}

Semantic roles & 50–950 ramp

primary
#CC8CF7
secondary
#E2F5D6
accent
#E4025D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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