#B786E6#B786E6

#B786E6 is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.5% C 0.144 H 306.6°. Best body text is #000000 at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#B786E6
RGBrgb(183, 134, 230)
HSLhsl(271, 66%, 71%)
HSVhsv(271, 42%, 90%)
CMYKcmyk(20.4%, 41.7%, 0%, 9.8%)
CIE-LABlab(64.02, 36.91, -41.71)
CIE-LCHlch(64.02, 55.70, 311.51°)
OKLaboklab(70.48% 0.086 -0.116)
OKLCHoklch(70.48% 0.144 306.6)
XYZxyz(42.3336, 32.8310, 78.9544)
Luminance0.3283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786E6 #B5E686
analogous
#8786E6 #B786E6 #E686E5
triadic
#B786E6 #E6B786 #86E6B7
tetradic
#B786E6 #E68786 #B5E686 #86E5E6
square
#B786E6 #E68786 #B5E686 #86E5E6
split-complementary
#B786E6 #E5E686 #86E687
monochromatic
#7A29C8 #9953DC #B786E6 #D5B9F0 #F0E6FA

Accessibility & contrast

On white

2.78
#B786E6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.57
#B786E6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786E6
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786E6#FFFFFF#000000##000000
##B786E61.002.787.577.57
#FFFFFF2.781.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7099EA
Deuteranopia (green-blind)
#7B9CE3
Tritanopia (blue-blind)
#B095AB
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b786e6;
/* rgb */ color: rgb(183, 134, 230);
/* oklch */ color: oklch(70.5% 0.144 306.6);
Tailwind
colors: {
  custom: {
    50: '#ceaaee',
    500: '#b786e6',
    950: '#000000',
  },
}
SCSS
$custom: #b786e6;
$custom-light: #ceaaee;
$custom-dark: #000000;
JSON
{
  "hex": "#b786e6",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 230
  },
  "hsl": {
    "h": 270.625,
    "s": 65.753,
    "l": 71.373
  },
  "oklch": {
    "l": 0.70479,
    "c": 0.14443,
    "h": 306.6
  },
  "luminance": 0.32831
}

Semantic roles & 50–950 ramp

primary
#B786E6
secondary
#E4F0D7
accent
#CE1871
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #B786E6

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

Preview Lab → · Contrast checker → · Palette generator →

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