#B797F7#B797F7

#B797F7 is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.3% C 0.139 H 298.3°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#B797F7
RGBrgb(183, 151, 247)
HSLhsl(260, 86%, 78%)
HSVhsv(260, 39%, 97%)
CMYKcmyk(25.9%, 38.9%, 0%, 3.1%)
CIE-LABlab(68.69, 31.41, -43.74)
CIE-LCHlch(68.69, 53.85, 305.68°)
OKLaboklab(74.26% 0.0657 -0.1219)
OKLCHoklch(74.26% 0.139 298.3)
XYZxyz(47.3797, 38.9155, 92.9930)
Luminance0.3892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797F7 #D7F797
analogous
#97A7F7 #B797F7 #E797F7
triadic
#B797F7 #F7B797 #97F7B7
tetradic
#B797F7 #F797A7 #D7F797 #97F7E7
square
#B797F7 #F797A7 #D7F797 #97F7E7
split-complementary
#B797F7 #F7E797 #A7F797
monochromatic
#6825EE #905EF3 #B797F7 #DED0FB #EBE3FD

Accessibility & contrast

On white

2.39
#B797F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#B797F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797F7
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797F7#FFFFFF#000000##000000
##B797F71.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA8FB
Deuteranopia (green-blind)
#83A7F4
Tritanopia (blue-blind)
#AAA7BB
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b797f7;
/* rgb */ color: rgb(183, 151, 247);
/* oklch */ color: oklch(74.3% 0.139 298.3);
Tailwind
colors: {
  custom: {
    50: '#ceb6fa',
    500: '#b797f7',
    950: '#000000',
  },
}
SCSS
$custom: #b797f7;
$custom-light: #ceb6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b797f7",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 247
  },
  "hsl": {
    "h": 260,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.74258,
    "c": 0.1385,
    "h": 298.3
  },
  "luminance": 0.38916
}

Semantic roles & 50–950 ramp

primary
#B797F7
secondary
#EBF5D6
accent
#E20398
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B797F7

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

Preview Lab → · Contrast checker → · Palette generator →

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