#987FF8#987FF8

#987FF8 is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.4% C 0.174 H 290.5°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#987FF8
RGBrgb(152, 127, 248)
HSLhsl(252, 90%, 74%)
HSVhsv(252, 49%, 97%)
CMYKcmyk(38.7%, 48.8%, 0%, 2.7%)
CIE-LABlab(60.45, 37.10, -57.49)
CIE-LCHlch(60.45, 68.42, 302.83°)
OKLaboklab(67.41% 0.0608 -0.1627)
OKLCHoklch(67.41% 0.174 290.5)
XYZxyz(37.4769, 28.6304, 92.3404)
Luminance0.2863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FF8 #DFF87F
analogous
#7FA2F8 #987FF8 #D57FF8
triadic
#987FF8 #F8987F #7FF898
tetradic
#987FF8 #F87FA2 #DFF87F #7FF8D5
square
#987FF8 #F87FA2 #DFF87F #7FF8D5
split-complementary
#987FF8 #F8D57F #A2F87F
monochromatic
#3C0DF0 #6945F5 #987FF8 #C7B9FB #E8E2FD

Accessibility & contrast

On white

3.12
#987FF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#987FF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FF8
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FF8#FFFFFF#000000##000000
##987FF81.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F94FC
Deuteranopia (green-blind)
#528FF5
Tritanopia (blue-blind)
#7E97B0
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987ff8;
/* rgb */ color: rgb(152, 127, 248);
/* oklch */ color: oklch(67.4% 0.174 290.5);
Tailwind
colors: {
  custom: {
    50: '#bba4fb',
    500: '#987ff8',
    950: '#000000',
  },
}
SCSS
$custom: #987ff8;
$custom-light: #bba4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#987ff8",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 248
  },
  "hsl": {
    "h": 252.397,
    "s": 89.63,
    "l": 73.529
  },
  "oklch": {
    "l": 0.67413,
    "c": 0.17372,
    "h": 290.5
  },
  "luminance": 0.28631
}

Semantic roles & 50–950 ramp

primary
#987FF8
secondary
#EFF5D6
accent
#E600B6
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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