#B381EF#B381EF

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

Color values

HEX#B381EF
RGBrgb(179, 129, 239)
HSLhsl(267, 77%, 72%)
HSVhsv(267, 46%, 94%)
CMYKcmyk(25.1%, 46%, 0%, 6.3%)
CIE-LABlab(62.94, 40.63, -48.42)
CIE-LCHlch(62.94, 63.21, 310.00°)
OKLaboklab(69.71% 0.0895 -0.1356)
OKLCHoklch(69.71% 0.162 303.4)
XYZxyz(42.0173, 31.5163, 85.5143)
Luminance0.3152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381EF #BDEF81
analogous
#8186EF #B381EF #EA81EF
triadic
#B381EF #EFB381 #81EFB3
tetradic
#B381EF #EF8186 #BDEF81 #81EFEA
square
#B381EF #EF8186 #BDEF81 #81EFEA
split-complementary
#B381EF #EFEA81 #86EF81
monochromatic
#721CDA #924BE8 #B381EF #D4B7F6 #EFE4FC

Accessibility & contrast

On white

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

On black

7.30
#B381EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381EF
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381EF#FFFFFF#000000##000000
##B381EF1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6297F3
Deuteranopia (green-blind)
#6F98EC
Tritanopia (blue-blind)
#A994AD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b381ef;
/* rgb */ color: rgb(179, 129, 239);
/* oklch */ color: oklch(69.7% 0.162 303.4);
Tailwind
colors: {
  custom: {
    50: '#cca6f5',
    500: '#b381ef',
    950: '#000000',
  },
}
SCSS
$custom: #b381ef;
$custom-light: #cca6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b381ef",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 267.273,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.69714,
    "c": 0.16245,
    "h": 303.4
  },
  "luminance": 0.31516
}

Semantic roles & 50–950 ramp

primary
#B381EF
secondary
#E7F3D8
accent
#DA0C7C
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#140F17
muted
#827F85

Preview Lab

Preview with #B381EF

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

Preview Lab → · Contrast checker → · Palette generator →

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