#B796FA#B796FA

#B796FA is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.2% C 0.144 H 298.0°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#B796FA
RGBrgb(183, 150, 250)
HSLhsl(260, 91%, 78%)
HSVhsv(260, 40%, 98%)
CMYKcmyk(26.8%, 40%, 0%, 2%)
CIE-LABlab(68.59, 32.68, -45.53)
CIE-LCHlch(68.59, 56.04, 305.67°)
OKLaboklab(74.23% 0.0676 -0.1271)
OKLCHoklch(74.23% 0.144 298)
XYZxyz(47.6861, 38.7817, 95.3973)
Luminance0.3878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796FA #D9FA96
analogous
#96A7FA #B796FA #E996FA
triadic
#B796FA #FAB796 #96FAB7
tetradic
#B796FA #FA96A7 #D9FA96 #96FAE9
square
#B796FA #FA96A7 #D9FA96 #96FAE9
split-complementary
#B796FA #FAE996 #A7FA96
monochromatic
#6721F4 #8F5CF7 #B796FA #DFD0FD #EBE2FE

Accessibility & contrast

On white

2.40
#B796FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#B796FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796FA
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796FA#FFFFFF#000000##000000
##B796FA1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA7FE
Deuteranopia (green-blind)
#81A6F7
Tritanopia (blue-blind)
#AAA7BC
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b796fa;
/* rgb */ color: rgb(183, 150, 250);
/* oklch */ color: oklch(74.2% 0.144 298.0);
Tailwind
colors: {
  custom: {
    50: '#ceb5fc',
    500: '#b796fa',
    950: '#000000',
  },
}
SCSS
$custom: #b796fa;
$custom-light: #ceb5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b796fa",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 250
  },
  "hsl": {
    "h": 259.8,
    "s": 90.909,
    "l": 78.431
  },
  "oklch": {
    "l": 0.74229,
    "c": 0.14398,
    "h": 298
  },
  "luminance": 0.38782
}

Semantic roles & 50–950 ramp

primary
#B796FA
secondary
#EBF6D5
accent
#E6009A
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B796FA

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

Preview Lab → · Contrast checker → · Palette generator →

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