#B381EC#B381EC

#B381EC is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.6% C 0.159 H 304.1°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#B381EC
RGBrgb(179, 129, 236)
HSLhsl(268, 74%, 72%)
HSVhsv(268, 45%, 93%)
CMYKcmyk(24.2%, 45.3%, 0%, 7.5%)
CIE-LABlab(62.79, 39.93, -46.99)
CIE-LCHlch(62.79, 61.67, 310.35°)
OKLaboklab(69.56% 0.0891 -0.1314)
OKLCHoklch(69.56% 0.159 304.1)
XYZxyz(41.5778, 31.3405, 83.1995)
Luminance0.3134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381EC #BAEC81
analogous
#8185EC #B381EC #E881EC
triadic
#B381EC #ECB381 #81ECB3
tetradic
#B381EC #EC8185 #BAEC81 #81ECE8
square
#B381EC #EC8185 #BAEC81 #81ECE8
split-complementary
#B381EC #ECE881 #85EC81
monochromatic
#7320D3 #934CE4 #B381EC #D3B6F4 #EFE4FB

Accessibility & contrast

On white

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

On black

7.27
#B381EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381EC
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381EC#FFFFFF#000000##000000
##B381EC1.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6497F0
Deuteranopia (green-blind)
#7098E9
Tritanopia (blue-blind)
#A993AB
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b381ec;
/* rgb */ color: rgb(179, 129, 236);
/* oklch */ color: oklch(69.6% 0.159 304.1);
Tailwind
colors: {
  custom: {
    50: '#cca6f2',
    500: '#b381ec',
    950: '#000000',
  },
}
SCSS
$custom: #b381ec;
$custom-light: #cca6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b381ec",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 268.037,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69556,
    "c": 0.15877,
    "h": 304.1
  },
  "luminance": 0.3134
}

Semantic roles & 50–950 ramp

primary
#B381EC
secondary
#E5F2D7
accent
#D61079
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B381EC

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

Preview Lab → · Contrast checker → · Palette generator →

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