#B786EA#B786EA

#B786EA is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.7% C 0.149 H 305.5°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#B786EA
RGBrgb(183, 134, 234)
HSLhsl(269, 70%, 72%)
HSVhsv(269, 43%, 92%)
CMYKcmyk(21.8%, 42.7%, 0%, 8.2%)
CIE-LABlab(64.21, 37.82, -43.63)
CIE-LCHlch(64.21, 57.74, 310.92°)
OKLaboklab(70.68% 0.0867 -0.1216)
OKLCHoklch(70.68% 0.149 305.5)
XYZxyz(42.9018, 33.0582, 81.9467)
Luminance0.3306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786EA #B9EA86
analogous
#8687EA #B786EA #E986EA
triadic
#B786EA #EAB786 #86EAB7
tetradic
#B786EA #EA8687 #B9EA86 #86EAE9
square
#B786EA #EA8687 #B9EA86 #86EAE9
split-complementary
#B786EA #EAE986 #87EA86
monochromatic
#7924D1 #9852E1 #B786EA #D6BAF3 #EFE5FA

Accessibility & contrast

On white

2.76
#B786EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#B786EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786EA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786EA#FFFFFF#000000##000000
##B786EA1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9AEE
Deuteranopia (green-blind)
#799CE7
Tritanopia (blue-blind)
#AF96AD
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b786ea;
/* rgb */ color: rgb(183, 134, 234);
/* oklch */ color: oklch(70.7% 0.149 305.5);
Tailwind
colors: {
  custom: {
    50: '#ceaaf1',
    500: '#b786ea',
    950: '#000000',
  },
}
SCSS
$custom: #b786ea;
$custom-light: #ceaaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b786ea",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 234
  },
  "hsl": {
    "h": 269.4,
    "s": 70.423,
    "l": 72.157
  },
  "oklch": {
    "l": 0.70678,
    "c": 0.14933,
    "h": 305.5
  },
  "luminance": 0.33058
}

Semantic roles & 50–950 ramp

primary
#B786EA
secondary
#E6F2D9
accent
#D21375
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B786EA

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

Preview Lab → · Contrast checker → · Palette generator →

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