#987AF8#987AF8

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

Color values

HEX#987AF8
RGBrgb(152, 122, 248)
HSLhsl(254, 90%, 73%)
HSVhsv(254, 51%, 97%)
CMYKcmyk(38.7%, 50.8%, 0%, 2.7%)
CIE-LABlab(59.32, 39.94, -59.31)
CIE-LCHlch(59.32, 71.51, 303.96°)
OKLaboklab(66.56% 0.0669 -0.1681)
OKLCHoklch(66.56% 0.181 291.7)
XYZxyz(36.8471, 27.3708, 92.1304)
Luminance0.2737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AF8 #DAF87A
analogous
#7A9BF8 #987AF8 #D77AF8
triadic
#987AF8 #F8987A #7AF898
tetradic
#987AF8 #F87A9B #DAF87A #7AF8D7
square
#987AF8 #F87A9B #DAF87A #7AF8D7
split-complementary
#987AF8 #F8D77A #9BF87A
monochromatic
#410CEB #6B40F5 #987AF8 #C5B4FB #E8E2FD

Accessibility & contrast

On white

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

On black

6.47
#987AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AF8
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AF8#FFFFFF#000000##000000
##987AF81.003.246.476.47
#FFFFFF3.241.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4591FC
Deuteranopia (green-blind)
#4A8CF5
Tritanopia (blue-blind)
#7F94AE
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987af8;
/* rgb */ color: rgb(152, 122, 248);
/* oklch */ color: oklch(66.6% 0.181 291.7);
Tailwind
colors: {
  custom: {
    50: '#bba1fb',
    500: '#987af8',
    950: '#000000',
  },
}
SCSS
$custom: #987af8;
$custom-light: #bba1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#987af8",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 254.286,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.66563,
    "c": 0.1809,
    "h": 291.7
  },
  "luminance": 0.27372
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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