#987AF7#987AF7

#987AF7 is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.5% C 0.180 H 291.8°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#987AF7
RGBrgb(152, 122, 247)
HSLhsl(254, 89%, 72%)
HSVhsv(254, 51%, 97%)
CMYKcmyk(38.5%, 50.6%, 0%, 3.1%)
CIE-LABlab(59.26, 39.68, -58.85)
CIE-LCHlch(59.26, 70.97, 303.99°)
OKLaboklab(66.5% 0.0668 -0.1667)
OKLCHoklch(66.5% 0.18 291.8)
XYZxyz(36.6924, 27.3089, 91.3156)
Luminance0.2731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AF7 #D9F77A
analogous
#7A9BF7 #987AF7 #D67AF7
triadic
#987AF7 #F7987A #7AF798
tetradic
#987AF7 #F77A9B #D9F77A #7AF7D6
square
#987AF7 #F77A9B #D9F77A #7AF7D6
split-complementary
#987AF7 #F7D67A #9BF77A
monochromatic
#420EE9 #6B40F4 #987AF7 #C5B4FA #E9E2FD

Accessibility & contrast

On white

3.25
#987AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#987AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AF7
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AF7#FFFFFF#000000##000000
##987AF71.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4691FB
Deuteranopia (green-blind)
#4B8CF4
Tritanopia (blue-blind)
#7F93AD
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987af7;
/* rgb */ color: rgb(152, 122, 247);
/* oklch */ color: oklch(66.5% 0.180 291.8);
Tailwind
colors: {
  custom: {
    50: '#bba1fa',
    500: '#987af7',
    950: '#000000',
  },
}
SCSS
$custom: #987af7;
$custom-light: #bba1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987af7",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 254.4,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.66502,
    "c": 0.17962,
    "h": 291.8
  },
  "luminance": 0.2731
}

Semantic roles & 50–950 ramp

primary
#987AF7
secondary
#EEF5D6
accent
#E500AE
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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