#CC8CFB#CC8CFB

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

Color values

HEX#CC8CFB
RGBrgb(204, 140, 251)
HSLhsl(275, 93%, 77%)
HSVhsv(275, 44%, 98%)
CMYKcmyk(18.7%, 44.2%, 0%, 1.6%)
CIE-LABlab(68.43, 44.20, -46.19)
CIE-LCHlch(68.43, 63.93, 313.74°)
OKLaboklab(74.59% 0.1059 -0.1285)
OKLCHoklch(74.59% 0.167 309.5)
XYZxyz(51.6893, 38.5593, 95.9678)
Luminance0.3856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CFB #BBFB8C
analogous
#958CFB #CC8CFB #FB8CF2
triadic
#CC8CFB #FBCC8C #8CFBCC
tetradic
#CC8CFB #FB958C #BBFB8C #8CF2FB
square
#CC8CFB #FB958C #BBFB8C #8CF2FB
split-complementary
#CC8CFB #F2FB8C #8CFB95
monochromatic
#9816F7 #B251F9 #CC8CFB #E6C7FD #F2E1FE

Accessibility & contrast

On white

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

On black

8.71
#CC8CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CFB
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CFB#FFFFFF#000000##000000
##CC8CFB1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A4FF
Deuteranopia (green-blind)
#83A8F8
Tritanopia (blue-blind)
#C69DB8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cc8cfb;
/* rgb */ color: rgb(204, 140, 251);
/* oklch */ color: oklch(74.6% 0.167 309.5);
Tailwind
colors: {
  custom: {
    50: '#ddaffd',
    500: '#cc8cfb',
    950: '#000000',
  },
}
SCSS
$custom: #cc8cfb;
$custom-light: #ddaffd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8cfb",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 274.595,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.74591,
    "c": 0.16652,
    "h": 309.5
  },
  "luminance": 0.38559
}

Semantic roles & 50–950 ramp

primary
#CC8CFB
secondary
#E3F6D5
accent
#E60061
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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