#B381FC#B381FC

#B381FC is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.4% C 0.178 H 300.7°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#B381FC
RGBrgb(179, 129, 252)
HSLhsl(264, 95%, 75%)
HSVhsv(264, 49%, 99%)
CMYKcmyk(29%, 48.8%, 0%, 1.2%)
CIE-LABlab(63.60, 43.71, -54.53)
CIE-LCHlch(63.60, 69.89, 308.71°)
OKLaboklab(70.42% 0.091 -0.1534)
OKLCHoklch(70.42% 0.178 300.7)
XYZxyz(44.0073, 32.3123, 95.9950)
Luminance0.3231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381FC #CAFC81
analogous
#818DFC #B381FC #F081FC
triadic
#B381FC #FCB381 #81FCB3
tetradic
#B381FC #FC818D #CAFC81 #81FCF0
square
#B381FC #FC818D #CAFC81 #81FCF0
split-complementary
#B381FC #FCF081 #8DFC81
monochromatic
#6B09F9 #8F45FB #B381FC #D7BDFD #EDE1FE

Accessibility & contrast

On white

2.81
#B381FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#B381FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381FC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381FC#FFFFFF#000000##000000
##B381FC1.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#6699F9
Tritanopia (blue-blind)
#A598B3
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b381fc;
/* rgb */ color: rgb(179, 129, 252);
/* oklch */ color: oklch(70.4% 0.178 300.7);
Tailwind
colors: {
  custom: {
    50: '#cda6fe',
    500: '#b381fc',
    950: '#000000',
  },
}
SCSS
$custom: #b381fc;
$custom-light: #cda6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b381fc",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 264.39,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.7042,
    "c": 0.17835,
    "h": 300.7
  },
  "luminance": 0.32312
}

Semantic roles & 50–950 ramp

primary
#B381FC
secondary
#E9F7D4
accent
#E60088
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B381FC

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

Preview Lab → · Contrast checker → · Palette generator →

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