#B796D4#B796D4

#B796D4 is a light, moderate violet. Relative luminance 0.366; OKLCH L 72.5% C 0.095 H 308.4°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#B796D4
RGBrgb(183, 150, 212)
HSLhsl(272, 42%, 71%)
HSVhsv(272, 29%, 83%)
CMYKcmyk(13.7%, 29.2%, 0%, 16.9%)
CIE-LABlab(67.00, 24.03, -27.10)
CIE-LCHlch(67.00, 36.22, 311.56°)
OKLaboklab(72.49% 0.0589 -0.0743)
OKLCHoklch(72.49% 0.095 308.4)
XYZxyz(42.3163, 36.6338, 67.1164)
Luminance0.3663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796D4 #B3D496
analogous
#9896D4 #B796D4 #D496D2
triadic
#B796D4 #D4B796 #96D4B7
tetradic
#B796D4 #D49896 #B3D496 #96D2D4
square
#B796D4 #D49896 #B3D496 #96D2D4
split-complementary
#B796D4 #D2D496 #96D498
monochromatic
#7B46AA #996BC2 #B796D4 #D5C1E6 #F0E9F6

Accessibility & contrast

On white

2.52
#B796D4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#B796D4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796D4
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796D4#FFFFFF#000000##000000
##B796D41.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA2D7
Deuteranopia (green-blind)
#92A4D2
Tritanopia (blue-blind)
#B39EAC
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b796d4;
/* rgb */ color: rgb(183, 150, 212);
/* oklch */ color: oklch(72.5% 0.095 308.4);
Tailwind
colors: {
  custom: {
    50: '#cdb5e1',
    500: '#b796d4',
    950: '#000000',
  },
}
SCSS
$custom: #b796d4;
$custom-light: #cdb5e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b796d4",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 212
  },
  "hsl": {
    "h": 271.935,
    "s": 41.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.72494,
    "c": 0.0948,
    "h": 308.4
  },
  "luminance": 0.36633
}

Semantic roles & 50–950 ramp

primary
#B796D4
secondary
#E2EBDB
accent
#B5316E
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #B796D4

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

Preview Lab → · Contrast checker → · Palette generator →

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