#B796EF#B796EF

#B796EF is a light, vivid violet. Relative luminance 0.381; OKLCH L 73.7% C 0.130 H 300.3°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#B796EF
RGBrgb(183, 150, 239)
HSLhsl(262, 74%, 76%)
HSVhsv(262, 37%, 94%)
CMYKcmyk(23.4%, 37.2%, 0%, 6.3%)
CIE-LABlab(68.10, 30.08, -40.28)
CIE-LCHlch(68.10, 50.27, 306.75°)
OKLaboklab(73.7% 0.0655 -0.1119)
OKLCHoklch(73.7% 0.13 300.3)
XYZxyz(46.0113, 38.1118, 86.5769)
Luminance0.3811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796EF #CEEF96
analogous
#96A2EF #B796EF #E496EF
triadic
#B796EF #EFB796 #96EFB7
tetradic
#B796EF #EF96A2 #CEEF96 #96EFE4
square
#B796EF #EF96A2 #CEEF96 #96EFE4
split-complementary
#B796EF #EFE496 #A2EF96
monochromatic
#6E2CDF #9361E7 #B796EF #DBCBF7 #EDE4FB

Accessibility & contrast

On white

2.44
#B796EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#B796EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796EF
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796EF#FFFFFF#000000##000000
##B796EF1.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A6F2
Deuteranopia (green-blind)
#86A5ED
Tritanopia (blue-blind)
#ADA5B7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b796ef;
/* rgb */ color: rgb(183, 150, 239);
/* oklch */ color: oklch(73.7% 0.130 300.3);
Tailwind
colors: {
  custom: {
    50: '#ceb5f4',
    500: '#b796ef',
    950: '#000000',
  },
}
SCSS
$custom: #b796ef;
$custom-light: #ceb5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b796ef",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 239
  },
  "hsl": {
    "h": 262.247,
    "s": 73.554,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73697,
    "c": 0.12969,
    "h": 300.3
  },
  "luminance": 0.38112
}

Semantic roles & 50–950 ramp

primary
#B796EF
secondary
#E9F3D8
accent
#D6108C
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B796EF

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

Preview Lab → · Contrast checker → · Palette generator →

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