#987AEF#987AEF

#987AEF is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.0% C 0.169 H 293.0°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#987AEF
RGBrgb(152, 122, 239)
HSLhsl(255, 79%, 71%)
HSVhsv(255, 49%, 94%)
CMYKcmyk(36.4%, 49%, 0%, 6.3%)
CIE-LABlab(58.81, 37.56, -55.13)
CIE-LCHlch(58.81, 66.71, 304.26°)
OKLaboklab(66.02% 0.0661 -0.1558)
OKLCHoklch(66.02% 0.169 293)
XYZxyz(35.4843, 26.8257, 84.9529)
Luminance0.2683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AEF #D1EF7A
analogous
#7A96EF #987AEF #D37AEF
triadic
#987AEF #EF987A #7AEF98
tetradic
#987AEF #EF7A96 #D1EF7A #7AEFD3
square
#987AEF #EF7A96 #D1EF7A #7AEFD3
split-complementary
#987AEF #EFD37A #96EF7A
monochromatic
#4A1AD5 #6E43E8 #987AEF #C2B1F6 #EAE4FC

Accessibility & contrast

On white

3.30
#987AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#987AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AEF
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AEF#FFFFFF#000000##000000
##987AEF1.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8FF3
Deuteranopia (green-blind)
#538BEC
Tritanopia (blue-blind)
#8291A9
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987aef;
/* rgb */ color: rgb(152, 122, 239);
/* oklch */ color: oklch(66.0% 0.169 293.0);
Tailwind
colors: {
  custom: {
    50: '#baa1f5',
    500: '#987aef',
    950: '#000000',
  },
}
SCSS
$custom: #987aef;
$custom-light: #baa1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987aef",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 255.385,
    "s": 78.523,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66024,
    "c": 0.16929,
    "h": 293
  },
  "luminance": 0.26826
}

Semantic roles & 50–950 ramp

primary
#987AEF
secondary
#EAF2D3
accent
#DB0BA5
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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