#B786EF#B786EF

#B786EF is a light, vivid violet. Relative luminance 0.333; OKLCH L 70.9% C 0.155 H 304.3°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#B786EF
RGBrgb(183, 134, 239)
HSLhsl(268, 77%, 73%)
HSVhsv(268, 44%, 94%)
CMYKcmyk(23.4%, 43.9%, 0%, 6.3%)
CIE-LABlab(64.44, 38.97, -46.02)
CIE-LCHlch(64.44, 60.30, 310.25°)
OKLaboklab(70.93% 0.0875 -0.1285)
OKLCHoklch(70.93% 0.155 304.3)
XYZxyz(43.6302, 33.3496, 85.7832)
Luminance0.3335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786EF #BEEF86
analogous
#8689EF #B786EF #EB86EF
triadic
#B786EF #EFB786 #86EFB7
tetradic
#B786EF #EF8689 #BEEF86 #86EFEB
square
#B786EF #EF8689 #BEEF86 #86EFEB
split-complementary
#B786EF #EFEB86 #89EF86
monochromatic
#771DDD #9750E8 #B786EF #D7BCF6 #EFE4FB

Accessibility & contrast

On white

2.74
#B786EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#B786EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786EF
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786EF#FFFFFF#000000##000000
##B786EF1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF3
Deuteranopia (green-blind)
#769CEC
Tritanopia (blue-blind)
#AE98AF
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b786ef;
/* rgb */ color: rgb(183, 134, 239);
/* oklch */ color: oklch(70.9% 0.155 304.3);
Tailwind
colors: {
  custom: {
    50: '#ceaaf4',
    500: '#b786ef',
    950: '#000000',
  },
}
SCSS
$custom: #b786ef;
$custom-light: #ceaaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b786ef",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 239
  },
  "hsl": {
    "h": 268,
    "s": 76.642,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70931,
    "c": 0.15548,
    "h": 304.3
  },
  "luminance": 0.33349
}

Semantic roles & 50–950 ramp

primary
#B786EF
secondary
#E6F3D8
accent
#D90D7A
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B786EF

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

Preview Lab → · Contrast checker → · Palette generator →

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