#B786D9#B786D9

#B786D9 is a light, vivid violet. Relative luminance 0.321; OKLCH L 69.9% C 0.129 H 310.5°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#B786D9
RGBrgb(183, 134, 217)
HSLhsl(275, 52%, 69%)
HSVhsv(275, 38%, 85%)
CMYKcmyk(15.7%, 38.2%, 0%, 14.9%)
CIE-LABlab(63.45, 34.03, -35.38)
CIE-LCHlch(63.45, 49.09, 313.89°)
OKLaboklab(69.86% 0.0835 -0.0978)
OKLCHoklch(69.86% 0.129 310.5)
XYZxyz(40.5757, 32.1278, 69.6959)
Luminance0.3213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786D9 #A8D986
analogous
#8E86D9 #B786D9 #D986D2
triadic
#B786D9 #D9B786 #86D9B7
tetradic
#B786D9 #D98E86 #A8D986 #86D2D9
square
#B786D9 #D98E86 #A8D986 #86D2D9
split-complementary
#B786D9 #D2D986 #86D98E
monochromatic
#7D37AE #9B57CA #B786D9 #D3B5E8 #EEE3F6

Accessibility & contrast

On white

2.83
#B786D9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#B786D9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786D9
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786D9#FFFFFF#000000##000000
##B786D91.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7697DC
Deuteranopia (green-blind)
#819BD7
Tritanopia (blue-blind)
#B392A5
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b786d9;
/* rgb */ color: rgb(183, 134, 217);
/* oklch */ color: oklch(69.9% 0.129 310.5);
Tailwind
colors: {
  custom: {
    50: '#ceaae5',
    500: '#b786d9',
    950: '#000000',
  },
}
SCSS
$custom: #b786d9;
$custom-light: #ceaae5;
$custom-dark: #000000;
JSON
{
  "hex": "#b786d9",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 217
  },
  "hsl": {
    "h": 275.422,
    "s": 52.201,
    "l": 68.824
  },
  "oklch": {
    "l": 0.69856,
    "c": 0.1286,
    "h": 310.5
  },
  "luminance": 0.32127
}

Semantic roles & 50–950 ramp

primary
#B786D9
secondary
#DBEAD1
accent
#C02665
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141015
muted
#827F84

Preview Lab

Preview with #B786D9

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

Preview Lab → · Contrast checker → · Palette generator →

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