#B381F5#B381F5

#B381F5 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.0% C 0.170 H 302.1°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#B381F5
RGBrgb(179, 129, 245)
HSLhsl(266, 85%, 73%)
HSVhsv(266, 47%, 96%)
CMYKcmyk(26.9%, 47.3%, 0%, 3.9%)
CIE-LABlab(63.24, 42.04, -51.26)
CIE-LCHlch(63.24, 66.29, 309.36°)
OKLaboklab(70.04% 0.0903 -0.1438)
OKLCHoklch(70.04% 0.17 302.1)
XYZxyz(42.9184, 31.8767, 90.2603)
Luminance0.3188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381F5 #C3F581
analogous
#8189F5 #B381F5 #ED81F5
triadic
#B381F5 #F5B381 #81F5B3
tetradic
#B381F5 #F58189 #C3F581 #81F5ED
square
#B381F5 #F58189 #C3F581 #81F5ED
split-complementary
#B381F5 #F5ED81 #89F581
monochromatic
#6F13E9 #9148F0 #B381F5 #D5BAF9 #EEE3FD

Accessibility & contrast

On white

2.85
#B381F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#B381F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381F5
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381F5#FFFFFF#000000##000000
##B381F51.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E98F9
Deuteranopia (green-blind)
#6B99F2
Tritanopia (blue-blind)
#A796AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b381f5;
/* rgb */ color: rgb(179, 129, 245);
/* oklch */ color: oklch(70.0% 0.170 302.1);
Tailwind
colors: {
  custom: {
    50: '#cca6f9',
    500: '#b381f5',
    950: '#000000',
  },
}
SCSS
$custom: #b381f5;
$custom-light: #cca6f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b381f5",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 245
  },
  "hsl": {
    "h": 265.862,
    "s": 85.294,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70036,
    "c": 0.16979,
    "h": 302.1
  },
  "luminance": 0.31877
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B381F5

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

Preview Lab → · Contrast checker → · Palette generator →

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