#B797F1#B797F1

#B797F1 is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.0% C 0.131 H 299.6°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#B797F1
RGBrgb(183, 151, 241)
HSLhsl(261, 76%, 77%)
HSVhsv(261, 37%, 95%)
CMYKcmyk(24.1%, 37.3%, 0%, 5.5%)
CIE-LABlab(68.42, 29.99, -40.87)
CIE-LCHlch(68.42, 50.70, 306.27°)
OKLaboklab(73.97% 0.0645 -0.1137)
OKLCHoklch(73.97% 0.131 299.6)
XYZxyz(46.4687, 38.5511, 88.1950)
Luminance0.3855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797F1 #D1F197
analogous
#97A4F1 #B797F1 #E497F1
triadic
#B797F1 #F1B797 #97F1B7
tetradic
#B797F1 #F197A4 #D1F197 #97F1E4
square
#B797F1 #F197A4 #D1F197 #97F1E4
split-complementary
#B797F1 #F1E497 #A4F197
monochromatic
#6C2BE2 #9261EA #B797F1 #DCCDF8 #ECE4FB

Accessibility & contrast

On white

2.41
#B797F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#B797F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797F1
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797F1#FFFFFF#000000##000000
##B797F11.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A7F4
Deuteranopia (green-blind)
#86A6EF
Tritanopia (blue-blind)
#ACA6B9
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b797f1;
/* rgb */ color: rgb(183, 151, 241);
/* oklch */ color: oklch(74.0% 0.131 299.6);
Tailwind
colors: {
  custom: {
    50: '#ceb6f6',
    500: '#b797f1',
    950: '#000000',
  },
}
SCSS
$custom: #b797f1;
$custom-light: #ceb6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b797f1",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 241
  },
  "hsl": {
    "h": 261.333,
    "s": 76.271,
    "l": 76.863
  },
  "oklch": {
    "l": 0.7397,
    "c": 0.13069,
    "h": 299.6
  },
  "luminance": 0.38551
}

Semantic roles & 50–950 ramp

primary
#B797F1
secondary
#E9F3D8
accent
#D80D90
background
#FCFBFF
surface
#F9F6FE
border
#D2D0D6
text
#141117
muted
#828085

Preview Lab

Preview with #B797F1

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

Preview Lab → · Contrast checker → · Palette generator →

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