#B797FD#B797FD

#B797FD is a light, vivid violet. Relative luminance 0.393; OKLCH L 74.6% C 0.146 H 297.2°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#B797FD
RGBrgb(183, 151, 253)
HSLhsl(259, 96%, 79%)
HSVhsv(259, 40%, 99%)
CMYKcmyk(27.7%, 40.3%, 0%, 0.8%)
CIE-LABlab(68.96, 32.84, -46.58)
CIE-LCHlch(68.96, 56.99, 305.18°)
OKLaboklab(74.55% 0.0668 -0.1302)
OKLCHoklch(74.55% 0.146 297.2)
XYZxyz(48.3205, 39.2919, 97.9478)
Luminance0.3929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797FD #DDFD97
analogous
#97AAFD #B797FD #EA97FD
triadic
#B797FD #FDB797 #97FDB7
tetradic
#B797FD #FD97AA #DDFD97 #97FDEA
square
#B797FD #FD97AA #DDFD97 #97FDEA
split-complementary
#B797FD #FDEA97 #AAFD97
monochromatic
#641FFB #8D5BFC #B797FD #E1D3FE #EAE1FE

Accessibility & contrast

On white

2.37
#B797FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#B797FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797FD
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797FD#FFFFFF#000000##000000
##B797FD1.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA9FF
Deuteranopia (green-blind)
#80A7FA
Tritanopia (blue-blind)
#A9A9BE
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b797fd;
/* rgb */ color: rgb(183, 151, 253);
/* oklch */ color: oklch(74.6% 0.146 297.2);
Tailwind
colors: {
  custom: {
    50: '#cfb6fe',
    500: '#b797fd',
    950: '#000000',
  },
}
SCSS
$custom: #b797fd;
$custom-light: #cfb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b797fd",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 258.824,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.74554,
    "c": 0.14632,
    "h": 297.2
  },
  "luminance": 0.39292
}

Semantic roles & 50–950 ramp

primary
#B797FD
secondary
#ECF7D4
accent
#E6009D
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B797FD

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

Preview Lab → · Contrast checker → · Palette generator →

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