#CB96EC#CB96EC

#CB96EC is a light, vivid violet. Relative luminance 0.406; OKLCH L 75.4% C 0.132 H 311.7°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#CB96EC
RGBrgb(203, 150, 236)
HSLhsl(277, 69%, 76%)
HSVhsv(277, 36%, 93%)
CMYKcmyk(14%, 36.4%, 0%, 7.5%)
CIE-LABlab(69.87, 35.30, -35.74)
CIE-LCHlch(69.87, 50.23, 314.64°)
OKLaboklab(75.44% 0.0879 -0.0985)
OKLCHoklch(75.44% 0.132 311.7)
XYZxyz(50.6727, 40.5661, 84.5012)
Luminance0.4057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB96EC #B7EC96
analogous
#A096EC #CB96EC #EC96E2
triadic
#CB96EC #ECCB96 #96ECCB
tetradic
#CB96EC #ECA096 #B7EC96 #96E2EC
square
#CB96EC #ECA096 #B7EC96 #96E2EC
split-complementary
#CB96EC #E2EC96 #96ECA0
monochromatic
#982ED9 #B162E3 #CB96EC #E5CAF5 #F2E5FA

Accessibility & contrast

On white

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

On black

9.11
#CB96EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB96EC
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB96EC#FFFFFF#000000##000000
##CB96EC1.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb96ec;
/* rgb */ color: rgb(203, 150, 236);
/* oklch */ color: oklch(75.4% 0.132 311.7);
Tailwind
colors: {
  custom: {
    50: '#dcb5f2',
    500: '#cb96ec',
    950: '#000000',
  },
}
SCSS
$custom: #cb96ec;
$custom-light: #dcb5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb96ec",
  "rgb": {
    "r": 203,
    "g": 150,
    "b": 236
  },
  "hsl": {
    "h": 276.977,
    "s": 69.355,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75438,
    "c": 0.13203,
    "h": 311.7
  },
  "luminance": 0.40565
}

Semantic roles & 50–950 ramp

primary
#CB96EC
secondary
#E3F2D9
accent
#D1145D
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CB96EC

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

Preview Lab → · Contrast checker → · Palette generator →

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