#B797EF#B797EF

#B797EF is a light, vivid violet. Relative luminance 0.384; OKLCH L 73.9% C 0.128 H 300.0°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#B797EF
RGBrgb(183, 151, 239)
HSLhsl(262, 73%, 76%)
HSVhsv(262, 37%, 94%)
CMYKcmyk(23.4%, 36.8%, 0%, 6.3%)
CIE-LABlab(68.34, 29.52, -39.91)
CIE-LCHlch(68.34, 49.65, 306.49°)
OKLaboklab(73.88% 0.0641 -0.1109)
OKLCHoklch(73.88% 0.128 300)
XYZxyz(46.1716, 38.4323, 86.6303)
Luminance0.3843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797EF #CFEF97
analogous
#97A3EF #B797EF #E397EF
triadic
#B797EF #EFB797 #97EFB7
tetradic
#B797EF #EF97A3 #CFEF97 #97EFE3
square
#B797EF #EF97A3 #CFEF97 #97EFE3
split-complementary
#B797EF #EFE397 #A3EF97
monochromatic
#6E2DDF #9262E7 #B797EF #DCCCF7 #EDE4FB

Accessibility & contrast

On white

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

On black

8.69
#B797EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797EF
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797EF#FFFFFF#000000##000000
##B797EF1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A6F2
Deuteranopia (green-blind)
#87A6ED
Tritanopia (blue-blind)
#ADA5B8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b797ef;
/* rgb */ color: rgb(183, 151, 239);
/* oklch */ color: oklch(73.9% 0.128 300.0);
Tailwind
colors: {
  custom: {
    50: '#ceb6f4',
    500: '#b797ef',
    950: '#000000',
  },
}
SCSS
$custom: #b797ef;
$custom-light: #ceb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b797ef",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 261.818,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.73875,
    "c": 0.12807,
    "h": 300
  },
  "luminance": 0.38432
}

Semantic roles & 50–950 ramp

primary
#B797EF
secondary
#E9F3D8
accent
#D5108E
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B797EF

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

Preview Lab → · Contrast checker → · Palette generator →

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