#B787EA#B787EA

#B787EA is a light, vivid violet. Relative luminance 0.333; OKLCH L 70.8% C 0.148 H 305.3°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#B787EA
RGBrgb(183, 135, 234)
HSLhsl(269, 70%, 72%)
HSVhsv(269, 42%, 92%)
CMYKcmyk(21.8%, 42.3%, 0%, 8.2%)
CIE-LABlab(64.43, 37.27, -43.28)
CIE-LCHlch(64.43, 57.12, 310.73°)
OKLaboklab(70.85% 0.0853 -0.1206)
OKLCHoklch(70.85% 0.148 305.3)
XYZxyz(43.0406, 33.3360, 81.9930)
Luminance0.3334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787EA #BAEA87
analogous
#8788EA #B787EA #E987EA
triadic
#B787EA #EAB787 #87EAB7
tetradic
#B787EA #EA8788 #BAEA87 #87EAE9
square
#B787EA #EA8788 #BAEA87 #87EAE9
split-complementary
#B787EA #EAE987 #88EA87
monochromatic
#7925D2 #9853E1 #B787EA #D6BBF3 #EFE5FA

Accessibility & contrast

On white

2.74
#B787EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#B787EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787EA
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787EA#FFFFFF#000000##000000
##B787EA1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9BEE
Deuteranopia (green-blind)
#7A9CE7
Tritanopia (blue-blind)
#AF97AD
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b787ea;
/* rgb */ color: rgb(183, 135, 234);
/* oklch */ color: oklch(70.8% 0.148 305.3);
Tailwind
colors: {
  custom: {
    50: '#ceabf1',
    500: '#b787ea',
    950: '#000000',
  },
}
SCSS
$custom: #b787ea;
$custom-light: #ceabf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b787ea",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 269.091,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70847,
    "c": 0.14771,
    "h": 305.3
  },
  "luminance": 0.33336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B787EA

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

Preview Lab → · Contrast checker → · Palette generator →

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