#B396FB#B396FB

#B396FB is a light, vivid violet. Relative luminance 0.384; OKLCH L 73.9% C 0.145 H 295.9°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#B396FB
RGBrgb(179, 150, 251)
HSLhsl(257, 93%, 79%)
HSVhsv(257, 40%, 98%)
CMYKcmyk(28.7%, 40.2%, 0%, 1.6%)
CIE-LABlab(68.29, 31.82, -46.58)
CIE-LCHlch(68.29, 56.41, 304.34°)
OKLaboklab(73.93% 0.0632 -0.1302)
OKLCHoklch(73.93% 0.145 295.9)
XYZxyz(46.9051, 38.3608, 96.1813)
Luminance0.3836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B396FB #DEFB96
analogous
#96ABFB #B396FB #E696FB
triadic
#B396FB #FBB396 #96FBB3
tetradic
#B396FB #FB96AB #DEFB96 #96FBE6
square
#B396FB #FB96AB #DEFB96 #96FBE6
split-complementary
#B396FB #FBE696 #ABFB96
monochromatic
#5E20F7 #885BF9 #B396FB #DED1FD #EAE2FE

Accessibility & contrast

On white

2.42
#B396FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#B396FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B396FB
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B396FB#FFFFFF#000000##000000
##B396FB1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A7FF
Deuteranopia (green-blind)
#7EA5F8
Tritanopia (blue-blind)
#A4A8BD
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b396fb;
/* rgb */ color: rgb(179, 150, 251);
/* oklch */ color: oklch(73.9% 0.145 295.9);
Tailwind
colors: {
  custom: {
    50: '#ccb5fd',
    500: '#b396fb',
    950: '#000000',
  },
}
SCSS
$custom: #b396fb;
$custom-light: #ccb5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b396fb",
  "rgb": {
    "r": 179,
    "g": 150,
    "b": 251
  },
  "hsl": {
    "h": 257.228,
    "s": 92.661,
    "l": 78.627
  },
  "oklch": {
    "l": 0.73927,
    "c": 0.14477,
    "h": 295.9
  },
  "luminance": 0.38361
}

Semantic roles & 50–950 ramp

primary
#B396FB
secondary
#EDF6D5
accent
#E600A4
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B396FB

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

Preview Lab → · Contrast checker → · Palette generator →

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