#987EF9#987EF9

#987EF9 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.3% C 0.176 H 290.6°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#987EF9
RGBrgb(152, 126, 249)
HSLhsl(253, 91%, 74%)
HSVhsv(253, 49%, 98%)
CMYKcmyk(39%, 49.4%, 0%, 2.4%)
CIE-LABlab(60.28, 37.94, -58.32)
CIE-LCHlch(60.28, 69.58, 303.04°)
OKLaboklab(67.3% 0.0621 -0.1652)
OKLCHoklch(67.3% 0.176 290.6)
XYZxyz(37.5040, 28.4356, 93.1168)
Luminance0.2844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EF9 #DFF97E
analogous
#7EA1F9 #987EF9 #D57EF9
triadic
#987EF9 #F9987E #7EF998
tetradic
#987EF9 #F97EA1 #DFF97E #7EF9D5
square
#987EF9 #F97EA1 #DFF97E #7EF9D5
split-complementary
#987EF9 #F9D57E #A1F97E
monochromatic
#3C0BF1 #6944F6 #987EF9 #C7B8FC #E8E2FE

Accessibility & contrast

On white

3.14
#987EF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#987EF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EF9
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EF9#FFFFFF#000000##000000
##987EF91.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D94FD
Deuteranopia (green-blind)
#4F8FF6
Tritanopia (blue-blind)
#7E97B0
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ef9;
/* rgb */ color: rgb(152, 126, 249);
/* oklch */ color: oklch(67.3% 0.176 290.6);
Tailwind
colors: {
  custom: {
    50: '#bba4fc',
    500: '#987ef9',
    950: '#000000',
  },
}
SCSS
$custom: #987ef9;
$custom-light: #bba4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#987ef9",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 249
  },
  "hsl": {
    "h": 252.683,
    "s": 91.111,
    "l": 73.529
  },
  "oklch": {
    "l": 0.67301,
    "c": 0.17646,
    "h": 290.6
  },
  "luminance": 0.28437
}

Semantic roles & 50–950 ramp

primary
#987EF9
secondary
#EFF6D5
accent
#E600B5
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EF9

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

Preview Lab → · Contrast checker → · Palette generator →

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