#987AFF#987AFF

#987AFF is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.0% C 0.190 H 290.8°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#987AFF
RGBrgb(152, 122, 255)
HSLhsl(254, 100%, 74%)
HSVhsv(254, 52%, 100%)
CMYKcmyk(40.4%, 52.2%, 0%, 0%)
CIE-LABlab(59.72, 41.81, -62.52)
CIE-LCHlch(59.72, 75.22, 303.77°)
OKLaboklab(66.99% 0.0673 -0.1775)
OKLCHoklch(66.99% 0.19 290.8)
XYZxyz(37.9535, 27.8133, 97.9572)
Luminance0.2781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AFF #E1FF7A
analogous
#7A9FFF #987AFF #DB7AFF
triadic
#987AFF #FF987A #7AFF98
tetradic
#987AFF #FF7A9F #E1FF7A #7AFFDB
square
#987AFF #FF7A9F #E1FF7A #7AFFDB
split-complementary
#987AFF #FFDB7A #9FFF7A
monochromatic
#3900FF #693DFF #987AFF #C7B7FF #E7E0FF

Accessibility & contrast

On white

3.20
#987AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#987AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AFF
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AFF#FFFFFF#000000##000000
##987AFF1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E92FF
Deuteranopia (green-blind)
#428DFC
Tritanopia (blue-blind)
#7C96B1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987aff;
/* rgb */ color: rgb(152, 122, 255);
/* oklch */ color: oklch(67.0% 0.190 290.8);
Tailwind
colors: {
  custom: {
    50: '#bba1ff',
    500: '#987aff',
    950: '#000000',
  },
}
SCSS
$custom: #987aff;
$custom-light: #bba1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987aff",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 253.534,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.66993,
    "c": 0.18984,
    "h": 290.8
  },
  "luminance": 0.27814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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