#B797EC#B797EC

#B797EC is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.7% C 0.124 H 300.7°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#B797EC
RGBrgb(183, 151, 236)
HSLhsl(263, 69%, 76%)
HSVhsv(263, 36%, 93%)
CMYKcmyk(22.5%, 36%, 0%, 7.5%)
CIE-LABlab(68.21, 28.83, -38.47)
CIE-LCHlch(68.21, 48.07, 306.85°)
OKLaboklab(73.74% 0.0634 -0.1067)
OKLCHoklch(73.74% 0.124 300.7)
XYZxyz(45.7321, 38.2565, 84.3156)
Luminance0.3826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797EC #CCEC97
analogous
#97A1EC #B797EC #E197EC
triadic
#B797EC #ECB797 #97ECB7
tetradic
#B797EC #EC97A1 #CCEC97 #97ECE1
square
#B797EC #EC97A1 #CCEC97 #97ECE1
split-complementary
#B797EC #ECE197 #A1EC97
monochromatic
#6F30D9 #9363E3 #B797EC #DBCBF5 #EDE5FA

Accessibility & contrast

On white

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

On black

8.65
#B797EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797EC
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797EC#FFFFFF#000000##000000
##B797EC1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A6EF
Deuteranopia (green-blind)
#89A6EA
Tritanopia (blue-blind)
#AEA5B7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b797ec;
/* rgb */ color: rgb(183, 151, 236);
/* oklch */ color: oklch(73.7% 0.124 300.7);
Tailwind
colors: {
  custom: {
    50: '#ceb6f2',
    500: '#b797ec',
    950: '#000000',
  },
}
SCSS
$custom: #b797ec;
$custom-light: #ceb6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b797ec",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 262.588,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73735,
    "c": 0.12416,
    "h": 300.7
  },
  "luminance": 0.38257
}

Semantic roles & 50–950 ramp

primary
#B797EC
secondary
#E9F2D9
accent
#D1148A
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #B797EC

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

Preview Lab → · Contrast checker → · Palette generator →

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