#B381F8#B381F8

#B381F8 is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.2% C 0.173 H 301.5°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#B381F8
RGBrgb(179, 129, 248)
HSLhsl(265, 89%, 74%)
HSVhsv(265, 48%, 97%)
CMYKcmyk(27.8%, 48%, 0%, 2.7%)
CIE-LABlab(63.39, 42.75, -52.66)
CIE-LCHlch(63.39, 67.83, 309.07°)
OKLaboklab(70.2% 0.0906 -0.1479)
OKLCHoklch(70.2% 0.173 301.5)
XYZxyz(43.3801, 32.0614, 92.6918)
Luminance0.3206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381F8 #C6F881
analogous
#818BF8 #B381F8 #EF81F8
triadic
#B381F8 #F8B381 #81F8B3
tetradic
#B381F8 #F8818B #C6F881 #81F8EF
square
#B381F8 #F8818B #C6F881 #81F8EF
split-complementary
#B381F8 #F8EF81 #8BF881
monochromatic
#6D0DF1 #9047F5 #B381F8 #D6BBFB #EEE2FD

Accessibility & contrast

On white

2.83
#B381F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#B381F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381F8
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381F8#FFFFFF#000000##000000
##B381F81.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C99FC
Deuteranopia (green-blind)
#6999F5
Tritanopia (blue-blind)
#A697B1
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b381f8;
/* rgb */ color: rgb(179, 129, 248);
/* oklch */ color: oklch(70.2% 0.173 301.5);
Tailwind
colors: {
  custom: {
    50: '#cca6fb',
    500: '#b381f8',
    950: '#000000',
  },
}
SCSS
$custom: #b381f8;
$custom-light: #cca6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b381f8",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 265.21,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70199,
    "c": 0.17346,
    "h": 301.5
  },
  "luminance": 0.32062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B381F8

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

Preview Lab → · Contrast checker → · Palette generator →

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