#B387EA#B387EA

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

Color values

HEX#B387EA
RGBrgb(179, 135, 234)
HSLhsl(267, 70%, 72%)
HSVhsv(267, 42%, 92%)
CMYKcmyk(23.5%, 42.3%, 0%, 8.2%)
CIE-LABlab(64.04, 36.14, -43.92)
CIE-LCHlch(64.04, 56.88, 309.45°)
OKLaboklab(70.46% 0.0806 -0.1225)
OKLCHoklch(70.46% 0.147 303.3)
XYZxyz(42.1025, 32.8522, 81.9490)
Luminance0.3285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B387EA #BEEA87
analogous
#878CEA #B387EA #E587EA
triadic
#B387EA #EAB387 #87EAB3
tetradic
#B387EA #EA878C #BEEA87 #87EAE5
square
#B387EA #EA878C #BEEA87 #87EAE5
split-complementary
#B387EA #EAE587 #8CEA87
monochromatic
#7225D2 #9253E1 #B387EA #D4BBF3 #EFE5FA

Accessibility & contrast

On white

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

On black

7.57
#B387EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B387EA
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B387EA#FFFFFF#000000##000000
##B387EA1.002.777.577.57
#FFFFFF2.771.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9AEE
Deuteranopia (green-blind)
#789BE7
Tritanopia (blue-blind)
#AA97AD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b387ea;
/* rgb */ color: rgb(179, 135, 234);
/* oklch */ color: oklch(70.5% 0.147 303.3);
Tailwind
colors: {
  custom: {
    50: '#cbaaf1',
    500: '#b387ea',
    950: '#000000',
  },
}
SCSS
$custom: #b387ea;
$custom-light: #cbaaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b387ea",
  "rgb": {
    "r": 179,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 266.667,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70461,
    "c": 0.14665,
    "h": 303.3
  },
  "luminance": 0.32852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B387EA

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

Preview Lab → · Contrast checker → · Palette generator →

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