#B786FC#B786FC

#B786FC is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.6% C 0.171 H 301.4°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#B786FC
RGBrgb(183, 134, 252)
HSLhsl(265, 95%, 76%)
HSVhsv(265, 47%, 99%)
CMYKcmyk(27.4%, 46.8%, 0%, 1.2%)
CIE-LABlab(65.08, 42.01, -52.16)
CIE-LCHlch(65.08, 66.98, 308.84°)
OKLaboklab(71.61% 0.0893 -0.1464)
OKLCHoklch(71.61% 0.171 301.4)
XYZxyz(45.6202, 34.1456, 96.2639)
Luminance0.3415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786FC #CBFC86
analogous
#8690FC #B786FC #F286FC
triadic
#B786FC #FCB786 #86FCB7
tetradic
#B786FC #FC8690 #CBFC86 #86FCF2
square
#B786FC #FC8690 #CBFC86 #86FCF2
split-complementary
#B786FC #FCF286 #90FC86
monochromatic
#700FF9 #934AFB #B786FC #DBC2FD #EDE1FE

Accessibility & contrast

On white

2.68
#B786FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#B786FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786FC
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786FC#FFFFFF#000000##000000
##B786FC1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#6E9DF9
Tritanopia (blue-blind)
#AA9BB5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b786fc;
/* rgb */ color: rgb(183, 134, 252);
/* oklch */ color: oklch(71.6% 0.171 301.4);
Tailwind
colors: {
  custom: {
    50: '#cfaafe',
    500: '#b786fc',
    950: '#000000',
  },
}
SCSS
$custom: #b786fc;
$custom-light: #cfaafe;
$custom-dark: #000000;
JSON
{
  "hex": "#b786fc",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 252
  },
  "hsl": {
    "h": 264.915,
    "s": 95.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71614,
    "c": 0.17145,
    "h": 301.4
  },
  "luminance": 0.34146
}

Semantic roles & 50–950 ramp

primary
#B786FC
secondary
#E8F6D5
accent
#E60086
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B786FC

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

Preview Lab → · Contrast checker → · Palette generator →

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