#B787EC#B787EC

#B787EC is a light, vivid violet. Relative luminance 0.335; OKLCH L 70.9% C 0.150 H 304.8°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#B787EC
RGBrgb(183, 135, 236)
HSLhsl(269, 73%, 73%)
HSVhsv(269, 43%, 93%)
CMYKcmyk(22.5%, 42.8%, 0%, 7.5%)
CIE-LABlab(64.52, 37.72, -44.24)
CIE-LCHlch(64.52, 58.14, 310.46°)
OKLaboklab(70.95% 0.0857 -0.1233)
OKLCHoklch(70.95% 0.15 304.8)
XYZxyz(43.3296, 33.4516, 83.5147)
Luminance0.3345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787EC #BCEC87
analogous
#8789EC #B787EC #EA87EC
triadic
#B787EC #ECB787 #87ECB7
tetradic
#B787EC #EC8789 #BCEC87 #87ECEA
square
#B787EC #EC8789 #BCEC87 #87ECEA
split-complementary
#B787EC #ECEA87 #89EC87
monochromatic
#7822D7 #9752E4 #B787EC #D7BCF4 #EFE5FB

Accessibility & contrast

On white

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

On black

7.69
#B787EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787EC
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787EC#FFFFFF#000000##000000
##B787EC1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9BF0
Deuteranopia (green-blind)
#799DE9
Tritanopia (blue-blind)
#AF98AE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b787ec;
/* rgb */ color: rgb(183, 135, 236);
/* oklch */ color: oklch(70.9% 0.150 304.8);
Tailwind
colors: {
  custom: {
    50: '#ceabf2',
    500: '#b787ec',
    950: '#000000',
  },
}
SCSS
$custom: #b787ec;
$custom-light: #ceabf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b787ec",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 268.515,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.70947,
    "c": 0.15017,
    "h": 304.8
  },
  "luminance": 0.33451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B787EC

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

Preview Lab → · Contrast checker → · Palette generator →

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