#B387EF#B387EF

#B387EF is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.7% C 0.153 H 302.2°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#B387EF
RGBrgb(179, 135, 239)
HSLhsl(265, 76%, 73%)
HSVhsv(265, 44%, 94%)
CMYKcmyk(25.1%, 43.5%, 0%, 6.3%)
CIE-LABlab(64.28, 37.31, -46.31)
CIE-LCHlch(64.28, 59.47, 308.86°)
OKLaboklab(70.72% 0.0814 -0.1294)
OKLCHoklch(70.72% 0.153 302.2)
XYZxyz(42.8309, 33.1436, 85.7855)
Luminance0.3314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B387EF #C3EF87
analogous
#878FEF #B387EF #E787EF
triadic
#B387EF #EFB387 #87EFB3
tetradic
#B387EF #EF878F #C3EF87 #87EFE7
square
#B387EF #EF878F #C3EF87 #87EFE7
split-complementary
#B387EF #EFE787 #8FEF87
monochromatic
#6F1EDE #9151E8 #B387EF #D5BDF6 #EEE4FB

Accessibility & contrast

On white

2.75
#B387EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#B387EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B387EF
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B387EF#FFFFFF#000000##000000
##B387EF1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF3
Deuteranopia (green-blind)
#759CEC
Tritanopia (blue-blind)
#A899B0
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b387ef;
/* rgb */ color: rgb(179, 135, 239);
/* oklch */ color: oklch(70.7% 0.153 302.2);
Tailwind
colors: {
  custom: {
    50: '#ccaaf4',
    500: '#b387ef',
    950: '#000000',
  },
}
SCSS
$custom: #b387ef;
$custom-light: #ccaaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b387ef",
  "rgb": {
    "r": 179,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 265.385,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70716,
    "c": 0.15291,
    "h": 302.2
  },
  "luminance": 0.33144
}

Semantic roles & 50–950 ramp

primary
#B387EF
secondary
#E8F3D8
accent
#D90D82
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B387EF

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

Preview Lab → · Contrast checker → · Palette generator →

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