#B381EB#B381EB

#B381EB is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.5% C 0.158 H 304.4°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#B381EB
RGBrgb(179, 129, 235)
HSLhsl(268, 73%, 71%)
HSVhsv(268, 45%, 92%)
CMYKcmyk(23.8%, 45.1%, 0%, 7.8%)
CIE-LABlab(62.75, 39.70, -46.52)
CIE-LCHlch(62.75, 61.15, 310.48°)
OKLaboklab(69.5% 0.089 -0.13)
OKLCHoklch(69.5% 0.158 304.4)
XYZxyz(41.4329, 31.2825, 82.4365)
Luminance0.3128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381EB #B9EB81
analogous
#8184EB #B381EB #E881EB
triadic
#B381EB #EBB381 #81EBB3
tetradic
#B381EB #EB8184 #B9EB81 #81EBE8
square
#B381EB #EB8184 #B9EB81 #81EBE8
split-complementary
#B381EB #EBE881 #84EB81
monochromatic
#7421D1 #934CE3 #B381EB #D3B6F3 #EFE5FB

Accessibility & contrast

On white

2.89
#B381EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#B381EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381EB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381EB#FFFFFF#000000##000000
##B381EB1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6596EF
Deuteranopia (green-blind)
#7198E8
Tritanopia (blue-blind)
#AA93AB
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b381eb;
/* rgb */ color: rgb(179, 129, 235);
/* oklch */ color: oklch(69.5% 0.158 304.4);
Tailwind
colors: {
  custom: {
    50: '#cca6f2',
    500: '#b381eb',
    950: '#000000',
  },
}
SCSS
$custom: #b381eb;
$custom-light: #cca6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b381eb",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 268.302,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.69504,
    "c": 0.15755,
    "h": 304.4
  },
  "luminance": 0.31282
}

Semantic roles & 50–950 ramp

primary
#B381EB
secondary
#E5F2D6
accent
#D51178
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B381EB

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

Preview Lab → · Contrast checker → · Palette generator →

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