#B797DB#B797DB

#B797DB is a light, moderate violet. Relative luminance 0.373; OKLCH L 73.0% C 0.102 H 305.5°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#B797DB
RGBrgb(183, 151, 219)
HSLhsl(268, 49%, 73%)
HSVhsv(268, 31%, 86%)
CMYKcmyk(16.4%, 31.1%, 0%, 14.1%)
CIE-LABlab(67.51, 24.99, -30.19)
CIE-LCHlch(67.51, 39.19, 309.62°)
OKLaboklab(72.97% 0.0593 -0.083)
OKLCHoklch(72.97% 0.102 305.5)
XYZxyz(43.3787, 37.3152, 71.9214)
Luminance0.3731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797DB #BBDB97
analogous
#9799DB #B797DB #D997DB
triadic
#B797DB #DBB797 #97DBB7
tetradic
#B797DB #DB9799 #BBDB97 #97DBD9
square
#B797DB #DB9799 #BBDB97 #97DBD9
split-complementary
#B797DB #DBD997 #99DB97
monochromatic
#7840B8 #986ACB #B797DB #D6C4EB #EFE8F7

Accessibility & contrast

On white

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

On black

8.46
#B797DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797DB
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797DB#FFFFFF#000000##000000
##B797DB1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA3DE
Deuteranopia (green-blind)
#90A5D9
Tritanopia (blue-blind)
#B2A1B0
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b797db;
/* rgb */ color: rgb(183, 151, 219);
/* oklch */ color: oklch(73.0% 0.102 305.5);
Tailwind
colors: {
  custom: {
    50: '#cdb5e6',
    500: '#b797db',
    950: '#000000',
  },
}
SCSS
$custom: #b797db;
$custom-light: #cdb5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#b797db",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 268.235,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.72975,
    "c": 0.10206,
    "h": 305.5
  },
  "luminance": 0.37315
}

Semantic roles & 50–950 ramp

primary
#B797DB
secondary
#E6EEDD
accent
#BC2A77
background
#FCFBFE
surface
#F9F6FC
border
#D2D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B797DB

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

Preview Lab → · Contrast checker → · Palette generator →

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