#CC9EF2#CC9EF2

#CC9EF2 is a light, vivid violet. Relative luminance 0.437; OKLCH L 77.2% C 0.126 H 308.8°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#CC9EF2
RGBrgb(204, 158, 242)
HSLhsl(273, 76%, 78%)
HSVhsv(273, 35%, 95%)
CMYKcmyk(15.7%, 34.7%, 0%, 5.1%)
CIE-LABlab(72.03, 32.50, -35.66)
CIE-LCHlch(72.03, 48.25, 312.35°)
OKLaboklab(77.18% 0.079 -0.0983)
OKLCHoklch(77.18% 0.126 308.8)
XYZxyz(53.1528, 43.7024, 89.6225)
Luminance0.4370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC9EF2 #C4F29E
analogous
#A29EF2 #CC9EF2 #F29EEE
triadic
#CC9EF2 #F2CC9E #9EF2CC
tetradic
#CC9EF2 #F2A29E #C4F29E #9EEEF2
square
#CC9EF2 #F2A29E #C4F29E #9EEEF2
split-complementary
#CC9EF2 #EEF29E #9EF2A2
monochromatic
#9332E4 #B068EB #CC9EF2 #E8D4F9 #F1E4FB

Accessibility & contrast

On white

2.16
#CC9EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.74
#CC9EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC9EF2
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC9EF2#FFFFFF#000000##000000
##CC9EF21.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EAFF5
Deuteranopia (green-blind)
#98B1F0
Tritanopia (blue-blind)
#C7AABD
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cc9ef2;
/* rgb */ color: rgb(204, 158, 242);
/* oklch */ color: oklch(77.2% 0.126 308.8);
Tailwind
colors: {
  custom: {
    50: '#dcbbf6',
    500: '#cc9ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cc9ef2;
$custom-light: #dcbbf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc9ef2",
  "rgb": {
    "r": 204,
    "g": 158,
    "b": 242
  },
  "hsl": {
    "h": 272.857,
    "s": 76.364,
    "l": 78.431
  },
  "oklch": {
    "l": 0.77179,
    "c": 0.12611,
    "h": 308.8
  },
  "luminance": 0.43702
}

Semantic roles & 50–950 ramp

primary
#CC9EF2
secondary
#E4F3D8
accent
#D90D69
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185

Preview Lab

Preview with #CC9EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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