#B786F3#B786F3

#B786F3 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.1% C 0.160 H 303.3°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#B786F3
RGBrgb(183, 134, 243)
HSLhsl(267, 82%, 74%)
HSVhsv(267, 45%, 95%)
CMYKcmyk(24.7%, 44.9%, 0%, 4.7%)
CIE-LABlab(64.63, 39.89, -47.92)
CIE-LCHlch(64.63, 62.36, 309.77°)
OKLaboklab(71.14% 0.0881 -0.134)
OKLCHoklch(71.14% 0.16 303.3)
XYZxyz(44.2277, 33.5886, 88.9299)
Luminance0.3359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786F3 #C2F386
analogous
#868CF3 #B786F3 #ED86F3
triadic
#B786F3 #F3B786 #86F3B7
tetradic
#B786F3 #F3868C #C2F386 #86F3ED
square
#B786F3 #F3868C #C2F386 #86F3ED
split-complementary
#B786F3 #F3ED86 #8CF386
monochromatic
#7517E8 #964EED #B786F3 #D8BEF9 #EEE3FC

Accessibility & contrast

On white

2.72
#B786F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#B786F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786F3
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786F3#FFFFFF#000000##000000
##B786F31.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#689CF7
Deuteranopia (green-blind)
#749DF0
Tritanopia (blue-blind)
#AD99B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b786f3;
/* rgb */ color: rgb(183, 134, 243);
/* oklch */ color: oklch(71.1% 0.160 303.3);
Tailwind
colors: {
  custom: {
    50: '#cfaaf7',
    500: '#b786f3',
    950: '#000000',
  },
}
SCSS
$custom: #b786f3;
$custom-light: #cfaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b786f3",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 243
  },
  "hsl": {
    "h": 266.972,
    "s": 81.955,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71138,
    "c": 0.1604,
    "h": 303.3
  },
  "luminance": 0.33589
}

Semantic roles & 50–950 ramp

primary
#B786F3
secondary
#E7F4D7
accent
#DE077E
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B786F3

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

Preview Lab → · Contrast checker → · Palette generator →

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