#B786F7#B786F7

#B786F7 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.3% C 0.165 H 302.4°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#B786F7
RGBrgb(183, 134, 247)
HSLhsl(266, 88%, 75%)
HSVhsv(266, 46%, 97%)
CMYKcmyk(25.9%, 45.7%, 0%, 3.1%)
CIE-LABlab(64.83, 40.83, -49.82)
CIE-LCHlch(64.83, 64.41, 309.34°)
OKLaboklab(71.35% 0.0886 -0.1395)
OKLCHoklch(71.35% 0.165 302.4)
XYZxyz(44.8383, 33.8329, 92.1458)
Luminance0.3383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786F7 #C6F786
analogous
#868DF7 #B786F7 #F086F7
triadic
#B786F7 #F7B786 #86F7B7
tetradic
#B786F7 #F7868D #C6F786 #86F7F0
square
#B786F7 #F7868D #C6F786 #86F7F0
split-complementary
#B786F7 #F7F086 #8DF786
monochromatic
#7313EF #954DF3 #B786F7 #D9BFFB #EEE2FD

Accessibility & contrast

On white

2.70
#B786F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#B786F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786F7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786F7#FFFFFF#000000##000000
##B786F71.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CFB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#AC9AB3
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b786f7;
/* rgb */ color: rgb(183, 134, 247);
/* oklch */ color: oklch(71.3% 0.165 302.4);
Tailwind
colors: {
  custom: {
    50: '#cfaafa',
    500: '#b786f7',
    950: '#000000',
  },
}
SCSS
$custom: #b786f7;
$custom-light: #cfaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#b786f7",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 247
  },
  "hsl": {
    "h": 266.018,
    "s": 87.597,
    "l": 74.706
  },
  "oklch": {
    "l": 0.71348,
    "c": 0.16531,
    "h": 302.4
  },
  "luminance": 0.33833
}

Semantic roles & 50–950 ramp

primary
#B786F7
secondary
#E8F5D6
accent
#E40182
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B786F7

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

Preview Lab → · Contrast checker → · Palette generator →

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