#CC9EF7#CC9EF7

#CC9EF7 is a light, vivid violet. Relative luminance 0.440; OKLCH L 77.4% C 0.132 H 307.3°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#CC9EF7
RGBrgb(204, 158, 247)
HSLhsl(271, 85%, 79%)
HSVhsv(271, 36%, 97%)
CMYKcmyk(17.4%, 36%, 0%, 3.1%)
CIE-LABlab(72.23, 33.58, -38.06)
CIE-LCHlch(72.23, 50.76, 311.42°)
OKLaboklab(77.4% 0.0801 -0.1052)
OKLCHoklch(77.4% 0.132 307.3)
XYZxyz(53.9140, 44.0069, 93.6316)
Luminance0.4401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC9EF7 #C9F79E
analogous
#A09EF7 #CC9EF7 #F79EF6
triadic
#CC9EF7 #F7CC9E #9EF7CC
tetradic
#CC9EF7 #F7A09E #C9F79E #9EF6F7
square
#CC9EF7 #F7A09E #C9F79E #9EF6F7
split-complementary
#CC9EF7 #F6F79E #9EF7A0
monochromatic
#912DEE #AE65F2 #CC9EF7 #EAD7FC #F0E3FD

Accessibility & contrast

On white

2.14
#CC9EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#CC9EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC9EF7
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC9EF7#FFFFFF#000000##000000
##CC9EF71.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CAFFA
Deuteranopia (green-blind)
#96B2F4
Tritanopia (blue-blind)
#C6ABBF
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cc9ef7;
/* rgb */ color: rgb(204, 158, 247);
/* oklch */ color: oklch(77.4% 0.132 307.3);
Tailwind
colors: {
  custom: {
    50: '#ddbbfa',
    500: '#cc9ef7',
    950: '#000000',
  },
}
SCSS
$custom: #cc9ef7;
$custom-light: #ddbbfa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc9ef7",
  "rgb": {
    "r": 204,
    "g": 158,
    "b": 247
  },
  "hsl": {
    "h": 271.011,
    "s": 84.762,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77401,
    "c": 0.13222,
    "h": 307.3
  },
  "luminance": 0.44006
}

Semantic roles & 50–950 ramp

primary
#CC9EF7
secondary
#E5F5D6
accent
#E1046F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151217
muted
#838185

Preview Lab

Preview with #CC9EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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