#B396F2#B396F2

#B396F2 is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.5% C 0.133 H 297.5°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#B396F2
RGBrgb(179, 150, 242)
HSLhsl(259, 78%, 77%)
HSVhsv(259, 38%, 95%)
CMYKcmyk(26%, 38%, 0%, 5.1%)
CIE-LABlab(67.88, 29.65, -42.30)
CIE-LCHlch(67.88, 51.66, 305.03°)
OKLaboklab(73.48% 0.0615 -0.1179)
OKLCHoklch(73.48% 0.133 297.5)
XYZxyz(45.5200, 37.8068, 88.8864)
Luminance0.3781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B396F2 #D5F296
analogous
#96A7F2 #B396F2 #E196F2
triadic
#B396F2 #F2B396 #96F2B3
tetradic
#B396F2 #F296A7 #D5F296 #96F2E1
square
#B396F2 #F296A7 #D5F296 #96F2E1
split-complementary
#B396F2 #F2E196 #A7F296
monochromatic
#6429E5 #8C60EB #B396F2 #DACCF9 #EBE4FC

Accessibility & contrast

On white

2.45
#B396F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#B396F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B396F2
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B396F2#FFFFFF#000000##000000
##B396F21.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA6F6
Deuteranopia (green-blind)
#83A4F0
Tritanopia (blue-blind)
#A6A6B9
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b396f2;
/* rgb */ color: rgb(179, 150, 242);
/* oklch */ color: oklch(73.5% 0.133 297.5);
Tailwind
colors: {
  custom: {
    50: '#cbb5f6',
    500: '#b396f2',
    950: '#000000',
  },
}
SCSS
$custom: #b396f2;
$custom-light: #cbb5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#b396f2",
  "rgb": {
    "r": 179,
    "g": 150,
    "b": 242
  },
  "hsl": {
    "h": 258.913,
    "s": 77.966,
    "l": 76.863
  },
  "oklch": {
    "l": 0.73484,
    "c": 0.13293,
    "h": 297.5
  },
  "luminance": 0.37807
}

Semantic roles & 50–950 ramp

primary
#B396F2
secondary
#EBF3D8
accent
#DA0B99
background
#FCFBFF
surface
#F9F6FE
border
#D2D0D6
text
#131117
muted
#828085

Preview Lab

Preview with #B396F2

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

Preview Lab → · Contrast checker → · Palette generator →

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