#B787E7#B787E7

#B787E7 is a light, vivid violet. Relative luminance 0.332; OKLCH L 70.7% C 0.144 H 306.1°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#B787E7
RGBrgb(183, 135, 231)
HSLhsl(270, 67%, 72%)
HSVhsv(270, 42%, 91%)
CMYKcmyk(20.8%, 41.6%, 0%, 9.4%)
CIE-LABlab(64.29, 36.59, -41.84)
CIE-LCHlch(64.29, 55.58, 311.17°)
OKLaboklab(70.7% 0.0848 -0.1164)
OKLCHoklch(70.7% 0.144 306.1)
XYZxyz(42.6133, 33.1650, 79.7424)
Luminance0.3317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787E7 #B7E787
analogous
#8787E7 #B787E7 #E787E7
triadic
#B787E7 #E7B787 #87E7B7
tetradic
#B787E7 #E78787 #B7E787 #87E7E7
square
#B787E7 #E78787 #B7E787 #87E7E7
split-complementary
#B787E7 #E7E787 #87E787
monochromatic
#7A29CB #9854DD #B787E7 #D6BAF1 #F0E5FA

Accessibility & contrast

On white

2.75
#B787E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#B787E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787E7
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787E7#FFFFFF#000000##000000
##B787E71.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#709AEB
Deuteranopia (green-blind)
#7C9CE4
Tritanopia (blue-blind)
#B096AC
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b787e7;
/* rgb */ color: rgb(183, 135, 231);
/* oklch */ color: oklch(70.7% 0.144 306.1);
Tailwind
colors: {
  custom: {
    50: '#ceaaef',
    500: '#b787e7',
    950: '#000000',
  },
}
SCSS
$custom: #b787e7;
$custom-light: #ceaaef;
$custom-dark: #000000;
JSON
{
  "hex": "#b787e7",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 231
  },
  "hsl": {
    "h": 270,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.70698,
    "c": 0.14401,
    "h": 306.1
  },
  "luminance": 0.33165
}

Semantic roles & 50–950 ramp

primary
#B787E7
secondary
#E5F1D9
accent
#CF1773
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #B787E7

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

Preview Lab → · Contrast checker → · Palette generator →

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