#B381E7#B381E7

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

Color values

HEX#B381E7
RGBrgb(179, 129, 231)
HSLhsl(269, 68%, 71%)
HSVhsv(269, 44%, 91%)
CMYKcmyk(22.5%, 44.2%, 0%, 9.4%)
CIE-LABlab(62.55, 38.77, -44.60)
CIE-LCHlch(62.55, 59.10, 311.00°)
OKLaboklab(69.3% 0.0884 -0.1245)
OKLCHoklch(69.3% 0.153 305.4)
XYZxyz(40.8615, 31.0540, 79.4272)
Luminance0.3105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381E7 #B5E781
analogous
#8182E7 #B381E7 #E681E7
triadic
#B381E7 #E7B381 #81E7B3
tetradic
#B381E7 #E78182 #B5E781 #81E7E6
square
#B381E7 #E78182 #B5E781 #81E7E6
split-complementary
#B381E7 #E7E681 #82E781
monochromatic
#7526C8 #944EDD #B381E7 #D2B4F1 #EFE5FA

Accessibility & contrast

On white

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

On black

7.21
#B381E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381E7
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381E7#FFFFFF#000000##000000
##B381E71.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b381e7;
/* rgb */ color: rgb(179, 129, 231);
/* oklch */ color: oklch(69.3% 0.153 305.4);
Tailwind
colors: {
  custom: {
    50: '#cca6ef',
    500: '#b381e7',
    950: '#000000',
  },
}
SCSS
$custom: #b381e7;
$custom-light: #cca6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b381e7",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 231
  },
  "hsl": {
    "h": 269.412,
    "s": 68,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69297,
    "c": 0.15265,
    "h": 305.4
  },
  "luminance": 0.31054
}

Semantic roles & 50–950 ramp

primary
#B381E7
secondary
#E2F0D4
accent
#D01675
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #B381E7

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

Preview Lab → · Contrast checker → · Palette generator →

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