#CC9EFE#CC9EFE

#CC9EFE is a light, vivid violet. Relative luminance 0.444; OKLCH L 77.7% C 0.141 H 305.4°. Best body text is #000000 at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#CC9EFE
RGBrgb(204, 158, 254)
HSLhsl(269, 98%, 81%)
HSVhsv(269, 38%, 100%)
CMYKcmyk(19.7%, 37.8%, 0%, 0.4%)
CIE-LABlab(72.53, 35.11, -41.40)
CIE-LCHlch(72.53, 54.29, 310.30°)
OKLaboklab(77.72% 0.0816 -0.1148)
OKLCHoklch(77.72% 0.141 305.4)
XYZxyz(55.0145, 44.4471, 99.4276)
Luminance0.4445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC9EFE #D0FE9E
analogous
#9EA0FE #CC9EFE #FC9EFE
triadic
#CC9EFE #FECC9E #9EFECC
tetradic
#CC9EFE #FE9EA0 #D0FE9E #9EFEFC
square
#CC9EFE #FE9EA0 #D0FE9E #9EFEFC
split-complementary
#CC9EFE #FEFC9E #A0FE9E
monochromatic
#8C25FD #AC61FD #CC9EFE #ECDBFF #EFE1FF

Accessibility & contrast

On white

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

On black

9.89
#CC9EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC9EFE
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC9EFE#FFFFFF#000000##000000
##CC9EFE1.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#89B0FF
Deuteranopia (green-blind)
#93B2FB
Tritanopia (blue-blind)
#C4ADC2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cc9efe;
/* rgb */ color: rgb(204, 158, 254);
/* oklch */ color: oklch(77.7% 0.141 305.4);
Tailwind
colors: {
  custom: {
    50: '#ddbbff',
    500: '#cc9efe',
    950: '#000000',
  },
}
SCSS
$custom: #cc9efe;
$custom-light: #ddbbff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc9efe",
  "rgb": {
    "r": 204,
    "g": 158,
    "b": 254
  },
  "hsl": {
    "h": 268.75,
    "s": 97.959,
    "l": 80.784
  },
  "oklch": {
    "l": 0.7772,
    "c": 0.14083,
    "h": 305.4
  },
  "luminance": 0.44447
}

Semantic roles & 50–950 ramp

primary
#CC9EFE
secondary
#E6F7D4
accent
#E60078
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CC9EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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