#B786F5#B786F5

#B786F5 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.2% C 0.163 H 302.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#B786F5
RGBrgb(183, 134, 245)
HSLhsl(266, 85%, 74%)
HSVhsv(266, 45%, 96%)
CMYKcmyk(25.3%, 45.3%, 0%, 3.9%)
CIE-LABlab(64.73, 40.36, -48.87)
CIE-LCHlch(64.73, 63.38, 309.55°)
OKLaboklab(71.24% 0.0884 -0.1368)
OKLCHoklch(71.24% 0.163 302.9)
XYZxyz(44.5314, 33.7101, 90.5292)
Luminance0.3371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786F5 #C4F586
analogous
#868DF5 #B786F5 #EE86F5
triadic
#B786F5 #F5B786 #86F5B7
tetradic
#B786F5 #F5868D #C4F586 #86F5EE
square
#B786F5 #F5868D #C4F586 #86F5EE
split-complementary
#B786F5 #F5EE86 #8DF586
monochromatic
#7415EC #954DF0 #B786F5 #D9BFFA #EEE3FD

Accessibility & contrast

On white

2.71
#B786F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#B786F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786F5
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786F5#FFFFFF#000000##000000
##B786F51.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#679CF9
Deuteranopia (green-blind)
#739DF2
Tritanopia (blue-blind)
#AC99B2
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b786f5;
/* rgb */ color: rgb(183, 134, 245);
/* oklch */ color: oklch(71.2% 0.163 302.9);
Tailwind
colors: {
  custom: {
    50: '#cfaaf9',
    500: '#b786f5',
    950: '#000000',
  },
}
SCSS
$custom: #b786f5;
$custom-light: #cfaaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b786f5",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 245
  },
  "hsl": {
    "h": 266.486,
    "s": 84.733,
    "l": 74.314
  },
  "oklch": {
    "l": 0.71242,
    "c": 0.16285,
    "h": 302.9
  },
  "luminance": 0.3371
}

Semantic roles & 50–950 ramp

primary
#B786F5
secondary
#E7F5D6
accent
#E10480
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B786F5

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

Preview Lab → · Contrast checker → · Palette generator →

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