#B796EA#B796EA

#B796EA is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.5% C 0.123 H 301.5°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#B796EA
RGBrgb(183, 150, 234)
HSLhsl(264, 67%, 75%)
HSVhsv(264, 36%, 92%)
CMYKcmyk(21.8%, 35.9%, 0%, 8.2%)
CIE-LABlab(67.89, 28.93, -37.87)
CIE-LCHlch(67.89, 47.66, 307.37°)
OKLaboklab(73.46% 0.0644 -0.105)
OKLCHoklch(73.46% 0.123 301.5)
XYZxyz(45.2829, 37.8204, 82.7404)
Luminance0.3782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796EA #C9EA96
analogous
#969FEA #B796EA #E196EA
triadic
#B796EA #EAB796 #96EAB7
tetradic
#B796EA #EA969F #C9EA96 #96EAE1
square
#B796EA #EA969F #C9EA96 #96EAE1
split-complementary
#B796EA #EAE196 #9FEA96
monochromatic
#7130D6 #9463E0 #B796EA #DAC9F4 #EEE5FA

Accessibility & contrast

On white

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

On black

8.56
#B796EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796EA
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796EA#FFFFFF#000000##000000
##B796EA1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A5ED
Deuteranopia (green-blind)
#89A5E8
Tritanopia (blue-blind)
#AEA3B5
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b796ea;
/* rgb */ color: rgb(183, 150, 234);
/* oklch */ color: oklch(73.5% 0.123 301.5);
Tailwind
colors: {
  custom: {
    50: '#ceb5f1',
    500: '#b796ea',
    950: '#000000',
  },
}
SCSS
$custom: #b796ea;
$custom-light: #ceb5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b796ea",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 234
  },
  "hsl": {
    "h": 263.571,
    "s": 66.667,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73463,
    "c": 0.12319,
    "h": 301.5
  },
  "luminance": 0.3782
}

Semantic roles & 50–950 ramp

primary
#B796EA
secondary
#E8F1DA
accent
#CF1786
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #B796EA

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

Preview Lab → · Contrast checker → · Palette generator →

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