#B381FA#B381FA

#B381FA is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.3% C 0.176 H 301.1°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#B381FA
RGBrgb(179, 129, 250)
HSLhsl(265, 92%, 74%)
HSVhsv(265, 48%, 98%)
CMYKcmyk(28.4%, 48.4%, 0%, 2%)
CIE-LABlab(63.50, 43.23, -53.60)
CIE-LCHlch(63.50, 68.86, 308.89°)
OKLaboklab(70.31% 0.0908 -0.1507)
OKLCHoklch(70.31% 0.176 301.1)
XYZxyz(43.6920, 32.1862, 94.3347)
Luminance0.3219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381FA #C8FA81
analogous
#818CFA #B381FA #EF81FA
triadic
#B381FA #FAB381 #81FAB3
tetradic
#B381FA #FA818C #C8FA81 #81FAEF
square
#B381FA #FA818C #C8FA81 #81FAEF
split-complementary
#B381FA #FAEF81 #8CFA81
monochromatic
#6C0BF5 #8F46F8 #B381FA #D7BCFC #EDE2FE

Accessibility & contrast

On white

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

On black

7.44
#B381FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381FA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381FA#FFFFFF#000000##000000
##B381FA1.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b381fa;
/* rgb */ color: rgb(179, 129, 250);
/* oklch */ color: oklch(70.3% 0.176 301.1);
Tailwind
colors: {
  custom: {
    50: '#cca6fc',
    500: '#b381fa',
    950: '#000000',
  },
}
SCSS
$custom: #b381fa;
$custom-light: #cca6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b381fa",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 250
  },
  "hsl": {
    "h": 264.793,
    "s": 92.366,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70309,
    "c": 0.1759,
    "h": 301.1
  },
  "luminance": 0.32186
}

Semantic roles & 50–950 ramp

primary
#B381FA
secondary
#E8F6D5
accent
#E60087
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B381FA

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

Preview Lab → · Contrast checker → · Palette generator →

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