#B381F6#B381F6

#B381F6 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.1% C 0.171 H 301.9°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#B381F6
RGBrgb(179, 129, 246)
HSLhsl(266, 87%, 74%)
HSVhsv(266, 48%, 96%)
CMYKcmyk(27.2%, 47.6%, 0%, 3.5%)
CIE-LABlab(63.29, 42.28, -51.73)
CIE-LCHlch(63.29, 66.80, 309.26°)
OKLaboklab(70.09% 0.0904 -0.1452)
OKLCHoklch(70.09% 0.171 301.9)
XYZxyz(43.0715, 31.9380, 91.0664)
Luminance0.3194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381F6 #C4F681
analogous
#8189F6 #B381F6 #ED81F6
triadic
#B381F6 #F6B381 #81F6B3
tetradic
#B381F6 #F68189 #C4F681 #81F6ED
square
#B381F6 #F68189 #C4F681 #81F6ED
split-complementary
#B381F6 #F6ED81 #89F681
monochromatic
#6E11EC #9148F2 #B381F6 #D5BAFA #EEE2FD

Accessibility & contrast

On white

2.84
#B381F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#B381F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381F6
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381F6#FFFFFF#000000##000000
##B381F61.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E98FA
Deuteranopia (green-blind)
#6A99F3
Tritanopia (blue-blind)
#A796B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b381f6;
/* rgb */ color: rgb(179, 129, 246);
/* oklch */ color: oklch(70.1% 0.171 301.9);
Tailwind
colors: {
  custom: {
    50: '#cca6fa',
    500: '#b381f6',
    950: '#000000',
  },
}
SCSS
$custom: #b381f6;
$custom-light: #cca6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b381f6",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 246
  },
  "hsl": {
    "h": 265.641,
    "s": 86.667,
    "l": 73.529
  },
  "oklch": {
    "l": 0.7009,
    "c": 0.17102,
    "h": 301.9
  },
  "luminance": 0.31938
}

Semantic roles & 50–950 ramp

primary
#B381F6
secondary
#E8F5D6
accent
#E30283
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B381F6

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

Preview Lab → · Contrast checker → · Palette generator →

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