#B381DC#B381DC

#B381DC is a light, vivid violet. Relative luminance 0.305; OKLCH L 68.7% C 0.139 H 308.4°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#B381DC
RGBrgb(179, 129, 220)
HSLhsl(273, 57%, 68%)
HSVhsv(273, 41%, 86%)
CMYKcmyk(18.6%, 41.4%, 0%, 13.7%)
CIE-LABlab(62.04, 36.29, -39.28)
CIE-LCHlch(62.04, 53.48, 312.73°)
OKLaboklab(68.75% 0.0865 -0.1091)
OKLCHoklch(68.75% 0.139 308.4)
XYZxyz(39.3565, 30.4520, 71.5008)
Luminance0.3045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381DC #AADC81
analogous
#8581DC #B381DC #DC81D7
triadic
#B381DC #DCB381 #81DCB3
tetradic
#B381DC #DC8581 #AADC81 #81D7DC
square
#B381DC #DC8581 #AADC81 #81D7DC
split-complementary
#B381DC #D7DC81 #81DC85
monochromatic
#7831B1 #9651CF #B381DC #D0B1E9 #EDE1F7

Accessibility & contrast

On white

2.96
#B381DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#B381DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381DC
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381DC#FFFFFF#000000##000000
##B381DC1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D94DF
Deuteranopia (green-blind)
#7997DA
Tritanopia (blue-blind)
#AE8FA4
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b381dc;
/* rgb */ color: rgb(179, 129, 220);
/* oklch */ color: oklch(68.7% 0.139 308.4);
Tailwind
colors: {
  custom: {
    50: '#cba6e7',
    500: '#b381dc',
    950: '#000000',
  },
}
SCSS
$custom: #b381dc;
$custom-light: #cba6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b381dc",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 272.967,
    "s": 56.522,
    "l": 68.431
  },
  "oklch": {
    "l": 0.68745,
    "c": 0.13923,
    "h": 308.4
  },
  "luminance": 0.30452
}

Semantic roles & 50–950 ramp

primary
#B381DC
secondary
#DBEACF
accent
#C4216B
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #B381DC

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

Preview Lab → · Contrast checker → · Palette generator →

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