#B787FD#B787FD

#B787FD is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.8% C 0.171 H 301.0°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#B787FD
RGBrgb(183, 135, 253)
HSLhsl(264, 97%, 76%)
HSVhsv(264, 47%, 99%)
CMYKcmyk(27.7%, 46.6%, 0%, 0.8%)
CIE-LABlab(65.35, 41.70, -52.29)
CIE-LCHlch(65.35, 66.88, 308.57°)
OKLaboklab(71.83% 0.0881 -0.1467)
OKLCHoklch(71.83% 0.171 301)
XYZxyz(45.9180, 34.4869, 97.1470)
Luminance0.3449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787FD #CDFD87
analogous
#8792FD #B787FD #F287FD
triadic
#B787FD #FDB787 #87FDB7
tetradic
#B787FD #FD8792 #CDFD87 #87FDF2
square
#B787FD #FD8792 #CDFD87 #87FDF2
split-complementary
#B787FD #FDF287 #92FD87
monochromatic
#6F0FFB #934BFC #B787FD #DBC3FE #EDE1FE

Accessibility & contrast

On white

2.66
#B787FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#B787FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787FD
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787FD#FFFFFF#000000##000000
##B787FD1.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#639EFF
Deuteranopia (green-blind)
#6F9EFA
Tritanopia (blue-blind)
#AA9CB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b787fd;
/* rgb */ color: rgb(183, 135, 253);
/* oklch */ color: oklch(71.8% 0.171 301.0);
Tailwind
colors: {
  custom: {
    50: '#cfabfe',
    500: '#b787fd',
    950: '#000000',
  },
}
SCSS
$custom: #b787fd;
$custom-light: #cfabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b787fd",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 264.407,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.71832,
    "c": 0.17113,
    "h": 301
  },
  "luminance": 0.34487
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B787FD

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

Preview Lab → · Contrast checker → · Palette generator →

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