#B796F6#B796F6

#B796F6 is a light, vivid violet. Relative luminance 0.385; OKLCH L 74.0% C 0.139 H 298.8°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#B796F6
RGBrgb(183, 150, 246)
HSLhsl(261, 84%, 78%)
HSVhsv(261, 39%, 96%)
CMYKcmyk(25.6%, 39%, 0%, 3.5%)
CIE-LABlab(68.41, 31.73, -43.63)
CIE-LCHlch(68.41, 53.94, 306.02°)
OKLaboklab(74.03% 0.0669 -0.1216)
OKLCHoklch(74.03% 0.139 298.8)
XYZxyz(47.0655, 38.5335, 92.1290)
Luminance0.3853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796F6 #D5F696
analogous
#96A5F6 #B796F6 #E796F6
triadic
#B796F6 #F6B796 #96F6B7
tetradic
#B796F6 #F696A5 #D5F696 #96F6E7
square
#B796F6 #F696A5 #D5F696 #96F6E7
split-complementary
#B796F6 #F6E796 #A5F696
monochromatic
#6A25EC #905EF1 #B796F6 #DECEFB #ECE3FD

Accessibility & contrast

On white

2.41
#B796F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#B796F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796F6
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796F6#FFFFFF#000000##000000
##B796F61.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA7FA
Deuteranopia (green-blind)
#83A6F3
Tritanopia (blue-blind)
#ABA6BA
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b796f6;
/* rgb */ color: rgb(183, 150, 246);
/* oklch */ color: oklch(74.0% 0.139 298.8);
Tailwind
colors: {
  custom: {
    50: '#ceb5f9',
    500: '#b796f6',
    950: '#000000',
  },
}
SCSS
$custom: #b796f6;
$custom-light: #ceb5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b796f6",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 246
  },
  "hsl": {
    "h": 260.625,
    "s": 84.211,
    "l": 77.647
  },
  "oklch": {
    "l": 0.74033,
    "c": 0.13878,
    "h": 298.8
  },
  "luminance": 0.38534
}

Semantic roles & 50–950 ramp

primary
#B796F6
secondary
#EAF5D6
accent
#E10595
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B796F6

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

Preview Lab → · Contrast checker → · Palette generator →

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