#B787EE#B787EE

#B787EE is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.0% C 0.153 H 304.3°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#B787EE
RGBrgb(183, 135, 238)
HSLhsl(268, 75%, 73%)
HSVhsv(268, 43%, 93%)
CMYKcmyk(23.1%, 43.3%, 0%, 6.7%)
CIE-LABlab(64.62, 38.18, -45.20)
CIE-LCHlch(64.62, 59.17, 310.19°)
OKLaboklab(71.05% 0.086 -0.1261)
OKLCHoklch(71.05% 0.153 304.3)
XYZxyz(43.6218, 33.5684, 85.0536)
Luminance0.3357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787EE #BEEE87
analogous
#878AEE #B787EE #EA87EE
triadic
#B787EE #EEB787 #87EEB7
tetradic
#B787EE #EE878A #BEEE87 #87EEEA
square
#B787EE #EE878A #BEEE87 #87EEEA
split-complementary
#B787EE #EEEA87 #8AEE87
monochromatic
#771FDC #9751E6 #B787EE #D7BDF6 #EFE4FB

Accessibility & contrast

On white

2.72
#B787EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#B787EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787EE
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787EE#FFFFFF#000000##000000
##B787EE1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9BF2
Deuteranopia (green-blind)
#789DEB
Tritanopia (blue-blind)
#AE98AF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b787ee;
/* rgb */ color: rgb(183, 135, 238);
/* oklch */ color: oklch(71.0% 0.153 304.3);
Tailwind
colors: {
  custom: {
    50: '#ceabf4',
    500: '#b787ee',
    950: '#000000',
  },
}
SCSS
$custom: #b787ee;
$custom-light: #ceabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b787ee",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 267.961,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71048,
    "c": 0.15263,
    "h": 304.3
  },
  "luminance": 0.33568
}

Semantic roles & 50–950 ramp

primary
#B787EE
secondary
#E6F3D8
accent
#D70E7A
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B787EE

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

Preview Lab → · Contrast checker → · Palette generator →

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