#B797BF#B797BF

#B797BF is a light, moderate purple. Relative luminance 0.360; OKLCH L 71.9% C 0.067 H 319.5°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#B797BF
RGBrgb(183, 151, 191)
HSLhsl(288, 24%, 67%)
HSVhsv(288, 21%, 75%)
CMYKcmyk(4.2%, 20.9%, 0%, 25.1%)
CIE-LABlab(66.49, 19.12, -16.20)
CIE-LCHlch(66.49, 25.06, 319.74°)
OKLaboklab(71.85% 0.0511 -0.0437)
OKLCHoklch(71.85% 0.067 319.5)
XYZxyz(39.9977, 35.9628, 54.1146)
Luminance0.3596 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797BF #9FBF97
analogous
#A397BF #B797BF #BF97B3
triadic
#B797BF #BFB797 #97BFB7
tetradic
#B797BF #BFA397 #9FBF97 #97B3BF
square
#B797BF #BFA397 #9FBF97 #97B3BF
split-complementary
#B797BF #B3BF97 #97BFA3
monochromatic
#7D5488 #9D71A8 #B797BF #D1BDD6 #EBE3EE

Accessibility & contrast

On white

2.56
#B797BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#B797BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797BF
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797BF#FFFFFF#000000##000000
##B797BF1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93A0C1
Deuteranopia (green-blind)
#9AA3BE
Tritanopia (blue-blind)
#B89BA5
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b797bf;
/* rgb */ color: rgb(183, 151, 191);
/* oklch */ color: oklch(71.9% 0.067 319.5);
Tailwind
colors: {
  custom: {
    50: '#cdb5d2',
    500: '#b797bf',
    950: '#000000',
  },
}
SCSS
$custom: #b797bf;
$custom-light: #cdb5d2;
$custom-dark: #000000;
JSON
{
  "hex": "#b797bf",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 191
  },
  "hsl": {
    "h": 288,
    "s": 23.81,
    "l": 67.059
  },
  "oklch": {
    "l": 0.71853,
    "c": 0.06722,
    "h": 319.5
  },
  "luminance": 0.35962
}

Semantic roles & 50–950 ramp

primary
#B797BF
secondary
#D5DFD3
accent
#A24356
background
#FCFBFC
surface
#F9F6F9
border
#D2D0D2
text
#131114
muted
#828082

Preview Lab

Preview with #B797BF

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

Preview Lab → · Contrast checker → · Palette generator →

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