#B381E8#B381E8

#B381E8 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.3% C 0.154 H 305.1°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#B381E8
RGBrgb(179, 129, 232)
HSLhsl(269, 69%, 71%)
HSVhsv(269, 44%, 91%)
CMYKcmyk(22.8%, 44.4%, 0%, 9%)
CIE-LABlab(62.60, 39.00, -45.08)
CIE-LCHlch(62.60, 59.61, 310.87°)
OKLaboklab(69.35% 0.0885 -0.1259)
OKLCHoklch(69.35% 0.154 305.1)
XYZxyz(41.0031, 31.1106, 80.1731)
Luminance0.3111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381E8 #B6E881
analogous
#8182E8 #B381E8 #E681E8
triadic
#B381E8 #E8B381 #81E8B3
tetradic
#B381E8 #E88182 #B6E881 #81E8E6
square
#B381E8 #E88182 #B6E881 #81E8E6
split-complementary
#B381E8 #E8E681 #82E881
monochromatic
#7525CA #944DDF #B381E8 #D2B5F1 #EFE5FA

Accessibility & contrast

On white

2.91
#B381E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#B381E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381E8
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381E8#FFFFFF#000000##000000
##B381E81.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6796EC
Deuteranopia (green-blind)
#7398E5
Tritanopia (blue-blind)
#AB92A9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b381e8;
/* rgb */ color: rgb(179, 129, 232);
/* oklch */ color: oklch(69.3% 0.154 305.1);
Tailwind
colors: {
  custom: {
    50: '#cca6f0',
    500: '#b381e8',
    950: '#000000',
  },
}
SCSS
$custom: #b381e8;
$custom-light: #cca6f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b381e8",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 232
  },
  "hsl": {
    "h": 269.126,
    "s": 69.128,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69348,
    "c": 0.15388,
    "h": 305.1
  },
  "luminance": 0.3111
}

Semantic roles & 50–950 ramp

primary
#B381E8
secondary
#E3F0D5
accent
#D11475
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #B381E8

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

Preview Lab → · Contrast checker → · Palette generator →

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