#B796EB#B796EB

#B796EB is a light, vivid violet. Relative luminance 0.379; OKLCH L 73.5% C 0.124 H 301.3°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#B796EB
RGBrgb(183, 150, 235)
HSLhsl(263, 68%, 75%)
HSVhsv(263, 36%, 92%)
CMYKcmyk(22.1%, 36.2%, 0%, 7.8%)
CIE-LABlab(67.93, 29.16, -38.36)
CIE-LCHlch(67.93, 48.18, 307.24°)
OKLaboklab(73.51% 0.0646 -0.1064)
OKLCHoklch(73.51% 0.124 301.3)
XYZxyz(45.4269, 37.8780, 83.4991)
Luminance0.3788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796EB #CAEB96
analogous
#969FEB #B796EB #E196EB
triadic
#B796EB #EBB796 #96EBB7
tetradic
#B796EB #EB969F #CAEB96 #96EBE1
square
#B796EB #EB969F #CAEB96 #96EBE1
split-complementary
#B796EB #EBE196 #9FEB96
monochromatic
#702FD7 #9463E1 #B796EB #DAC9F5 #EDE5FA

Accessibility & contrast

On white

2.45
#B796EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#B796EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796EB
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796EB#FFFFFF#000000##000000
##B796EB1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A5EE
Deuteranopia (green-blind)
#88A5E9
Tritanopia (blue-blind)
#AEA4B6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b796eb;
/* rgb */ color: rgb(183, 150, 235);
/* oklch */ color: oklch(73.5% 0.124 301.3);
Tailwind
colors: {
  custom: {
    50: '#ceb5f1',
    500: '#b796eb',
    950: '#000000',
  },
}
SCSS
$custom: #b796eb;
$custom-light: #ceb5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b796eb",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 235
  },
  "hsl": {
    "h": 263.294,
    "s": 68,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73509,
    "c": 0.12448,
    "h": 301.3
  },
  "luminance": 0.37878
}

Semantic roles & 50–950 ramp

primary
#B796EB
secondary
#E8F2D9
accent
#D01688
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B796EB

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

Preview Lab → · Contrast checker → · Palette generator →

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