#B797F8#B797F8

#B797F8 is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.3% C 0.140 H 298.1°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#B797F8
RGBrgb(183, 151, 248)
HSLhsl(260, 87%, 78%)
HSVhsv(260, 39%, 97%)
CMYKcmyk(26.2%, 39.1%, 0%, 2.7%)
CIE-LABlab(68.73, 31.64, -44.21)
CIE-LCHlch(68.73, 54.37, 305.59°)
OKLaboklab(74.31% 0.0659 -0.1233)
OKLCHoklch(74.31% 0.14 298.1)
XYZxyz(47.5344, 38.9774, 93.8078)
Luminance0.3898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797F8 #D8F897
analogous
#97A7F8 #B797F8 #E797F8
triadic
#B797F8 #F8B797 #97F8B7
tetradic
#B797F8 #F897A7 #D8F897 #97F8E7
square
#B797F8 #F897A7 #D8F897 #97F8E7
split-complementary
#B797F8 #F8E797 #A7F897
monochromatic
#6824F0 #8F5EF4 #B797F8 #DFD0FC #EBE2FD

Accessibility & contrast

On white

2.39
#B797F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#B797F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797F8
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797F8#FFFFFF#000000##000000
##B797F81.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA8FC
Deuteranopia (green-blind)
#83A7F5
Tritanopia (blue-blind)
#AAA8BC
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b797f8;
/* rgb */ color: rgb(183, 151, 248);
/* oklch */ color: oklch(74.3% 0.140 298.1);
Tailwind
colors: {
  custom: {
    50: '#ceb6fb',
    500: '#b797f8',
    950: '#000000',
  },
}
SCSS
$custom: #b797f8;
$custom-light: #ceb6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b797f8",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 248
  },
  "hsl": {
    "h": 259.794,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.74307,
    "c": 0.13981,
    "h": 298.1
  },
  "luminance": 0.38978
}

Semantic roles & 50–950 ramp

primary
#B797F8
secondary
#EBF5D6
accent
#E40299
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B797F8

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

Preview Lab → · Contrast checker → · Palette generator →

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