#B796E2#B796E2

#B796E2 is a light, moderate violet. Relative luminance 0.374; OKLCH L 73.1% C 0.113 H 303.7°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#B796E2
RGBrgb(183, 150, 226)
HSLhsl(266, 57%, 74%)
HSVhsv(266, 34%, 89%)
CMYKcmyk(19%, 33.6%, 0%, 11.4%)
CIE-LABlab(67.55, 27.11, -33.99)
CIE-LCHlch(67.55, 43.48, 308.57°)
OKLaboklab(73.1% 0.0625 -0.0939)
OKLCHoklch(73.1% 0.113 303.7)
XYZxyz(44.1594, 37.3711, 76.8237)
Luminance0.3737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796E2 #C1E296
analogous
#969BE2 #B796E2 #DD96E2
triadic
#B796E2 #E2B796 #96E2B7
tetradic
#B796E2 #E2969B #C1E296 #96E2DD
square
#B796E2 #E2969B #C1E296 #96E2DD
split-complementary
#B796E2 #E2DD96 #9BE296
monochromatic
#7537C7 #9666D5 #B796E2 #D8C6EF #EFE7F8

Accessibility & contrast

On white

2.48
#B796E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#B796E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796E2
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796E2#FFFFFF#000000##000000
##B796E21.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A4E5
Deuteranopia (green-blind)
#8CA5E0
Tritanopia (blue-blind)
#B0A2B2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b796e2;
/* rgb */ color: rgb(183, 150, 226);
/* oklch */ color: oklch(73.1% 0.113 303.7);
Tailwind
colors: {
  custom: {
    50: '#cdb5eb',
    500: '#b796e2',
    950: '#000000',
  },
}
SCSS
$custom: #b796e2;
$custom-light: #cdb5eb;
$custom-dark: #000000;
JSON
{
  "hex": "#b796e2",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 226
  },
  "hsl": {
    "h": 266.053,
    "s": 56.716,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73099,
    "c": 0.1128,
    "h": 303.7
  },
  "luminance": 0.37371
}

Semantic roles & 50–950 ramp

primary
#B796E2
secondary
#E7F0DB
accent
#C4217D
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B796E2

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

Preview Lab → · Contrast checker → · Palette generator →

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