#B396FE#B396FE

#B396FE is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.1% C 0.149 H 295.4°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#B396FE
RGBrgb(179, 150, 254)
HSLhsl(257, 98%, 79%)
HSVhsv(257, 41%, 100%)
CMYKcmyk(29.5%, 40.9%, 0%, 0.4%)
CIE-LABlab(68.43, 32.55, -47.99)
CIE-LCHlch(68.43, 57.99, 304.15°)
OKLaboklab(74.08% 0.0637 -0.1344)
OKLCHoklch(74.08% 0.149 295.4)
XYZxyz(47.3818, 38.5515, 98.6916)
Luminance0.3855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B396FE #E1FE96
analogous
#96ADFE #B396FE #E796FE
triadic
#B396FE #FEB396 #96FEB3
tetradic
#B396FE #FE96AD #E1FE96 #96FEE7
square
#B396FE #FE96AD #E1FE96 #96FEE7
split-complementary
#B396FE #FEE796 #ADFE96
monochromatic
#5B1DFD #8759FD #B396FE #DFD3FF #E9E1FF

Accessibility & contrast

On white

2.41
#B396FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#B396FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B396FE
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B396FE#FFFFFF#000000##000000
##B396FE1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A8FF
Deuteranopia (green-blind)
#7CA5FB
Tritanopia (blue-blind)
#A3A9BE
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b396fe;
/* rgb */ color: rgb(179, 150, 254);
/* oklch */ color: oklch(74.1% 0.149 295.4);
Tailwind
colors: {
  custom: {
    50: '#ccb5ff',
    500: '#b396fe',
    950: '#000000',
  },
}
SCSS
$custom: #b396fe;
$custom-light: #ccb5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b396fe",
  "rgb": {
    "r": 179,
    "g": 150,
    "b": 254
  },
  "hsl": {
    "h": 256.731,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.74078,
    "c": 0.1487,
    "h": 295.4
  },
  "luminance": 0.38552
}

Semantic roles & 50–950 ramp

primary
#B396FE
secondary
#EDF7D4
accent
#E600A6
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B396FE

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

Preview Lab → · Contrast checker → · Palette generator →

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