#B797EB#B797EB

#B797EB is a light, vivid violet. Relative luminance 0.382; OKLCH L 73.7% C 0.123 H 301.0°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#B797EB
RGBrgb(183, 151, 235)
HSLhsl(263, 68%, 76%)
HSVhsv(263, 36%, 92%)
CMYKcmyk(22.1%, 35.7%, 0%, 7.8%)
CIE-LABlab(68.17, 28.60, -37.99)
CIE-LCHlch(68.17, 47.55, 306.97°)
OKLaboklab(73.69% 0.0632 -0.1053)
OKLCHoklch(73.69% 0.123 301)
XYZxyz(45.5872, 38.1986, 83.5525)
Luminance0.3820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797EB #CBEB97
analogous
#97A1EB #B797EB #E197EB
triadic
#B797EB #EBB797 #97EBB7
tetradic
#B797EB #EB97A1 #CBEB97 #97EBE1
square
#B797EB #EB97A1 #CBEB97 #97EBE1
split-complementary
#B797EB #EBE197 #A1EB97
monochromatic
#7030D7 #9364E1 #B797EB #DBCAF5 #EDE5FA

Accessibility & contrast

On white

2.43
#B797EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#B797EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797EB
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797EB#FFFFFF#000000##000000
##B797EB1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A6EE
Deuteranopia (green-blind)
#89A6E9
Tritanopia (blue-blind)
#AEA4B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b797eb;
/* rgb */ color: rgb(183, 151, 235);
/* oklch */ color: oklch(73.7% 0.123 301.0);
Tailwind
colors: {
  custom: {
    50: '#ceb6f1',
    500: '#b797eb',
    950: '#000000',
  },
}
SCSS
$custom: #b797eb;
$custom-light: #ceb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b797eb",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 262.857,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73689,
    "c": 0.12286,
    "h": 301
  },
  "luminance": 0.38199
}

Semantic roles & 50–950 ramp

primary
#B797EB
secondary
#E8F2D9
accent
#D01689
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B797EB

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

Preview Lab → · Contrast checker → · Palette generator →

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