#B381EE#B381EE

#B381EE is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.7% C 0.161 H 303.7°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#B381EE
RGBrgb(179, 129, 238)
HSLhsl(268, 76%, 72%)
HSVhsv(268, 46%, 93%)
CMYKcmyk(24.8%, 45.8%, 0%, 6.7%)
CIE-LABlab(62.89, 40.39, -47.95)
CIE-LCHlch(62.89, 62.69, 310.11°)
OKLaboklab(69.66% 0.0894 -0.1342)
OKLCHoklch(69.66% 0.161 303.7)
XYZxyz(41.8700, 31.4574, 84.7384)
Luminance0.3146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381EE #BCEE81
analogous
#8186EE #B381EE #EA81EE
triadic
#B381EE #EEB381 #81EEB3
tetradic
#B381EE #EE8186 #BCEE81 #81EEEA
square
#B381EE #EE8186 #BCEE81 #81EEEA
split-complementary
#B381EE #EEEA81 #86EE81
monochromatic
#731DD8 #924BE7 #B381EE #D4B7F5 #EFE4FB

Accessibility & contrast

On white

2.88
#B381EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#B381EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381EE
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381EE#FFFFFF#000000##000000
##B381EE1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6397F2
Deuteranopia (green-blind)
#6F98EB
Tritanopia (blue-blind)
#A994AC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b381ee;
/* rgb */ color: rgb(179, 129, 238);
/* oklch */ color: oklch(69.7% 0.161 303.7);
Tailwind
colors: {
  custom: {
    50: '#cca6f4',
    500: '#b381ee',
    950: '#000000',
  },
}
SCSS
$custom: #b381ee;
$custom-light: #cca6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b381ee",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 238
  },
  "hsl": {
    "h": 267.523,
    "s": 76.224,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69661,
    "c": 0.16123,
    "h": 303.7
  },
  "luminance": 0.31457
}

Semantic roles & 50–950 ramp

primary
#B381EE
secondary
#E7F3D8
accent
#D80D7B
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B381EE

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

Preview Lab → · Contrast checker → · Palette generator →

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