#B786F2#B786F2

#B786F2 is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.1% C 0.159 H 303.5°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#B786F2
RGBrgb(183, 134, 242)
HSLhsl(267, 81%, 74%)
HSVhsv(267, 45%, 95%)
CMYKcmyk(24.4%, 44.6%, 0%, 5.1%)
CIE-LABlab(64.59, 39.66, -47.45)
CIE-LCHlch(64.59, 61.84, 309.89°)
OKLaboklab(71.09% 0.088 -0.1327)
OKLCHoklch(71.09% 0.159 303.5)
XYZxyz(44.0771, 33.5284, 88.1367)
Luminance0.3353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B786F2 #C1F286
analogous
#868BF2 #B786F2 #ED86F2
triadic
#B786F2 #F2B786 #86F2B7
tetradic
#B786F2 #F2868B #C1F286 #86F2ED
square
#B786F2 #F2868B #C1F286 #86F2ED
split-complementary
#B786F2 #F2ED86 #8BF286
monochromatic
#7519E5 #964FEC #B786F2 #D8BDF8 #EFE3FC

Accessibility & contrast

On white

2.73
#B786F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#B786F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B786F2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B786F2#FFFFFF#000000##000000
##B786F21.002.737.717.71
#FFFFFF2.731.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#699BF6
Deuteranopia (green-blind)
#759DEF
Tritanopia (blue-blind)
#AD98B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b786f2;
/* rgb */ color: rgb(183, 134, 242);
/* oklch */ color: oklch(71.1% 0.159 303.5);
Tailwind
colors: {
  custom: {
    50: '#cfaaf7',
    500: '#b786f2',
    950: '#000000',
  },
}
SCSS
$custom: #b786f2;
$custom-light: #cfaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b786f2",
  "rgb": {
    "r": 183,
    "g": 134,
    "b": 242
  },
  "hsl": {
    "h": 267.222,
    "s": 80.597,
    "l": 73.725
  },
  "oklch": {
    "l": 0.71086,
    "c": 0.15917,
    "h": 303.5
  },
  "luminance": 0.33528
}

Semantic roles & 50–950 ramp

primary
#B786F2
secondary
#E7F4D7
accent
#DD097D
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B786F2

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

Preview Lab → · Contrast checker → · Palette generator →

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