#B787FB#B787FB

#B787FB is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.7% C 0.169 H 301.4°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#B787FB
RGBrgb(183, 135, 251)
HSLhsl(265, 94%, 76%)
HSVhsv(265, 46%, 98%)
CMYKcmyk(27.1%, 46.2%, 0%, 1.6%)
CIE-LABlab(65.25, 41.22, -51.35)
CIE-LCHlch(65.25, 65.85, 308.76°)
OKLaboklab(71.73% 0.0878 -0.144)
OKLCHoklch(71.73% 0.169 301.4)
XYZxyz(45.6011, 34.3601, 95.4778)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787FB #CBFB87
analogous
#8791FB #B787FB #F187FB
triadic
#B787FB #FBB787 #87FBB7
tetradic
#B787FB #FB8791 #CBFB87 #87FBF1
square
#B787FB #FB8791 #CBFB87 #87FBF1
split-complementary
#B787FB #FBF187 #91FB87
monochromatic
#7011F7 #934CF9 #B787FB #DBC2FD #EDE1FE

Accessibility & contrast

On white

2.67
#B787FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#B787FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787FB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787FB#FFFFFF#000000##000000
##B787FB1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#709EF8
Tritanopia (blue-blind)
#AA9CB5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b787fb;
/* rgb */ color: rgb(183, 135, 251);
/* oklch */ color: oklch(71.7% 0.169 301.4);
Tailwind
colors: {
  custom: {
    50: '#cfabfd',
    500: '#b787fb',
    950: '#000000',
  },
}
SCSS
$custom: #b787fb;
$custom-light: #cfabfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b787fb",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 264.828,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71725,
    "c": 0.16867,
    "h": 301.4
  },
  "luminance": 0.3436
}

Semantic roles & 50–950 ramp

primary
#B787FB
secondary
#E8F6D5
accent
#E60087
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86

Preview Lab

Preview with #B787FB

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

Preview Lab → · Contrast checker → · Palette generator →

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