#B796FE#B796FE

#B796FE is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.4% C 0.149 H 297.3°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#B796FE
RGBrgb(183, 150, 254)
HSLhsl(259, 98%, 79%)
HSVhsv(259, 41%, 100%)
CMYKcmyk(28%, 40.9%, 0%, 0.4%)
CIE-LABlab(68.78, 33.64, -47.42)
CIE-LCHlch(68.78, 58.14, 305.35°)
OKLaboklab(74.43% 0.0683 -0.1326)
OKLCHoklch(74.43% 0.149 297.3)
XYZxyz(48.3199, 39.0352, 98.7356)
Luminance0.3904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796FE #DDFE96
analogous
#96A9FE #B796FE #EB96FE
triadic
#B796FE #FEB796 #96FEB7
tetradic
#B796FE #FE96A9 #DDFE96 #96FEEB
square
#B796FE #FE96A9 #DDFE96 #96FEEB
split-complementary
#B796FE #FEEB96 #A9FE96
monochromatic
#641DFD #8D59FD #B796FE #E1D3FF #EAE1FF

Accessibility & contrast

On white

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

On black

8.81
#B796FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B796FE
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B796FE#FFFFFF#000000##000000
##B796FE1.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A8FF
Deuteranopia (green-blind)
#7FA7FB
Tritanopia (blue-blind)
#A8A8BE
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b796fe;
/* rgb */ color: rgb(183, 150, 254);
/* oklch */ color: oklch(74.4% 0.149 297.3);
Tailwind
colors: {
  custom: {
    50: '#cfb5ff',
    500: '#b796fe',
    950: '#000000',
  },
}
SCSS
$custom: #b796fe;
$custom-light: #cfb5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b796fe",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 254
  },
  "hsl": {
    "h": 259.038,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.74428,
    "c": 0.14916,
    "h": 297.3
  },
  "luminance": 0.39036
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B796FE

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

Preview Lab → · Contrast checker → · Palette generator →

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