#B797EE#B797EE

#B797EE is a light, vivid violet. Relative luminance 0.384; OKLCH L 73.8% C 0.127 H 300.2°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#B797EE
RGBrgb(183, 151, 238)
HSLhsl(262, 72%, 76%)
HSVhsv(262, 37%, 93%)
CMYKcmyk(23.1%, 36.6%, 0%, 6.7%)
CIE-LABlab(68.29, 29.29, -39.43)
CIE-LCHlch(68.29, 49.12, 306.61°)
OKLaboklab(73.83% 0.0639 -0.1095)
OKLCHoklch(73.83% 0.127 300.2)
XYZxyz(46.0243, 38.3734, 85.8544)
Luminance0.3837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797EE #CEEE97
analogous
#97A3EE #B797EE #E397EE
triadic
#B797EE #EEB797 #97EEB7
tetradic
#B797EE #EE97A3 #CEEE97 #97EEE3
square
#B797EE #EE97A3 #CEEE97 #97EEE3
split-complementary
#B797EE #EEE397 #A3EE97
monochromatic
#6E2EDD #9362E5 #B797EE #DBCCF7 #EDE5FB

Accessibility & contrast

On white

2.42
#B797EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#B797EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797EE
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797EE#FFFFFF#000000##000000
##B797EE1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A6F1
Deuteranopia (green-blind)
#88A6EC
Tritanopia (blue-blind)
#ADA5B7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b797ee;
/* rgb */ color: rgb(183, 151, 238);
/* oklch */ color: oklch(73.8% 0.127 300.2);
Tailwind
colors: {
  custom: {
    50: '#ceb6f4',
    500: '#b797ee',
    950: '#000000',
  },
}
SCSS
$custom: #b797ee;
$custom-light: #ceb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b797ee",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 262.069,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73828,
    "c": 0.12677,
    "h": 300.2
  },
  "luminance": 0.38374
}

Semantic roles & 50–950 ramp

primary
#B797EE
secondary
#E9F2D9
accent
#D4128C
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B797EE

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

Preview Lab → · Contrast checker → · Palette generator →

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