#CB96FE#CB96FE

#CB96FE is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.3% C 0.154 H 306.6°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#CB96FE
RGBrgb(203, 150, 254)
HSLhsl(271, 98%, 79%)
HSVhsv(271, 41%, 100%)
CMYKcmyk(20.1%, 40.9%, 0%, 0.4%)
CIE-LABlab(70.64, 39.18, -44.36)
CIE-LCHlch(70.64, 59.19, 311.45°)
OKLaboklab(76.27% 0.0915 -0.1233)
OKLCHoklch(76.27% 0.154 306.6)
XYZxyz(53.4208, 41.6654, 98.9747)
Luminance0.4167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB96FE #C9FE96
analogous
#9796FE #CB96FE #FE96FD
triadic
#CB96FE #FECB96 #96FECB
tetradic
#CB96FE #FE9796 #C9FE96 #96FDFE
square
#CB96FE #FE9796 #C9FE96 #96FDFE
split-complementary
#CB96FE #FDFE96 #96FE97
monochromatic
#8F1DFD #AD59FD #CB96FE #E9D3FF #F0E1FF

Accessibility & contrast

On white

2.25
#CB96FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#CB96FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB96FE
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB96FE#FFFFFF#000000##000000
##CB96FE1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EABFF
Deuteranopia (green-blind)
#8AADFB
Tritanopia (blue-blind)
#C4A6BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cb96fe;
/* rgb */ color: rgb(203, 150, 254);
/* oklch */ color: oklch(76.3% 0.154 306.6);
Tailwind
colors: {
  custom: {
    50: '#dcb5ff',
    500: '#cb96fe',
    950: '#000000',
  },
}
SCSS
$custom: #cb96fe;
$custom-light: #dcb5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb96fe",
  "rgb": {
    "r": 203,
    "g": 150,
    "b": 254
  },
  "hsl": {
    "h": 270.577,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76272,
    "c": 0.15355,
    "h": 306.6
  },
  "luminance": 0.41665
}

Semantic roles & 50–950 ramp

primary
#CB96FE
secondary
#E5F7D4
accent
#E60071
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB96FE

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

Preview Lab → · Contrast checker → · Palette generator →

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