#B796EC#B796EC

#B796EC is a light, vivid violet. Relative luminance 0.379; OKLCH L 73.6% C 0.126 H 301.0°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#B796EC
RGBrgb(183, 150, 236)
HSLhsl(263, 69%, 76%)
HSVhsv(263, 36%, 93%)
CMYKcmyk(22.5%, 36.4%, 0%, 7.5%)
CIE-LABlab(67.97, 29.39, -38.84)
CIE-LCHlch(67.97, 48.70, 307.11°)
OKLaboklab(73.56% 0.0648 -0.1078)
OKLCHoklch(73.56% 0.126 301)
XYZxyz(45.5718, 37.9360, 84.2621)
Luminance0.3794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796EC #CBEC96
analogous
#96A0EC #B796EC #E296EC
triadic
#B796EC #ECB796 #96ECB7
tetradic
#B796EC #EC96A0 #CBEC96 #96ECE2
square
#B796EC #EC96A0 #CBEC96 #96ECE2
split-complementary
#B796EC #ECE296 #A0EC96
monochromatic
#702ED9 #9362E3 #B796EC #DBCAF5 #EDE5FA

Accessibility & contrast

On white

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

On black

8.59
#B796EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796EC
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796EC#FFFFFF#000000##000000
##B796EC1.002.458.598.59
#FFFFFF2.451.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A5EF
Deuteranopia (green-blind)
#88A5EA
Tritanopia (blue-blind)
#AEA4B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b796ec;
/* rgb */ color: rgb(183, 150, 236);
/* oklch */ color: oklch(73.6% 0.126 301.0);
Tailwind
colors: {
  custom: {
    50: '#ceb5f2',
    500: '#b796ec',
    950: '#000000',
  },
}
SCSS
$custom: #b796ec;
$custom-light: #ceb5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b796ec",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 236
  },
  "hsl": {
    "h": 263.023,
    "s": 69.355,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73556,
    "c": 0.12578,
    "h": 301
  },
  "luminance": 0.37936
}

Semantic roles & 50–950 ramp

primary
#B796EC
secondary
#E8F2D9
accent
#D11489
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B796EC

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

Preview Lab → · Contrast checker → · Palette generator →

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