#B787FE#B787FE

#B787FE is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.9% C 0.172 H 300.8°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#B787FE
RGBrgb(183, 135, 254)
HSLhsl(264, 98%, 76%)
HSVhsv(264, 47%, 100%)
CMYKcmyk(28%, 46.9%, 0%, 0.4%)
CIE-LABlab(65.40, 41.93, -52.75)
CIE-LCHlch(65.40, 67.39, 308.48°)
OKLaboklab(71.89% 0.0882 -0.1481)
OKLCHoklch(71.89% 0.172 300.8)
XYZxyz(46.0777, 34.5508, 97.9882)
Luminance0.3455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787FE #CEFE87
analogous
#8793FE #B787FE #F387FE
triadic
#B787FE #FEB787 #87FEB7
tetradic
#B787FE #FE8793 #CEFE87 #87FEF3
square
#B787FE #FE8793 #CEFE87 #87FEF3
split-complementary
#B787FE #FEF387 #93FE87
monochromatic
#6E0EFD #934AFD #B787FE #DBC4FF #EDE1FF

Accessibility & contrast

On white

2.65
#B787FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#B787FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787FE
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787FE#FFFFFF#000000##000000
##B787FE1.002.657.917.91
#FFFFFF2.651.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#639EFF
Deuteranopia (green-blind)
#6E9EFB
Tritanopia (blue-blind)
#A99CB7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b787fe;
/* rgb */ color: rgb(183, 135, 254);
/* oklch */ color: oklch(71.9% 0.172 300.8);
Tailwind
colors: {
  custom: {
    50: '#cfabff',
    500: '#b787fe',
    950: '#000000',
  },
}
SCSS
$custom: #b787fe;
$custom-light: #cfabff;
$custom-dark: #000000;
JSON
{
  "hex": "#b787fe",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 264.202,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.71886,
    "c": 0.17236,
    "h": 300.8
  },
  "luminance": 0.34551
}

Semantic roles & 50–950 ramp

primary
#B787FE
secondary
#E9F7D4
accent
#E60089
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B787FE

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

Preview Lab → · Contrast checker → · Palette generator →

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