#987EF7#987EF7

#987EF7 is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.2% C 0.174 H 290.9°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#987EF7
RGBrgb(152, 126, 247)
HSLhsl(253, 88%, 73%)
HSVhsv(253, 49%, 97%)
CMYKcmyk(38.5%, 49%, 0%, 3.1%)
CIE-LABlab(60.17, 37.40, -57.40)
CIE-LCHlch(60.17, 68.51, 303.09°)
OKLaboklab(67.18% 0.0619 -0.1625)
OKLCHoklch(67.18% 0.174 290.9)
XYZxyz(37.1937, 28.3115, 91.4827)
Luminance0.2831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EF7 #DDF77E
analogous
#7EA0F7 #987EF7 #D57EF7
triadic
#987EF7 #F7987E #7EF798
tetradic
#987EF7 #F77EA0 #DDF77E #7EF7D5
square
#987EF7 #F77EA0 #DDF77E #7EF7D5
split-complementary
#987EF7 #F7D57E #A0F77E
monochromatic
#3E0FEC #6A44F3 #987EF7 #C6B8FB #E8E2FD

Accessibility & contrast

On white

3.15
#987EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#987EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EF7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EF7#FFFFFF#000000##000000
##987EF71.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E93FB
Deuteranopia (green-blind)
#518EF4
Tritanopia (blue-blind)
#7F96AF
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ef7;
/* rgb */ color: rgb(152, 126, 247);
/* oklch */ color: oklch(67.2% 0.174 290.9);
Tailwind
colors: {
  custom: {
    50: '#bba4fa',
    500: '#987ef7',
    950: '#000000',
  },
}
SCSS
$custom: #987ef7;
$custom-light: #bba4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987ef7",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 252.893,
    "s": 88.321,
    "l": 73.137
  },
  "oklch": {
    "l": 0.67182,
    "c": 0.17386,
    "h": 290.9
  },
  "luminance": 0.28313
}

Semantic roles & 50–950 ramp

primary
#987EF7
secondary
#EEF5D6
accent
#E501B4
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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