#B797FE#B797FE

#B797FE is a light, vivid violet. Relative luminance 0.394; OKLCH L 74.6% C 0.148 H 297.0°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#B797FE
RGBrgb(183, 151, 254)
HSLhsl(259, 98%, 79%)
HSVhsv(259, 41%, 100%)
CMYKcmyk(28%, 40.6%, 0%, 0.4%)
CIE-LABlab(69.01, 33.08, -47.05)
CIE-LCHlch(69.01, 57.52, 305.11°)
OKLaboklab(74.6% 0.067 -0.1315)
OKLCHoklch(74.6% 0.148 297)
XYZxyz(48.4802, 39.3557, 98.7890)
Luminance0.3936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B797FE #DEFE97
analogous
#97ABFE #B797FE #EB97FE
triadic
#B797FE #FEB797 #97FEB7
tetradic
#B797FE #FE97AB #DEFE97 #97FEEB
square
#B797FE #FE97AB #DEFE97 #97FEEB
split-complementary
#B797FE #FEEB97 #ABFE97
monochromatic
#631EFD #8D5AFD #B797FE #E1D4FF #EAE1FF

Accessibility & contrast

On white

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

On black

8.87
#B797FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B797FE
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B797FE#FFFFFF#000000##000000
##B797FE1.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA9FF
Deuteranopia (green-blind)
#80A7FB
Tritanopia (blue-blind)
#A8A9BE
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b797fe;
/* rgb */ color: rgb(183, 151, 254);
/* oklch */ color: oklch(74.6% 0.148 297.0);
Tailwind
colors: {
  custom: {
    50: '#cfb6ff',
    500: '#b797fe',
    950: '#000000',
  },
}
SCSS
$custom: #b797fe;
$custom-light: #cfb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b797fe",
  "rgb": {
    "r": 183,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 258.641,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.74604,
    "c": 0.14762,
    "h": 297
  },
  "luminance": 0.39356
}

Semantic roles & 50–950 ramp

primary
#B797FE
secondary
#ECF7D4
accent
#E6009E
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B797FE

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

Preview Lab → · Contrast checker → · Palette generator →

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