#B387EB#B387EB

#B387EB is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.5% C 0.148 H 303.1°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#B387EB
RGBrgb(179, 135, 235)
HSLhsl(266, 71%, 73%)
HSVhsv(266, 43%, 92%)
CMYKcmyk(23.8%, 42.6%, 0%, 7.8%)
CIE-LABlab(64.09, 36.38, -44.40)
CIE-LCHlch(64.09, 57.40, 309.33°)
OKLaboklab(70.51% 0.0808 -0.1239)
OKLCHoklch(70.51% 0.148 303.1)
XYZxyz(42.2465, 32.9099, 82.7077)
Luminance0.3291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B387EB #BFEB87
analogous
#878DEB #B387EB #E587EB
triadic
#B387EB #EBB387 #87EBB3
tetradic
#B387EB #EB878D #BFEB87 #87EBE5
square
#B387EB #EB878D #BFEB87 #87EBE5
split-complementary
#B387EB #EBE587 #8DEB87
monochromatic
#7123D4 #9253E2 #B387EB #D4BBF4 #EEE5FB

Accessibility & contrast

On white

2.77
#B387EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#B387EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B387EB
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B387EB#FFFFFF#000000##000000
##B387EB1.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9AEF
Deuteranopia (green-blind)
#779BE8
Tritanopia (blue-blind)
#A998AE
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b387eb;
/* rgb */ color: rgb(179, 135, 235);
/* oklch */ color: oklch(70.5% 0.148 303.1);
Tailwind
colors: {
  custom: {
    50: '#cbaaf2',
    500: '#b387eb',
    950: '#000000',
  },
}
SCSS
$custom: #b387eb;
$custom-light: #cbaaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b387eb",
  "rgb": {
    "r": 179,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 266.4,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.70512,
    "c": 0.1479,
    "h": 303.1
  },
  "luminance": 0.3291
}

Semantic roles & 50–950 ramp

primary
#B387EB
secondary
#E7F2D9
accent
#D3127E
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #B387EB

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

Preview Lab → · Contrast checker → · Palette generator →

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