#B381EA#B381EA

#B381EA is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.5% C 0.156 H 304.6°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#B381EA
RGBrgb(179, 129, 234)
HSLhsl(269, 71%, 71%)
HSVhsv(269, 45%, 92%)
CMYKcmyk(23.5%, 44.9%, 0%, 8.2%)
CIE-LABlab(62.70, 39.46, -46.04)
CIE-LCHlch(62.70, 60.64, 310.60°)
OKLaboklab(69.45% 0.0888 -0.1286)
OKLCHoklch(69.45% 0.156 304.6)
XYZxyz(41.2888, 31.2249, 81.6778)
Luminance0.3123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381EA #B8EA81
analogous
#8183EA #B381EA #E781EA
triadic
#B381EA #EAB381 #81EAB3
tetradic
#B381EA #EA8183 #B8EA81 #81EAE7
square
#B381EA #EA8183 #B8EA81 #81EAE7
split-complementary
#B381EA #EAE781 #83EA81
monochromatic
#7422CE #934DE1 #B381EA #D3B5F3 #EFE5FB

Accessibility & contrast

On white

2.90
#B381EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#B381EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381EA
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381EA#FFFFFF#000000##000000
##B381EA1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6596EE
Deuteranopia (green-blind)
#7298E7
Tritanopia (blue-blind)
#AA93AA
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b381ea;
/* rgb */ color: rgb(179, 129, 234);
/* oklch */ color: oklch(69.5% 0.156 304.6);
Tailwind
colors: {
  custom: {
    50: '#cca6f1',
    500: '#b381ea',
    950: '#000000',
  },
}
SCSS
$custom: #b381ea;
$custom-light: #cca6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b381ea",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 268.571,
    "s": 71.429,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69451,
    "c": 0.15633,
    "h": 304.6
  },
  "luminance": 0.31225
}

Semantic roles & 50–950 ramp

primary
#B381EA
secondary
#E4F1D6
accent
#D31277
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B381EA

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

Preview Lab → · Contrast checker → · Palette generator →

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