#B381FB#B381FB

#B381FB is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.4% C 0.177 H 300.9°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#B381FB
RGBrgb(179, 129, 251)
HSLhsl(265, 94%, 75%)
HSVhsv(265, 49%, 98%)
CMYKcmyk(28.7%, 48.6%, 0%, 1.6%)
CIE-LABlab(63.55, 43.47, -54.07)
CIE-LCHlch(63.55, 69.37, 308.80°)
OKLaboklab(70.36% 0.0909 -0.152)
OKLCHoklch(70.36% 0.177 300.9)
XYZxyz(43.8492, 32.2491, 95.1627)
Luminance0.3225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381FB #C9FB81
analogous
#818CFB #B381FB #F081FB
triadic
#B381FB #FBB381 #81FBB3
tetradic
#B381FB #FB818C #C9FB81 #81FBF0
square
#B381FB #FB818C #C9FB81 #81FBF0
split-complementary
#B381FB #FBF081 #8CFB81
monochromatic
#6B0AF7 #8F46F9 #B381FB #D7BCFD #EDE1FE

Accessibility & contrast

On white

2.82
#B381FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#B381FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381FB
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381FB#FFFFFF#000000##000000
##B381FB1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A99FF
Deuteranopia (green-blind)
#6799F8
Tritanopia (blue-blind)
#A597B2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b381fb;
/* rgb */ color: rgb(179, 129, 251);
/* oklch */ color: oklch(70.4% 0.177 300.9);
Tailwind
colors: {
  custom: {
    50: '#cda6fd',
    500: '#b381fb',
    950: '#000000',
  },
}
SCSS
$custom: #b381fb;
$custom-light: #cda6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b381fb",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 251
  },
  "hsl": {
    "h": 264.59,
    "s": 93.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.70365,
    "c": 0.17712,
    "h": 300.9
  },
  "luminance": 0.32249
}

Semantic roles & 50–950 ramp

primary
#B381FB
secondary
#E9F6D5
accent
#E60087
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B381FB

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

Preview Lab → · Contrast checker → · Palette generator →

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