#987BF8#987BF8

#987BF8 is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.7% C 0.179 H 291.5°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#987BF8
RGBrgb(152, 123, 248)
HSLhsl(254, 90%, 73%)
HSVhsv(254, 50%, 97%)
CMYKcmyk(38.7%, 50.4%, 0%, 2.7%)
CIE-LABlab(59.54, 39.38, -58.95)
CIE-LCHlch(59.54, 70.89, 303.74°)
OKLaboklab(66.73% 0.0656 -0.167)
OKLCHoklch(66.73% 0.179 291.5)
XYZxyz(36.9706, 27.6176, 92.1716)
Luminance0.2762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BF8 #DBF87B
analogous
#7B9CF8 #987BF8 #D67BF8
triadic
#987BF8 #F8987B #7BF898
tetradic
#987BF8 #F87B9C #DBF87B #7BF8D6
square
#987BF8 #F87B9C #DBF87B #7BF8D6
split-complementary
#987BF8 #F8D67B #9CF87B
monochromatic
#400DEC #6B41F5 #987BF8 #C5B5FB #E8E2FD

Accessibility & contrast

On white

3.22
#987BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#987BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BF8
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BF8#FFFFFF#000000##000000
##987BF81.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4891FC
Deuteranopia (green-blind)
#4C8DF5
Tritanopia (blue-blind)
#7F94AE
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987bf8;
/* rgb */ color: rgb(152, 123, 248);
/* oklch */ color: oklch(66.7% 0.179 291.5);
Tailwind
colors: {
  custom: {
    50: '#bba2fb',
    500: '#987bf8',
    950: '#000000',
  },
}
SCSS
$custom: #987bf8;
$custom-light: #bba2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#987bf8",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 253.92,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.66731,
    "c": 0.17946,
    "h": 291.5
  },
  "luminance": 0.27619
}

Semantic roles & 50–950 ramp

primary
#987BF8
secondary
#EEF6D5
accent
#E600B0
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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