#B381F7#B381F7

#B381F7 is a light, vivid violet. Relative luminance 0.320; OKLCH L 70.1% C 0.172 H 301.7°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#B381F7
RGBrgb(179, 129, 247)
HSLhsl(265, 88%, 74%)
HSVhsv(265, 48%, 97%)
CMYKcmyk(27.5%, 47.8%, 0%, 3.1%)
CIE-LABlab(63.34, 42.51, -52.20)
CIE-LCHlch(63.34, 67.32, 309.16°)
OKLaboklab(70.15% 0.0905 -0.1466)
OKLCHoklch(70.15% 0.172 301.7)
XYZxyz(43.2254, 31.9995, 91.8769)
Luminance0.3200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381F7 #C5F781
analogous
#818AF7 #B381F7 #EE81F7
triadic
#B381F7 #F7B381 #81F7B3
tetradic
#B381F7 #F7818A #C5F781 #81F7EE
square
#B381F7 #F7818A #C5F781 #81F7EE
split-complementary
#B381F7 #F7EE81 #8AF781
monochromatic
#6E0FEE #9047F3 #B381F7 #D6BBFB #EEE2FD

Accessibility & contrast

On white

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

On black

7.40
#B381F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381F7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381F7#FFFFFF#000000##000000
##B381F71.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D99FB
Deuteranopia (green-blind)
#6999F4
Tritanopia (blue-blind)
#A696B0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b381f7;
/* rgb */ color: rgb(179, 129, 247);
/* oklch */ color: oklch(70.1% 0.172 301.7);
Tailwind
colors: {
  custom: {
    50: '#cca6fa',
    500: '#b381f7',
    950: '#000000',
  },
}
SCSS
$custom: #b381f7;
$custom-light: #cca6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b381f7",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 265.424,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70145,
    "c": 0.17224,
    "h": 301.7
  },
  "luminance": 0.32
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B381F7

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

Preview Lab → · Contrast checker → · Palette generator →

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