#B786EC#B786EC

#B786EC is a light, vivid violet. Relative luminance 0.332; OKLCH L 70.8% C 0.152 H 305.0°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#B786EC
RGBrgb(183, 134, 236)
HSLhsl(269, 73%, 73%)
HSVhsv(269, 43%, 93%)
CMYKcmyk(22.5%, 43.2%, 0%, 7.5%)
CIE-LABlab(64.30, 38.28, -44.59)
CIE-LCHlch(64.30, 58.77, 310.64°)
OKLaboklab(70.78% 0.087 -0.1244)
OKLCHoklch(70.78% 0.152 305)
XYZxyz(43.1907, 33.1738, 83.4684)
Luminance0.3317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786EC #BBEC86
analogous
#8688EC #B786EC #EA86EC
triadic
#B786EC #ECB786 #86ECB7
tetradic
#B786EC #EC8688 #BBEC86 #86ECEA
square
#B786EC #EC8688 #BBEC86 #86ECEA
split-complementary
#B786EC #ECEA86 #88EC86
monochromatic
#7822D6 #9851E4 #B786EC #D6BBF4 #EFE5FB

Accessibility & contrast

On white

2.75
#B786EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#B786EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786EC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786EC#FFFFFF#000000##000000
##B786EC1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9AF0
Deuteranopia (green-blind)
#789CE9
Tritanopia (blue-blind)
#AF97AE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b786ec;
/* rgb */ color: rgb(183, 134, 236);
/* oklch */ color: oklch(70.8% 0.152 305.0);
Tailwind
colors: {
  custom: {
    50: '#ceaaf2',
    500: '#b786ec',
    950: '#000000',
  },
}
SCSS
$custom: #b786ec;
$custom-light: #ceaaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b786ec",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 236
  },
  "hsl": {
    "h": 268.824,
    "s": 72.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.70779,
    "c": 0.15179,
    "h": 305
  },
  "luminance": 0.33174
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B786EC

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

Preview Lab → · Contrast checker → · Palette generator →

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