#987AFE#987AFE

#987AFE is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.9% C 0.189 H 290.9°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#987AFE
RGBrgb(152, 122, 254)
HSLhsl(254, 99%, 74%)
HSVhsv(254, 52%, 100%)
CMYKcmyk(40.2%, 52%, 0%, 0.4%)
CIE-LABlab(59.66, 41.55, -62.07)
CIE-LCHlch(59.66, 74.69, 303.80°)
OKLaboklab(66.93% 0.0672 -0.1762)
OKLCHoklch(66.93% 0.189 290.9)
XYZxyz(37.7929, 27.7491, 97.1116)
Luminance0.2775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AFE #E0FE7A
analogous
#7A9EFE #987AFE #DA7AFE
triadic
#987AFE #FE987A #7AFE98
tetradic
#987AFE #FE7A9E #E0FE7A #7AFEDA
square
#987AFE #FE7A9E #E0FE7A #7AFEDA
split-complementary
#987AFE #FEDA7A #9EFE7A
monochromatic
#3B02FC #693DFE #987AFE #C7B7FE #E7E1FF

Accessibility & contrast

On white

3.21
#987AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#987AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AFE
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AFE#FFFFFF#000000##000000
##987AFE1.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F92FF
Deuteranopia (green-blind)
#438DFB
Tritanopia (blue-blind)
#7C96B1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987afe;
/* rgb */ color: rgb(152, 122, 254);
/* oklch */ color: oklch(66.9% 0.189 290.9);
Tailwind
colors: {
  custom: {
    50: '#bba1ff',
    500: '#987afe',
    950: '#000000',
  },
}
SCSS
$custom: #987afe;
$custom-light: #bba1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987afe",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 253.636,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.66931,
    "c": 0.18856,
    "h": 290.9
  },
  "luminance": 0.2775
}

Semantic roles & 50–950 ramp

primary
#987AFE
secondary
#EFF7D4
accent
#E600B1
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F18
muted
#817E86

Preview Lab

Preview with #987AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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