#987BFB#987BFB

#987BFB is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.9% C 0.183 H 291.1°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#987BFB
RGBrgb(152, 123, 251)
HSLhsl(254, 94%, 73%)
HSVhsv(254, 51%, 98%)
CMYKcmyk(39.4%, 51%, 0%, 1.6%)
CIE-LABlab(59.71, 40.18, -60.33)
CIE-LCHlch(59.71, 72.48, 303.66°)
OKLaboklab(66.91% 0.0659 -0.1711)
OKLCHoklch(66.91% 0.183 291.1)
XYZxyz(37.4397, 27.8053, 94.6424)
Luminance0.2781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BFB #DEFB7B
analogous
#7B9EFB #987BFB #D87BFB
triadic
#987BFB #FB987B #7BFB98
tetradic
#987BFB #FB7B9E #DEFB7B #7BFBD8
square
#987BFB #FB7B9E #DEFB7B #7BFBD8
split-complementary
#987BFB #FBD87B #9EFB7B
monochromatic
#3D07F4 #6A40F9 #987BFB #C6B6FD #E8E1FE

Accessibility & contrast

On white

3.20
#987BFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#987BFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BFB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BFB#FFFFFF#000000##000000
##987BFB1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4592FF
Deuteranopia (green-blind)
#498DF8
Tritanopia (blue-blind)
#7D95B0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987bfb;
/* rgb */ color: rgb(152, 123, 251);
/* oklch */ color: oklch(66.9% 0.183 291.1);
Tailwind
colors: {
  custom: {
    50: '#bba2fd',
    500: '#987bfb',
    950: '#000000',
  },
}
SCSS
$custom: #987bfb;
$custom-light: #bba2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#987bfb",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 253.594,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.66913,
    "c": 0.18332,
    "h": 291.1
  },
  "luminance": 0.27806
}

Semantic roles & 50–950 ramp

primary
#987BFB
secondary
#EFF6D5
accent
#E600B2
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987BFB

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

Preview Lab → · Contrast checker → · Palette generator →

#987BFB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva