#987CF9#987CF9

#987CF9 is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.0% C 0.179 H 291.1°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#987CF9
RGBrgb(152, 124, 249)
HSLhsl(253, 91%, 73%)
HSVhsv(253, 50%, 98%)
CMYKcmyk(39%, 50.2%, 0%, 2.4%)
CIE-LABlab(59.82, 39.07, -59.05)
CIE-LCHlch(59.82, 70.81, 303.49°)
OKLaboklab(66.96% 0.0645 -0.1673)
OKLCHoklch(66.96% 0.179 291.1)
XYZxyz(37.2508, 27.9292, 93.0324)
Luminance0.2793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CF9 #DDF97C
analogous
#7C9EF9 #987CF9 #D67CF9
triadic
#987CF9 #F9987C #7CF998
tetradic
#987CF9 #F97C9E #DDF97C #7CF9D6
square
#987CF9 #F97C9E #DDF97C #7CF9D6
split-complementary
#987CF9 #F9D67C #9EF97C
monochromatic
#3E0BF0 #6A41F6 #987CF9 #C6B7FC #E8E2FE

Accessibility & contrast

On white

3.19
#987CF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#987CF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CF9
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CF9#FFFFFF#000000##000000
##987CF91.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4992FD
Deuteranopia (green-blind)
#4C8DF6
Tritanopia (blue-blind)
#7E96AF
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987cf9;
/* rgb */ color: rgb(152, 124, 249);
/* oklch */ color: oklch(67.0% 0.179 291.1);
Tailwind
colors: {
  custom: {
    50: '#bba2fc',
    500: '#987cf9',
    950: '#000000',
  },
}
SCSS
$custom: #987cf9;
$custom-light: #bba2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#987cf9",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 249
  },
  "hsl": {
    "h": 253.44,
    "s": 91.241,
    "l": 73.137
  },
  "oklch": {
    "l": 0.6696,
    "c": 0.17932,
    "h": 291.1
  },
  "luminance": 0.2793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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