#B797E8#B797E8

#B797E8 is a light, moderate violet. Relative luminance 0.380; OKLCH L 73.6% C 0.119 H 301.7°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#B797E8
RGBrgb(183, 151, 232)
HSLhsl(264, 64%, 75%)
HSVhsv(264, 35%, 91%)
CMYKcmyk(21.1%, 34.9%, 0%, 9%)
CIE-LABlab(68.04, 27.91, -36.54)
CIE-LCHlch(68.04, 45.98, 307.37°)
OKLaboklab(73.55% 0.0625 -0.1012)
OKLCHoklch(73.55% 0.119 301.7)
XYZxyz(45.1574, 38.0266, 81.2891)
Luminance0.3803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797E8 #C8E897
analogous
#979FE8 #B797E8 #E097E8
triadic
#B797E8 #E8B797 #97E8B7
tetradic
#B797E8 #E8979F #C8E897 #97E8E0
square
#B797E8 #E8979F #C8E897 #97E8E0
split-complementary
#B797E8 #E8E097 #9FE897
monochromatic
#7233D2 #9465DD #B797E8 #DAC9F3 #EEE6F9

Accessibility & contrast

On white

2.44
#B797E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#B797E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797E8
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797E8#FFFFFF#000000##000000
##B797E81.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A5EB
Deuteranopia (green-blind)
#8BA6E6
Tritanopia (blue-blind)
#AFA4B5
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b797e8;
/* rgb */ color: rgb(183, 151, 232);
/* oklch */ color: oklch(73.6% 0.119 301.7);
Tailwind
colors: {
  custom: {
    50: '#ceb6ef',
    500: '#b797e8',
    950: '#000000',
  },
}
SCSS
$custom: #b797e8;
$custom-light: #ceb6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b797e8",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 232
  },
  "hsl": {
    "h": 263.704,
    "s": 63.78,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73551,
    "c": 0.11894,
    "h": 301.7
  },
  "luminance": 0.38027
}

Semantic roles & 50–950 ramp

primary
#B797E8
secondary
#E8F1DA
accent
#CC1A85
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #B797E8

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

Preview Lab → · Contrast checker → · Palette generator →

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