#CC8BFE#CC8BFE

#CC8BFE is a light, vivid violet. Relative luminance 0.385; OKLCH L 74.6% C 0.172 H 308.9°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#CC8BFE
RGBrgb(204, 139, 254)
HSLhsl(274, 98%, 77%)
HSVhsv(274, 45%, 100%)
CMYKcmyk(19.7%, 45.3%, 0%, 0.4%)
CIE-LABlab(68.36, 45.38, -47.94)
CIE-LCHlch(68.36, 66.01, 313.43°)
OKLaboklab(74.58% 0.1077 -0.1336)
OKLCHoklch(74.58% 0.172 308.9)
XYZxyz(52.0204, 38.4591, 98.4296)
Luminance0.3846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8BFE #BDFE8B
analogous
#938BFE #CC8BFE #FE8BF7
triadic
#CC8BFE #FECC8B #8BFECC
tetradic
#CC8BFE #FE938B #BDFE8B #8BF7FE
square
#CC8BFE #FE938B #BDFE8B #8BF7FE
split-complementary
#CC8BFE #F7FE8B #8BFE93
monochromatic
#9712FD #B14EFD #CC8BFE #E7C8FF #F2E1FF

Accessibility & contrast

On white

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

On black

8.69
#CC8BFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8BFE
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8BFE#FFFFFF#000000##000000
##CC8BFE1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A4FF
Deuteranopia (green-blind)
#81A8FB
Tritanopia (blue-blind)
#C59DB9
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cc8bfe;
/* rgb */ color: rgb(204, 139, 254);
/* oklch */ color: oklch(74.6% 0.172 308.9);
Tailwind
colors: {
  custom: {
    50: '#ddaeff',
    500: '#cc8bfe',
    950: '#000000',
  },
}
SCSS
$custom: #cc8bfe;
$custom-light: #ddaeff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8bfe",
  "rgb": {
    "r": 204,
    "g": 139,
    "b": 254
  },
  "hsl": {
    "h": 273.913,
    "s": 98.291,
    "l": 77.059
  },
  "oklch": {
    "l": 0.74581,
    "c": 0.17159,
    "h": 308.9
  },
  "luminance": 0.38458
}

Semantic roles & 50–950 ramp

primary
#CC8BFE
secondary
#E3F7D4
accent
#E60064
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CC8BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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