#B387EE#B387EE

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

Color values

HEX#B387EE
RGBrgb(179, 135, 238)
HSLhsl(266, 75%, 73%)
HSVhsv(266, 43%, 93%)
CMYKcmyk(24.8%, 43.3%, 0%, 6.7%)
CIE-LABlab(64.23, 37.08, -45.84)
CIE-LCHlch(64.23, 58.95, 308.97°)
OKLaboklab(70.67% 0.0813 -0.1281)
OKLCHoklch(70.67% 0.152 302.4)
XYZxyz(42.6836, 33.0847, 85.0096)
Luminance0.3308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B387EE #C2EE87
analogous
#878EEE #B387EE #E687EE
triadic
#B387EE #EEB387 #87EEB3
tetradic
#B387EE #EE878E #C2EE87 #87EEE6
square
#B387EE #EE878E #C2EE87 #87EEE6
split-complementary
#B387EE #EEE687 #8EEE87
monochromatic
#701FDC #9151E6 #B387EE #D5BDF6 #EEE4FB

Accessibility & contrast

On white

2.76
#B387EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#B387EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B387EE
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B387EE#FFFFFF#000000##000000
##B387EE1.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9BF2
Deuteranopia (green-blind)
#759BEB
Tritanopia (blue-blind)
#A999AF
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b387ee;
/* rgb */ color: rgb(179, 135, 238);
/* oklch */ color: oklch(70.7% 0.152 302.4);
Tailwind
colors: {
  custom: {
    50: '#ccaaf4',
    500: '#b387ee',
    950: '#000000',
  },
}
SCSS
$custom: #b387ee;
$custom-light: #ccaaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b387ee",
  "rgb": {
    "r": 179,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 265.631,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70665,
    "c": 0.15166,
    "h": 302.4
  },
  "luminance": 0.33085
}

Semantic roles & 50–950 ramp

primary
#B387EE
secondary
#E7F3D8
accent
#D70E81
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B387EE

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

Preview Lab → · Contrast checker → · Palette generator →

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