#B787FA#B787FA

#B787FA is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.7% C 0.167 H 301.6°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#B787FA
RGBrgb(183, 135, 250)
HSLhsl(265, 92%, 75%)
HSVhsv(265, 46%, 98%)
CMYKcmyk(26.8%, 46%, 0%, 2%)
CIE-LABlab(65.20, 40.98, -50.88)
CIE-LCHlch(65.20, 65.33, 308.85°)
OKLaboklab(71.67% 0.0877 -0.1426)
OKLCHoklch(71.67% 0.167 301.6)
XYZxyz(45.4438, 34.2973, 94.6499)
Luminance0.3430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787FA #CAFA87
analogous
#8791FA #B787FA #F087FA
triadic
#B787FA #FAB787 #87FAB7
tetradic
#B787FA #FA8791 #CAFA87 #87FAF0
square
#B787FA #FA8791 #CAFA87 #87FAF0
split-complementary
#B787FA #FAF087 #91FA87
monochromatic
#7011F5 #944CF8 #B787FA #DAC2FC #EDE2FE

Accessibility & contrast

On white

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

On black

7.86
#B787FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787FA
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787FA#FFFFFF#000000##000000
##B787FA1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFE
Deuteranopia (green-blind)
#719EF7
Tritanopia (blue-blind)
#AB9BB5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b787fa;
/* rgb */ color: rgb(183, 135, 250);
/* oklch */ color: oklch(71.7% 0.167 301.6);
Tailwind
colors: {
  custom: {
    50: '#cfabfc',
    500: '#b787fa',
    950: '#000000',
  },
}
SCSS
$custom: #b787fa;
$custom-light: #cfabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b787fa",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 265.043,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71672,
    "c": 0.16744,
    "h": 301.6
  },
  "luminance": 0.34297
}

Semantic roles & 50–950 ramp

primary
#B787FA
secondary
#E8F6D5
accent
#E60086
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B787FA

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

Preview Lab → · Contrast checker → · Palette generator →

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