#B797FB#B797FB

#B797FB is a light, vivid violet. Relative luminance 0.392; OKLCH L 74.5% C 0.144 H 297.5°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#B797FB
RGBrgb(183, 151, 251)
HSLhsl(259, 93%, 79%)
HSVhsv(259, 40%, 98%)
CMYKcmyk(27.1%, 39.8%, 0%, 1.6%)
CIE-LABlab(68.87, 32.36, -45.64)
CIE-LCHlch(68.87, 55.94, 305.34°)
OKLaboklab(74.45% 0.0665 -0.1274)
OKLCHoklch(74.45% 0.144 297.5)
XYZxyz(48.0035, 39.1651, 96.2787)
Luminance0.3917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797FB #DBFB97
analogous
#97A9FB #B797FB #E997FB
triadic
#B797FB #FBB797 #97FBB7
tetradic
#B797FB #FB97A9 #DBFB97 #97FBE9
square
#B797FB #FB97A9 #DBFB97 #97FBE9
split-complementary
#B797FB #FBE997 #A9FB97
monochromatic
#6521F6 #8E5CF9 #B797FB #E0D2FD #EBE2FE

Accessibility & contrast

On white

2.38
#B797FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#B797FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797FB
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797FB#FFFFFF#000000##000000
##B797FB1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA8FF
Deuteranopia (green-blind)
#81A7F8
Tritanopia (blue-blind)
#A9A8BD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b797fb;
/* rgb */ color: rgb(183, 151, 251);
/* oklch */ color: oklch(74.5% 0.144 297.5);
Tailwind
colors: {
  custom: {
    50: '#ceb6fd',
    500: '#b797fb',
    950: '#000000',
  },
}
SCSS
$custom: #b797fb;
$custom-light: #ceb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b797fb",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 259.2,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74454,
    "c": 0.14372,
    "h": 297.5
  },
  "luminance": 0.39166
}

Semantic roles & 50–950 ramp

primary
#B797FB
secondary
#EBF6D5
accent
#E6009C
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B797FB

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

Preview Lab → · Contrast checker → · Palette generator →

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