#CC9EFF#CC9EFF

#CC9EFF is a light, vivid violet. Relative luminance 0.445; OKLCH L 77.8% C 0.142 H 305.1°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#CC9EFF
RGBrgb(204, 158, 255)
HSLhsl(268, 100%, 81%)
HSVhsv(268, 38%, 100%)
CMYKcmyk(20%, 38%, 0%, 0%)
CIE-LABlab(72.57, 35.33, -41.88)
CIE-LCHlch(72.57, 54.79, 310.16°)
OKLaboklab(77.77% 0.0818 -0.1162)
OKLCHoklch(77.77% 0.142 305.1)
XYZxyz(55.1750, 44.5114, 100.2732)
Luminance0.4451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC9EFF #D1FF9E
analogous
#9EA0FF #CC9EFF #FD9EFF
triadic
#CC9EFF #FFCC9E #9EFFCC
tetradic
#CC9EFF #FF9EA0 #D1FF9E #9EFFFD
square
#CC9EFF #FF9EA0 #D1FF9E #9EFFFD
split-complementary
#CC9EFF #FFFD9E #A0FF9E
monochromatic
#8C24FF #AC61FF #CC9EFF #ECDBFF #EFE0FF

Accessibility & contrast

On white

2.12
#CC9EFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.90
#CC9EFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC9EFF
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC9EFF#FFFFFF#000000##000000
##CC9EFF1.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#88B1FF
Deuteranopia (green-blind)
#92B2FC
Tritanopia (blue-blind)
#C4ADC3
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cc9eff;
/* rgb */ color: rgb(204, 158, 255);
/* oklch */ color: oklch(77.8% 0.142 305.1);
Tailwind
colors: {
  custom: {
    50: '#ddbbff',
    500: '#cc9eff',
    950: '#000000',
  },
}
SCSS
$custom: #cc9eff;
$custom-light: #ddbbff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc9eff",
  "rgb": {
    "r": 204,
    "g": 158,
    "b": 255
  },
  "hsl": {
    "h": 268.454,
    "s": 100,
    "l": 80.98
  },
  "oklch": {
    "l": 0.77766,
    "c": 0.14206,
    "h": 305.1
  },
  "luminance": 0.44511
}

Semantic roles & 50–950 ramp

primary
#CC9EFF
secondary
#E6F7D4
accent
#E60079
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CC9EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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