#B797F9#B797F9

#B797F9 is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.4% C 0.141 H 297.9°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#B797F9
RGBrgb(183, 151, 249)
HSLhsl(260, 89%, 78%)
HSVhsv(260, 39%, 98%)
CMYKcmyk(26.5%, 39.4%, 0%, 2.4%)
CIE-LABlab(68.78, 31.88, -44.69)
CIE-LCHlch(68.78, 54.89, 305.51°)
OKLaboklab(74.36% 0.0661 -0.1247)
OKLCHoklch(74.36% 0.141 297.9)
XYZxyz(47.6899, 39.0397, 94.6271)
Luminance0.3904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797F9 #D9F997
analogous
#97A8F9 #B797F9 #E897F9
triadic
#B797F9 #F9B797 #97F9B7
tetradic
#B797F9 #F997A8 #D9F997 #97F9E8
square
#B797F9 #F997A8 #D9F997 #97F9E8
split-complementary
#B797F9 #F9E897 #A8F997
monochromatic
#6723F2 #8F5DF6 #B797F9 #DFD1FC #EBE2FD

Accessibility & contrast

On white

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

On black

8.81
#B797F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797F9
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797F9#FFFFFF#000000##000000
##B797F91.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA8FD
Deuteranopia (green-blind)
#82A7F6
Tritanopia (blue-blind)
#AAA8BC
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b797f9;
/* rgb */ color: rgb(183, 151, 249);
/* oklch */ color: oklch(74.4% 0.141 297.9);
Tailwind
colors: {
  custom: {
    50: '#ceb6fb',
    500: '#b797f9',
    950: '#000000',
  },
}
SCSS
$custom: #b797f9;
$custom-light: #ceb6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b797f9",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 249
  },
  "hsl": {
    "h": 259.592,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.74356,
    "c": 0.14111,
    "h": 297.9
  },
  "luminance": 0.3904
}

Semantic roles & 50–950 ramp

primary
#B797F9
secondary
#EBF5D6
accent
#E6009B
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B797F9

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

Preview Lab → · Contrast checker → · Palette generator →

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