#987AF5#987AF5

#987AF5 is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.4% C 0.177 H 292.1°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#987AF5
RGBrgb(152, 122, 245)
HSLhsl(255, 86%, 72%)
HSVhsv(255, 50%, 96%)
CMYKcmyk(38%, 50.2%, 0%, 3.9%)
CIE-LABlab(59.15, 39.14, -57.93)
CIE-LCHlch(59.15, 69.91, 304.05°)
OKLaboklab(66.38% 0.0666 -0.164)
OKLCHoklch(66.38% 0.177 292.1)
XYZxyz(36.3855, 27.1861, 89.6989)
Luminance0.2719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AF5 #D7F57A
analogous
#7A9AF5 #987AF5 #D67AF5
triadic
#987AF5 #F5987A #7AF598
tetradic
#987AF5 #F57A9A #D7F57A #7AF5D6
square
#987AF5 #F57A9A #D7F57A #7AF5D6
split-complementary
#987AF5 #F5D67A #9AF57A
monochromatic
#4411E3 #6C41F1 #987AF5 #C4B3F9 #E9E3FD

Accessibility & contrast

On white

3.26
#987AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#987AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AF5
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AF5#FFFFFF#000000##000000
##987AF51.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4890F9
Deuteranopia (green-blind)
#4D8CF2
Tritanopia (blue-blind)
#8093AC
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987af5;
/* rgb */ color: rgb(152, 122, 245);
/* oklch */ color: oklch(66.4% 0.177 292.1);
Tailwind
colors: {
  custom: {
    50: '#bba1f9',
    500: '#987af5',
    950: '#000000',
  },
}
SCSS
$custom: #987af5;
$custom-light: #bba1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#987af5",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 254.634,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.66381,
    "c": 0.17704,
    "h": 292.1
  },
  "luminance": 0.27187
}

Semantic roles & 50–950 ramp

primary
#987AF5
secondary
#EDF5D6
accent
#E303AC
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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