#B787EF#B787EF

#B787EF is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.1% C 0.154 H 304.0°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#B787EF
RGBrgb(183, 135, 239)
HSLhsl(268, 76%, 73%)
HSVhsv(268, 44%, 94%)
CMYKcmyk(23.4%, 43.5%, 0%, 6.3%)
CIE-LABlab(64.67, 38.41, -45.67)
CIE-LCHlch(64.67, 59.68, 310.07°)
OKLaboklab(71.1% 0.0861 -0.1275)
OKLCHoklch(71.1% 0.154 304)
XYZxyz(43.7691, 33.6274, 85.8295)
Luminance0.3363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787EF #BFEF87
analogous
#878BEF #B787EF #EB87EF
triadic
#B787EF #EFB787 #87EFB7
tetradic
#B787EF #EF878B #BFEF87 #87EFEB
square
#B787EF #EF878B #BFEF87 #87EFEB
split-complementary
#B787EF #EFEB87 #8BEF87
monochromatic
#761EDE #9751E8 #B787EF #D7BDF6 #EFE4FB

Accessibility & contrast

On white

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

On black

7.73
#B787EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787EF
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787EF#FFFFFF#000000##000000
##B787EF1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9CF3
Deuteranopia (green-blind)
#779DEC
Tritanopia (blue-blind)
#AE98B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b787ef;
/* rgb */ color: rgb(183, 135, 239);
/* oklch */ color: oklch(71.1% 0.154 304.0);
Tailwind
colors: {
  custom: {
    50: '#ceabf4',
    500: '#b787ef',
    950: '#000000',
  },
}
SCSS
$custom: #b787ef;
$custom-light: #ceabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b787ef",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 267.692,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.71099,
    "c": 0.15387,
    "h": 304
  },
  "luminance": 0.33627
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B787EF

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

Preview Lab → · Contrast checker → · Palette generator →

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