#B796FC#B796FC

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

Color values

HEX#B796FC
RGBrgb(183, 150, 252)
HSLhsl(259, 94%, 79%)
HSVhsv(259, 40%, 99%)
CMYKcmyk(27.4%, 40.5%, 0%, 1.2%)
CIE-LABlab(68.68, 33.16, -46.47)
CIE-LCHlch(68.68, 57.09, 305.51°)
OKLaboklab(74.33% 0.068 -0.1298)
OKLCHoklch(74.33% 0.147 297.6)
XYZxyz(48.0013, 38.9078, 97.0576)
Luminance0.3891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B796FC #DBFC96
analogous
#96A8FC #B796FC #EA96FC
triadic
#B796FC #FCB796 #96FCB7
tetradic
#B796FC #FC96A8 #DBFC96 #96FCEA
square
#B796FC #FC96A8 #DBFC96 #96FCEA
split-complementary
#B796FC #FCEA96 #A8FC96
monochromatic
#651FF9 #8E5BFA #B796FC #E0D2FE #EBE1FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B796FC#FFFFFF#000000##000000
##B796FC1.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)
#7AA8FF
Deuteranopia (green-blind)
#80A7F9
Tritanopia (blue-blind)
#A9A8BD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b796fc;
/* rgb */ color: rgb(183, 150, 252);
/* oklch */ color: oklch(74.3% 0.147 297.6);
Tailwind
colors: {
  custom: {
    50: '#ceb5fe',
    500: '#b796fc',
    950: '#000000',
  },
}
SCSS
$custom: #b796fc;
$custom-light: #ceb5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b796fc",
  "rgb": {
    "r": 183,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 259.412,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74328,
    "c": 0.14657,
    "h": 297.6
  },
  "luminance": 0.38908
}

Semantic roles & 50–950 ramp

primary
#B796FC
secondary
#EBF6D5
accent
#E6009B
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B796FC

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

Preview Lab → · Contrast checker → · Palette generator →

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