#B797FF#B797FF

#B797FF is a light, vivid violet. Relative luminance 0.394; OKLCH L 74.7% C 0.149 H 296.8°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#B797FF
RGBrgb(183, 151, 255)
HSLhsl(258, 100%, 80%)
HSVhsv(258, 41%, 100%)
CMYKcmyk(28.2%, 40.8%, 0%, 0%)
CIE-LABlab(69.05, 33.32, -47.52)
CIE-LCHlch(69.05, 58.04, 305.04°)
OKLaboklab(74.65% 0.0672 -0.1329)
OKLCHoklch(74.65% 0.149 296.8)
XYZxyz(48.6407, 39.4200, 99.6346)
Luminance0.3942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797FF #DFFF97
analogous
#97ABFF #B797FF #EB97FF
triadic
#B797FF #FFB797 #97FFB7
tetradic
#B797FF #FF97AB #DFFF97 #97FFEB
square
#B797FF #FF97AB #DFFF97 #97FFEB
split-complementary
#B797FF #FFEB97 #ABFF97
monochromatic
#621DFF #8D5AFF #B797FF #E1D4FF #EAE0FF

Accessibility & contrast

On white

2.36
#B797FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#B797FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797FF
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797FF#FFFFFF#000000##000000
##B797FF1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA9FF
Deuteranopia (green-blind)
#7FA7FC
Tritanopia (blue-blind)
#A8A9BF
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b797ff;
/* rgb */ color: rgb(183, 151, 255);
/* oklch */ color: oklch(74.7% 0.149 296.8);
Tailwind
colors: {
  custom: {
    50: '#cfb6ff',
    500: '#b797ff',
    950: '#000000',
  },
}
SCSS
$custom: #b797ff;
$custom-light: #cfb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b797ff",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 258.462,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.74654,
    "c": 0.14891,
    "h": 296.8
  },
  "luminance": 0.3942
}

Semantic roles & 50–950 ramp

primary
#B797FF
secondary
#ECF7D4
accent
#E6009F
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B797FF

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

Preview Lab → · Contrast checker → · Palette generator →

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