#B787EB#B787EB

#B787EB is a light, vivid violet. Relative luminance 0.334; OKLCH L 70.9% C 0.149 H 305.0°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#B787EB
RGBrgb(183, 135, 235)
HSLhsl(269, 71%, 73%)
HSVhsv(269, 43%, 92%)
CMYKcmyk(22.1%, 42.6%, 0%, 7.8%)
CIE-LABlab(64.48, 37.50, -43.76)
CIE-LCHlch(64.48, 57.63, 310.59°)
OKLaboklab(70.9% 0.0855 -0.1219)
OKLCHoklch(70.9% 0.149 305)
XYZxyz(43.1847, 33.3936, 82.7517)
Luminance0.3339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787EB #BBEB87
analogous
#8789EB #B787EB #E987EB
triadic
#B787EB #EBB787 #87EBB7
tetradic
#B787EB #EB8789 #BBEB87 #87EBE9
square
#B787EB #EB8789 #BBEB87 #87EBE9
split-complementary
#B787EB #EBE987 #89EB87
monochromatic
#7823D4 #9853E2 #B787EB #D6BBF4 #EFE5FB

Accessibility & contrast

On white

2.73
#B787EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#B787EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787EB
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787EB#FFFFFF#000000##000000
##B787EB1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9BEF
Deuteranopia (green-blind)
#7A9DE8
Tritanopia (blue-blind)
#AF97AE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b787eb;
/* rgb */ color: rgb(183, 135, 235);
/* oklch */ color: oklch(70.9% 0.149 305.0);
Tailwind
colors: {
  custom: {
    50: '#ceabf2',
    500: '#b787eb',
    950: '#000000',
  },
}
SCSS
$custom: #b787eb;
$custom-light: #ceabf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b787eb",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 268.8,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.70897,
    "c": 0.14894,
    "h": 305
  },
  "luminance": 0.33393
}

Semantic roles & 50–950 ramp

primary
#B787EB
secondary
#E6F2D9
accent
#D31277
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B787EB

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

Preview Lab → · Contrast checker → · Palette generator →

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