#B787FC#B787FC

#B787FC is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.8% C 0.170 H 301.2°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#B787FC
RGBrgb(183, 135, 252)
HSLhsl(265, 95%, 76%)
HSVhsv(265, 46%, 99%)
CMYKcmyk(27.4%, 46.4%, 0%, 1.2%)
CIE-LABlab(65.30, 41.46, -51.82)
CIE-LCHlch(65.30, 66.36, 308.66°)
OKLaboklab(71.78% 0.088 -0.1454)
OKLCHoklch(71.78% 0.17 301.2)
XYZxyz(45.7591, 34.4234, 96.3102)
Luminance0.3442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787FC #CCFC87
analogous
#8791FC #B787FC #F187FC
triadic
#B787FC #FCB787 #87FCB7
tetradic
#B787FC #FC8791 #CCFC87 #87FCF1
square
#B787FC #FC8791 #CCFC87 #87FCF1
split-complementary
#B787FC #FCF187 #91FC87
monochromatic
#6F10F9 #934BFB #B787FC #DBC3FD #EDE1FE

Accessibility & contrast

On white

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

On black

7.88
#B787FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787FC
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787FC#FFFFFF#000000##000000
##B787FC1.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#649EFF
Deuteranopia (green-blind)
#709EF9
Tritanopia (blue-blind)
#AA9CB6
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b787fc;
/* rgb */ color: rgb(183, 135, 252);
/* oklch */ color: oklch(71.8% 0.170 301.2);
Tailwind
colors: {
  custom: {
    50: '#cfabfe',
    500: '#b787fc',
    950: '#000000',
  },
}
SCSS
$custom: #b787fc;
$custom-light: #cfabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b787fc",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 264.615,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71778,
    "c": 0.1699,
    "h": 301.2
  },
  "luminance": 0.34424
}

Semantic roles & 50–950 ramp

primary
#B787FC
secondary
#E9F6D5
accent
#E60087
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B787FC

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

Preview Lab → · Contrast checker → · Palette generator →

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