#987AFD#987AFD

#987AFD is a light, vivid violet. Relative luminance 0.277; OKLCH L 66.9% C 0.187 H 291.0°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#987AFD
RGBrgb(152, 122, 253)
HSLhsl(254, 97%, 74%)
HSVhsv(254, 52%, 99%)
CMYKcmyk(39.9%, 51.8%, 0%, 0.8%)
CIE-LABlab(59.60, 41.28, -61.61)
CIE-LCHlch(59.60, 74.16, 303.82°)
OKLaboklab(66.87% 0.0672 -0.1748)
OKLCHoklch(66.87% 0.187 291)
XYZxyz(37.6332, 27.6852, 96.2704)
Luminance0.2769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AFD #DFFD7A
analogous
#7A9DFD #987AFD #D97AFD
triadic
#987AFD #FD987A #7AFD98
tetradic
#987AFD #FD7A9D #DFFD7A #7AFDD9
square
#987AFD #FD7A9D #DFFD7A #7AFDD9
split-complementary
#987AFD #FDD97A #9DFD7A
monochromatic
#3C04F9 #693EFC #987AFD #C7B6FE #E8E1FF

Accessibility & contrast

On white

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

On black

6.54
#987AFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AFD
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AFD#FFFFFF#000000##000000
##987AFD1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4092FF
Deuteranopia (green-blind)
#458DFA
Tritanopia (blue-blind)
#7D95B0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987afd;
/* rgb */ color: rgb(152, 122, 253);
/* oklch */ color: oklch(66.9% 0.187 291.0);
Tailwind
colors: {
  custom: {
    50: '#bba1ff',
    500: '#987afd',
    950: '#000000',
  },
}
SCSS
$custom: #987afd;
$custom-light: #bba1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987afd",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 253.74,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.66869,
    "c": 0.18729,
    "h": 291
  },
  "luminance": 0.27686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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