#B787F3#B787F3

#B787F3 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.3% C 0.159 H 303.1°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#B787F3
RGBrgb(183, 135, 243)
HSLhsl(267, 82%, 74%)
HSVhsv(267, 44%, 95%)
CMYKcmyk(24.7%, 44.4%, 0%, 4.7%)
CIE-LABlab(64.86, 39.34, -47.58)
CIE-LCHlch(64.86, 61.73, 309.59°)
OKLaboklab(71.3% 0.0867 -0.133)
OKLCHoklch(71.3% 0.159 303.1)
XYZxyz(44.3666, 33.8663, 88.9762)
Luminance0.3387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787F3 #C3F387
analogous
#878DF3 #B787F3 #ED87F3
triadic
#B787F3 #F3B787 #87F3B7
tetradic
#B787F3 #F3878D #C3F387 #87F3ED
square
#B787F3 #F3878D #C3F387 #87F3ED
split-complementary
#B787F3 #F3ED87 #8DF387
monochromatic
#7418E8 #964FED #B787F3 #D8BFF9 #EEE3FC

Accessibility & contrast

On white

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

On black

7.77
#B787F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787F3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787F3#FFFFFF#000000##000000
##B787F31.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9CF7
Deuteranopia (green-blind)
#759DF0
Tritanopia (blue-blind)
#AD99B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b787f3;
/* rgb */ color: rgb(183, 135, 243);
/* oklch */ color: oklch(71.3% 0.159 303.1);
Tailwind
colors: {
  custom: {
    50: '#cfabf7',
    500: '#b787f3',
    950: '#000000',
  },
}
SCSS
$custom: #b787f3;
$custom-light: #cfabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b787f3",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 266.667,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.71304,
    "c": 0.1588,
    "h": 303.1
  },
  "luminance": 0.33866
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B787F3

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

Preview Lab → · Contrast checker → · Palette generator →

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