#B797EA#B797EA

#B797EA is a light, vivid violet. Relative luminance 0.381; OKLCH L 73.6% C 0.122 H 301.2°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#B797EA
RGBrgb(183, 151, 234)
HSLhsl(263, 66%, 75%)
HSVhsv(263, 35%, 92%)
CMYKcmyk(21.8%, 35.5%, 0%, 8.2%)
CIE-LABlab(68.12, 28.37, -37.51)
CIE-LCHlch(68.12, 47.03, 307.10°)
OKLaboklab(73.64% 0.063 -0.104)
OKLCHoklch(73.64% 0.122 301.2)
XYZxyz(45.4431, 38.1409, 82.7938)
Luminance0.3814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797EA #CAEA97
analogous
#97A0EA #B797EA #E197EA
triadic
#B797EA #EAB797 #97EAB7
tetradic
#B797EA #EA97A0 #CAEA97 #97EAE1
square
#B797EA #EA97A0 #CAEA97 #97EAE1
split-complementary
#B797EA #EAE197 #A0EA97
monochromatic
#7031D5 #9464E0 #B797EA #DACAF4 #EDE6FA

Accessibility & contrast

On white

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

On black

8.63
#B797EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797EA
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797EA#FFFFFF#000000##000000
##B797EA1.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A6ED
Deuteranopia (green-blind)
#8AA6E8
Tritanopia (blue-blind)
#AEA4B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b797ea;
/* rgb */ color: rgb(183, 151, 234);
/* oklch */ color: oklch(73.6% 0.122 301.2);
Tailwind
colors: {
  custom: {
    50: '#ceb6f1',
    500: '#b797ea',
    950: '#000000',
  },
}
SCSS
$custom: #b797ea;
$custom-light: #ceb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b797ea",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 263.133,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73643,
    "c": 0.12155,
    "h": 301.2
  },
  "luminance": 0.38141
}

Semantic roles & 50–950 ramp

primary
#B797EA
secondary
#E8F1DA
accent
#CE1788
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #B797EA

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

Preview Lab → · Contrast checker → · Palette generator →

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