#B396EC#B396EC

#B396EC is a light, vivid violet. Relative luminance 0.375; OKLCH L 73.2% C 0.125 H 298.8°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#B396EC
RGBrgb(179, 150, 236)
HSLhsl(260, 69%, 76%)
HSVhsv(260, 36%, 93%)
CMYKcmyk(24.2%, 36.4%, 0%, 7.5%)
CIE-LABlab(67.61, 28.23, -39.42)
CIE-LCHlch(67.61, 48.49, 305.60°)
OKLaboklab(73.2% 0.0602 -0.1096)
OKLCHoklch(73.2% 0.125 298.8)
XYZxyz(44.6336, 37.4523, 84.2182)
Luminance0.3745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B396EC #CFEC96
analogous
#96A4EC #B396EC #DE96EC
triadic
#B396EC #ECB396 #96ECB3
tetradic
#B396EC #EC96A4 #CFEC96 #96ECDE
square
#B396EC #EC96A4 #CFEC96 #96ECDE
split-complementary
#B396EC #ECDE96 #A4EC96
monochromatic
#682ED9 #8D62E3 #B396EC #D9CAF5 #ECE5FA

Accessibility & contrast

On white

2.47
#B396EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#B396EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B396EC
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B396EC#FFFFFF#000000##000000
##B396EC1.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A5EF
Deuteranopia (green-blind)
#86A4EA
Tritanopia (blue-blind)
#A8A4B6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b396ec;
/* rgb */ color: rgb(179, 150, 236);
/* oklch */ color: oklch(73.2% 0.125 298.8);
Tailwind
colors: {
  custom: {
    50: '#cbb5f2',
    500: '#b396ec',
    950: '#000000',
  },
}
SCSS
$custom: #b396ec;
$custom-light: #cbb5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b396ec",
  "rgb": {
    "r": 179,
    "g": 150,
    "b": 236
  },
  "hsl": {
    "h": 260.233,
    "s": 69.355,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73198,
    "c": 0.12502,
    "h": 298.8
  },
  "luminance": 0.37453
}

Semantic roles & 50–950 ramp

primary
#B396EC
secondary
#EAF2D9
accent
#D11492
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #B396EC

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

Preview Lab → · Contrast checker → · Palette generator →

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