#B786FB#B786FB

#B786FB is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.6% C 0.170 H 301.6°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#B786FB
RGBrgb(183, 134, 251)
HSLhsl(265, 94%, 75%)
HSVhsv(265, 47%, 98%)
CMYKcmyk(27.1%, 46.6%, 0%, 1.6%)
CIE-LABlab(65.03, 41.77, -51.70)
CIE-LCHlch(65.03, 66.46, 308.94°)
OKLaboklab(71.56% 0.0891 -0.145)
OKLCHoklch(71.56% 0.17 301.6)
XYZxyz(45.4622, 34.0824, 95.4316)
Luminance0.3408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786FB #CAFB86
analogous
#868FFB #B786FB #F186FB
triadic
#B786FB #FBB786 #86FBB7
tetradic
#B786FB #FB868F #CAFB86 #86FBF1
square
#B786FB #FB868F #CAFB86 #86FBF1
split-complementary
#B786FB #FBF186 #8FFB86
monochromatic
#7010F7 #944BF9 #B786FB #DAC1FD #EDE1FE

Accessibility & contrast

On white

2.69
#B786FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#B786FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786FB
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786FB#FFFFFF#000000##000000
##B786FB1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#6F9DF8
Tritanopia (blue-blind)
#AA9BB5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b786fb;
/* rgb */ color: rgb(183, 134, 251);
/* oklch */ color: oklch(71.6% 0.170 301.6);
Tailwind
colors: {
  custom: {
    50: '#cfaafd',
    500: '#b786fb',
    950: '#000000',
  },
}
SCSS
$custom: #b786fb;
$custom-light: #cfaafd;
$custom-dark: #000000;
JSON
{
  "hex": "#b786fb",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 251
  },
  "hsl": {
    "h": 265.128,
    "s": 93.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71561,
    "c": 0.17022,
    "h": 301.6
  },
  "luminance": 0.34083
}

Semantic roles & 50–950 ramp

primary
#B786FB
secondary
#E8F6D5
accent
#E60085
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B786FB

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

Preview Lab → · Contrast checker → · Palette generator →

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