#B797FA#B797FA

#B797FA is a light, vivid violet. Relative luminance 0.391; OKLCH L 74.4% C 0.142 H 297.7°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#B797FA
RGBrgb(183, 151, 250)
HSLhsl(259, 91%, 79%)
HSVhsv(259, 40%, 98%)
CMYKcmyk(26.8%, 39.6%, 0%, 2%)
CIE-LABlab(68.83, 32.12, -45.16)
CIE-LCHlch(68.83, 55.42, 305.42°)
OKLaboklab(74.41% 0.0663 -0.1261)
OKLCHoklch(74.41% 0.142 297.7)
XYZxyz(47.8463, 39.1022, 95.4507)
Luminance0.3910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797FA #DAFA97
analogous
#97A8FA #B797FA #E897FA
triadic
#B797FA #FAB797 #97FAB7
tetradic
#B797FA #FA97A8 #DAFA97 #97FAE8
square
#B797FA #FA97A8 #DAFA97 #97FAE8
split-complementary
#B797FA #FAE897 #A8FA97
monochromatic
#6622F4 #8F5DF7 #B797FA #DFD1FD #EBE2FE

Accessibility & contrast

On white

2.38
#B797FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#B797FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797FA
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797FA#FFFFFF#000000##000000
##B797FA1.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA8FE
Deuteranopia (green-blind)
#82A7F7
Tritanopia (blue-blind)
#AAA8BD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b797fa;
/* rgb */ color: rgb(183, 151, 250);
/* oklch */ color: oklch(74.4% 0.142 297.7);
Tailwind
colors: {
  custom: {
    50: '#ceb6fc',
    500: '#b797fa',
    950: '#000000',
  },
}
SCSS
$custom: #b797fa;
$custom-light: #ceb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b797fa",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 259.394,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.74405,
    "c": 0.14242,
    "h": 297.7
  },
  "luminance": 0.39103
}

Semantic roles & 50–950 ramp

primary
#B797FA
secondary
#EBF6D5
accent
#E6009B
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B797FA

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

Preview Lab → · Contrast checker → · Palette generator →

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