#B786F8#B786F8

#B786F8 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.4% C 0.167 H 302.2°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#B786F8
RGBrgb(183, 134, 248)
HSLhsl(266, 89%, 75%)
HSVhsv(266, 46%, 97%)
CMYKcmyk(26.2%, 46%, 0%, 2.7%)
CIE-LABlab(64.88, 41.06, -50.29)
CIE-LCHlch(64.88, 64.92, 309.23°)
OKLaboklab(71.4% 0.0888 -0.1409)
OKLCHoklch(71.4% 0.167 302.2)
XYZxyz(44.9930, 33.8948, 92.9607)
Luminance0.3389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786F8 #C7F886
analogous
#868EF8 #B786F8 #F086F8
triadic
#B786F8 #F8B786 #86F8B7
tetradic
#B786F8 #F8868E #C7F886 #86F8F0
square
#B786F8 #F8868E #C7F886 #86F8F0
split-complementary
#B786F8 #F8F086 #8EF886
monochromatic
#7212F1 #954CF5 #B786F8 #D9C0FB #EEE2FD

Accessibility & contrast

On white

2.70
#B786F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#B786F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786F8
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786F8#FFFFFF#000000##000000
##B786F81.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#659CFC
Deuteranopia (green-blind)
#719DF5
Tritanopia (blue-blind)
#AB9AB3
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b786f8;
/* rgb */ color: rgb(183, 134, 248);
/* oklch */ color: oklch(71.4% 0.167 302.2);
Tailwind
colors: {
  custom: {
    50: '#cfaafb',
    500: '#b786f8',
    950: '#000000',
  },
}
SCSS
$custom: #b786f8;
$custom-light: #cfaafb;
$custom-dark: #000000;
JSON
{
  "hex": "#b786f8",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 248
  },
  "hsl": {
    "h": 265.789,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.71401,
    "c": 0.16654,
    "h": 302.2
  },
  "luminance": 0.33895
}

Semantic roles & 50–950 ramp

primary
#B786F8
secondary
#E8F5D6
accent
#E60083
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B786F8

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

Preview Lab → · Contrast checker → · Palette generator →

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