#987EFB#987EFB

#987EFB is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.4% C 0.179 H 290.3°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#987EFB
RGBrgb(152, 126, 251)
HSLhsl(252, 94%, 74%)
HSVhsv(252, 50%, 98%)
CMYKcmyk(39.4%, 49.8%, 0%, 1.6%)
CIE-LABlab(60.39, 38.48, -59.24)
CIE-LCHlch(60.39, 70.64, 303.00°)
OKLaboklab(67.42% 0.0622 -0.1679)
OKLCHoklch(67.42% 0.179 290.3)
XYZxyz(37.8176, 28.5610, 94.7684)
Luminance0.2856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EFB #E1FB7E
analogous
#7EA3FB #987EFB #D77EFB
triadic
#987EFB #FB987E #7EFB98
tetradic
#987EFB #FB7EA3 #E1FB7E #7EFBD7
square
#987EFB #FB7EA3 #E1FB7E #7EFBD7
split-complementary
#987EFB #FBD77E #A3FB7E
monochromatic
#3908F7 #6943F9 #987EFB #C7B9FD #E7E1FE

Accessibility & contrast

On white

3.13
#987EFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#987EFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EFB
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EFB#FFFFFF#000000##000000
##987EFB1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B94FF
Deuteranopia (green-blind)
#4D8FF8
Tritanopia (blue-blind)
#7D98B1
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987efb;
/* rgb */ color: rgb(152, 126, 251);
/* oklch */ color: oklch(67.4% 0.179 290.3);
Tailwind
colors: {
  custom: {
    50: '#bba4fd',
    500: '#987efb',
    950: '#000000',
  },
}
SCSS
$custom: #987efb;
$custom-light: #bba4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#987efb",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 252.48,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67421,
    "c": 0.17905,
    "h": 290.3
  },
  "luminance": 0.28562
}

Semantic roles & 50–950 ramp

primary
#987EFB
secondary
#EFF6D5
accent
#E600B6
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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