#B786FA#B786FA

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

Color values

HEX#B786FA
RGBrgb(183, 134, 250)
HSLhsl(265, 92%, 75%)
HSVhsv(265, 46%, 98%)
CMYKcmyk(26.8%, 46.4%, 0%, 2%)
CIE-LABlab(64.98, 41.53, -51.23)
CIE-LCHlch(64.98, 65.95, 309.03°)
OKLaboklab(71.51% 0.089 -0.1436)
OKLCHoklch(71.51% 0.169 301.8)
XYZxyz(45.3050, 34.0195, 94.6036)
Luminance0.3402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786FA #C9FA86
analogous
#868FFA #B786FA #F186FA
triadic
#B786FA #FAB786 #86FAB7
tetradic
#B786FA #FA868F #C9FA86 #86FAF1
square
#B786FA #FA868F #C9FA86 #86FAF1
split-complementary
#B786FA #FAF186 #8FFA86
monochromatic
#7110F5 #944BF8 #B786FA #DAC1FC #EEE2FE

Accessibility & contrast

On white

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

On black

7.80
#B786FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786FA
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786FA#FFFFFF#000000##000000
##B786FA1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#649DFE
Deuteranopia (green-blind)
#709DF7
Tritanopia (blue-blind)
#AB9BB4
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b786fa;
/* rgb */ color: rgb(183, 134, 250);
/* oklch */ color: oklch(71.5% 0.169 301.8);
Tailwind
colors: {
  custom: {
    50: '#cfaafc',
    500: '#b786fa',
    950: '#000000',
  },
}
SCSS
$custom: #b786fa;
$custom-light: #cfaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#b786fa",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 250
  },
  "hsl": {
    "h": 265.345,
    "s": 92.063,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71507,
    "c": 0.169,
    "h": 301.8
  },
  "luminance": 0.3402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B786FA

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

Preview Lab → · Contrast checker → · Palette generator →

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