#B786FE#B786FE

#B786FE is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.7% C 0.174 H 301.0°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#B786FE
RGBrgb(183, 134, 254)
HSLhsl(265, 98%, 76%)
HSVhsv(265, 47%, 100%)
CMYKcmyk(28%, 47.2%, 0%, 0.4%)
CIE-LABlab(65.18, 42.48, -53.10)
CIE-LCHlch(65.18, 68.00, 308.66°)
OKLaboklab(71.72% 0.0895 -0.1491)
OKLCHoklch(71.72% 0.174 301)
XYZxyz(45.9388, 34.2731, 97.9419)
Luminance0.3427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786FE #CDFE86
analogous
#8691FE #B786FE #F386FE
triadic
#B786FE #FEB786 #86FEB7
tetradic
#B786FE #FE8691 #CDFE86 #86FEF3
square
#B786FE #FE8691 #CDFE86 #86FEF3
split-complementary
#B786FE #FEF386 #91FE86
monochromatic
#6F0DFD #9349FD #B786FE #DBC3FF #EDE1FF

Accessibility & contrast

On white

2.67
#B786FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#B786FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786FE
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786FE#FFFFFF#000000##000000
##B786FE1.002.677.857.85
#FFFFFF2.671.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#619EFF
Deuteranopia (green-blind)
#6D9EFB
Tritanopia (blue-blind)
#A99CB6
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b786fe;
/* rgb */ color: rgb(183, 134, 254);
/* oklch */ color: oklch(71.7% 0.174 301.0);
Tailwind
colors: {
  custom: {
    50: '#cfaaff',
    500: '#b786fe',
    950: '#000000',
  },
}
SCSS
$custom: #b786fe;
$custom-light: #cfaaff;
$custom-dark: #000000;
JSON
{
  "hex": "#b786fe",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 254
  },
  "hsl": {
    "h": 264.5,
    "s": 98.361,
    "l": 76.078
  },
  "oklch": {
    "l": 0.71722,
    "c": 0.1739,
    "h": 301
  },
  "luminance": 0.34273
}

Semantic roles & 50–950 ramp

primary
#B786FE
secondary
#E9F7D4
accent
#E60088
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B786FE

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

Preview Lab → · Contrast checker → · Palette generator →

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