#CB96FC#CB96FC

#CB96FC is a light, vivid violet. Relative luminance 0.415; OKLCH L 76.2% C 0.151 H 307.1°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#CB96FC
RGBrgb(203, 150, 252)
HSLhsl(271, 94%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19.4%, 40.5%, 0%, 1.2%)
CIE-LABlab(70.55, 38.74, -43.41)
CIE-LCHlch(70.55, 58.19, 311.75°)
OKLaboklab(76.18% 0.0911 -0.1206)
OKLCHoklch(76.18% 0.151 307.1)
XYZxyz(53.1022, 41.5379, 97.2967)
Luminance0.4154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB96FC #C7FC96
analogous
#9896FC #CB96FC #FC96FA
triadic
#CB96FC #FCCB96 #96FCCB
tetradic
#CB96FC #FC9896 #C7FC96 #96FAFC
square
#CB96FC #FC9896 #C7FC96 #96FAFC
split-complementary
#CB96FC #FAFC96 #96FC98
monochromatic
#901FF9 #AE5BFA #CB96FC #E8D2FE #F0E1FE

Accessibility & contrast

On white

2.26
#CB96FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#CB96FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB96FC
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB96FC#FFFFFF#000000##000000
##CB96FC1.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FABFF
Deuteranopia (green-blind)
#8BADF9
Tritanopia (blue-blind)
#C4A6BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cb96fc;
/* rgb */ color: rgb(203, 150, 252);
/* oklch */ color: oklch(76.2% 0.151 307.1);
Tailwind
colors: {
  custom: {
    50: '#dcb5fd',
    500: '#cb96fc',
    950: '#000000',
  },
}
SCSS
$custom: #cb96fc;
$custom-light: #dcb5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb96fc",
  "rgb": {
    "r": 203,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 271.176,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76176,
    "c": 0.15114,
    "h": 307.1
  },
  "luminance": 0.41537
}

Semantic roles & 50–950 ramp

primary
#CB96FC
secondary
#E5F6D5
accent
#E6006E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB96FC

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

Preview Lab → · Contrast checker → · Palette generator →

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