#CC96EC#CC96EC

#CC96EC is a light, vivid violet. Relative luminance 0.407; OKLCH L 75.5% C 0.132 H 312.2°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#CC96EC
RGBrgb(204, 150, 236)
HSLhsl(278, 69%, 76%)
HSVhsv(278, 36%, 93%)
CMYKcmyk(13.6%, 36.4%, 0%, 7.5%)
CIE-LABlab(69.97, 35.60, -35.58)
CIE-LCHlch(69.97, 50.33, 315.01°)
OKLaboklab(75.54% 0.089 -0.098)
OKLCHoklch(75.54% 0.132 312.2)
XYZxyz(50.9459, 40.7070, 84.5141)
Luminance0.4071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC96EC #B6EC96
analogous
#A196EC #CC96EC #EC96E1
triadic
#CC96EC #ECCC96 #96ECCC
tetradic
#CC96EC #ECA196 #B6EC96 #96E1EC
square
#CC96EC #ECA196 #B6EC96 #96E1EC
split-complementary
#CC96EC #E1EC96 #96ECA1
monochromatic
#9A2ED9 #B362E3 #CC96EC #E5CAF5 #F2E5FA

Accessibility & contrast

On white

2.30
#CC96EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#CC96EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC96EC
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC96EC#FFFFFF#000000##000000
##CC96EC1.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A8EF
Deuteranopia (green-blind)
#93ACE9
Tritanopia (blue-blind)
#C9A2B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cc96ec;
/* rgb */ color: rgb(204, 150, 236);
/* oklch */ color: oklch(75.5% 0.132 312.2);
Tailwind
colors: {
  custom: {
    50: '#dcb5f2',
    500: '#cc96ec',
    950: '#000000',
  },
}
SCSS
$custom: #cc96ec;
$custom-light: #dcb5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc96ec",
  "rgb": {
    "r": 204,
    "g": 150,
    "b": 236
  },
  "hsl": {
    "h": 277.674,
    "s": 69.355,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75536,
    "c": 0.13244,
    "h": 312.2
  },
  "luminance": 0.40706
}

Semantic roles & 50–950 ramp

primary
#CC96EC
secondary
#E2F2D9
accent
#D1145B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CC96EC

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

Preview Lab → · Contrast checker → · Palette generator →

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