#B796FB#B796FB

#B796FB is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.3% C 0.145 H 297.8°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#B796FB
RGBrgb(183, 150, 251)
HSLhsl(260, 93%, 79%)
HSVhsv(260, 40%, 98%)
CMYKcmyk(27.1%, 40.2%, 0%, 1.6%)
CIE-LABlab(68.64, 32.92, -46.00)
CIE-LCHlch(68.64, 56.56, 305.59°)
OKLaboklab(74.28% 0.0678 -0.1285)
OKLCHoklch(74.28% 0.145 297.8)
XYZxyz(47.8433, 38.8446, 96.2253)
Luminance0.3885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796FB #DAFB96
analogous
#96A7FB #B796FB #E996FB
triadic
#B796FB #FBB796 #96FBB7
tetradic
#B796FB #FB96A7 #DAFB96 #96FBE9
square
#B796FB #FB96A7 #DAFB96 #96FBE9
split-complementary
#B796FB #FBE996 #A7FB96
monochromatic
#6620F7 #8F5BF9 #B796FB #DFD1FD #EBE2FE

Accessibility & contrast

On white

2.39
#B796FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#B796FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796FB
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796FB#FFFFFF#000000##000000
##B796FB1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA8FF
Deuteranopia (green-blind)
#80A6F8
Tritanopia (blue-blind)
#A9A8BD
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b796fb;
/* rgb */ color: rgb(183, 150, 251);
/* oklch */ color: oklch(74.3% 0.145 297.8);
Tailwind
colors: {
  custom: {
    50: '#ceb5fd',
    500: '#b796fb',
    950: '#000000',
  },
}
SCSS
$custom: #b796fb;
$custom-light: #ceb5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b796fb",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 251
  },
  "hsl": {
    "h": 259.604,
    "s": 92.661,
    "l": 78.627
  },
  "oklch": {
    "l": 0.74279,
    "c": 0.14527,
    "h": 297.8
  },
  "luminance": 0.38845
}

Semantic roles & 50–950 ramp

primary
#B796FB
secondary
#EBF6D5
accent
#E6009B
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B796FB

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

Preview Lab → · Contrast checker → · Palette generator →

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