#987AF9#987AF9

#987AF9 is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.6% C 0.182 H 291.6°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#987AF9
RGBrgb(152, 122, 249)
HSLhsl(254, 91%, 73%)
HSVhsv(254, 51%, 98%)
CMYKcmyk(39%, 51%, 0%, 2.4%)
CIE-LABlab(59.37, 40.21, -59.77)
CIE-LCHlch(59.37, 72.04, 303.93°)
OKLaboklab(66.62% 0.0669 -0.1694)
OKLCHoklch(66.62% 0.182 291.6)
XYZxyz(37.0027, 27.4330, 92.9497)
Luminance0.2743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AF9 #DBF97A
analogous
#7A9CF9 #987AF9 #D77AF9
triadic
#987AF9 #F9987A #7AF998
tetradic
#987AF9 #F97A9C #DBF97A #7AF9D7
square
#987AF9 #F97A9C #DBF97A #7AF9D7
split-complementary
#987AF9 #F9D77A #9CF97A
monochromatic
#400BEE #6B3FF6 #987AF9 #C5B5FC #E8E2FE

Accessibility & contrast

On white

3.24
#987AF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#987AF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AF9
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AF9#FFFFFF#000000##000000
##987AF91.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4491FD
Deuteranopia (green-blind)
#498CF6
Tritanopia (blue-blind)
#7E94AE
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987af9;
/* rgb */ color: rgb(152, 122, 249);
/* oklch */ color: oklch(66.6% 0.182 291.6);
Tailwind
colors: {
  custom: {
    50: '#bba1fc',
    500: '#987af9',
    950: '#000000',
  },
}
SCSS
$custom: #987af9;
$custom-light: #bba1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#987af9",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 249
  },
  "hsl": {
    "h": 254.173,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.66623,
    "c": 0.18218,
    "h": 291.6
  },
  "luminance": 0.27434
}

Semantic roles & 50–950 ramp

primary
#987AF9
secondary
#EEF6D5
accent
#E600AF
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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