#B786F9#B786F9

#B786F9 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.5% C 0.168 H 302.0°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#B786F9
RGBrgb(183, 134, 249)
HSLhsl(266, 91%, 75%)
HSVhsv(266, 46%, 98%)
CMYKcmyk(26.5%, 46.2%, 0%, 2.4%)
CIE-LABlab(64.93, 41.30, -50.76)
CIE-LCHlch(64.93, 65.43, 309.13°)
OKLaboklab(71.45% 0.0889 -0.1423)
OKLCHoklch(71.45% 0.168 302)
XYZxyz(45.1486, 33.9570, 93.7800)
Luminance0.3396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786F9 #C8F986
analogous
#868FF9 #B786F9 #F086F9
triadic
#B786F9 #F9B786 #86F9B7
tetradic
#B786F9 #F9868F #C8F986 #86F9F0
square
#B786F9 #F9868F #C8F986 #86F9F0
split-complementary
#B786F9 #F9F086 #8FF986
monochromatic
#7211F3 #944CF6 #B786F9 #DAC0FC #EEE2FE

Accessibility & contrast

On white

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

On black

7.79
#B786F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786F9
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786F9#FFFFFF#000000##000000
##B786F91.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#659DFD
Deuteranopia (green-blind)
#709DF6
Tritanopia (blue-blind)
#AB9AB4
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b786f9;
/* rgb */ color: rgb(183, 134, 249);
/* oklch */ color: oklch(71.5% 0.168 302.0);
Tailwind
colors: {
  custom: {
    50: '#cfaafc',
    500: '#b786f9',
    950: '#000000',
  },
}
SCSS
$custom: #b786f9;
$custom-light: #cfaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#b786f9",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 249
  },
  "hsl": {
    "h": 265.565,
    "s": 90.551,
    "l": 75.098
  },
  "oklch": {
    "l": 0.71454,
    "c": 0.16776,
    "h": 302
  },
  "luminance": 0.33957
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B786F9

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

Preview Lab → · Contrast checker → · Palette generator →

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