#CC8EFE#CC8EFE

#CC8EFE is a light, vivid violet. Relative luminance 0.393; OKLCH L 75.1% C 0.167 H 308.4°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#CC8EFE
RGBrgb(204, 142, 254)
HSLhsl(273, 98%, 78%)
HSVhsv(273, 44%, 100%)
CMYKcmyk(19.7%, 44.1%, 0%, 0.4%)
CIE-LABlab(69.00, 43.78, -46.93)
CIE-LCHlch(69.00, 64.18, 313.01°)
OKLaboklab(75.06% 0.1036 -0.1307)
OKLCHoklch(75.06% 0.167 308.4)
XYZxyz(52.4608, 39.3398, 98.5764)
Luminance0.3934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8EFE #C0FE8E
analogous
#948EFE #CC8EFE #FE8EF8
triadic
#CC8EFE #FECC8E #8EFECC
tetradic
#CC8EFE #FE948E #C0FE8E #8EF8FE
square
#CC8EFE #FE948E #C0FE8E #8EF8FE
split-complementary
#CC8EFE #F8FE8E #8EFE94
monochromatic
#9515FD #B151FD #CC8EFE #E7CBFF #F1E1FF

Accessibility & contrast

On white

2.37
#CC8EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#CC8EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8EFE
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8EFE#FFFFFF#000000##000000
##CC8EFE1.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A6FF
Deuteranopia (green-blind)
#83A9FB
Tritanopia (blue-blind)
#C5A0BA
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cc8efe;
/* rgb */ color: rgb(204, 142, 254);
/* oklch */ color: oklch(75.1% 0.167 308.4);
Tailwind
colors: {
  custom: {
    50: '#ddb0ff',
    500: '#cc8efe',
    950: '#000000',
  },
}
SCSS
$custom: #cc8efe;
$custom-light: #ddb0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8efe",
  "rgb": {
    "r": 204,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 273.214,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.7506,
    "c": 0.16678,
    "h": 308.4
  },
  "luminance": 0.39339
}

Semantic roles & 50–950 ramp

primary
#CC8EFE
secondary
#E4F7D4
accent
#E60066
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151118
muted
#838086

Preview Lab

Preview with #CC8EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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