#987FF1#987FF1

#987FF1 is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.0% C 0.165 H 291.4°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#987FF1
RGBrgb(152, 127, 241)
HSLhsl(253, 80%, 72%)
HSVhsv(253, 47%, 95%)
CMYKcmyk(36.9%, 47.3%, 0%, 5.5%)
CIE-LABlab(60.07, 35.24, -54.23)
CIE-LCHlch(60.07, 64.68, 303.01°)
OKLaboklab(67% 0.0601 -0.1532)
OKLCHoklch(67% 0.165 291.4)
XYZxyz(36.4112, 28.2041, 86.7276)
Luminance0.2821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FF1 #D8F17F
analogous
#7F9FF1 #987FF1 #D17FF1
triadic
#987FF1 #F1987F #7FF198
tetradic
#987FF1 #F17F9F #D8F17F #7FF1D1
square
#987FF1 #F17F9F #D8F17F #7FF1D1
split-complementary
#987FF1 #F1D17F #9FF17F
monochromatic
#4318DD #6C48EB #987FF1 #C4B6F7 #E9E3FC

Accessibility & contrast

On white

3.16
#987FF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#987FF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FF1
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FF1#FFFFFF#000000##000000
##987FF11.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F5
Deuteranopia (green-blind)
#588EEE
Tritanopia (blue-blind)
#8195AD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ff1;
/* rgb */ color: rgb(152, 127, 241);
/* oklch */ color: oklch(67.0% 0.165 291.4);
Tailwind
colors: {
  custom: {
    50: '#baa4f6',
    500: '#987ff1',
    950: '#000000',
  },
}
SCSS
$custom: #987ff1;
$custom-light: #baa4f6;
$custom-dark: #000000;
JSON
{
  "hex": "#987ff1",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 241
  },
  "hsl": {
    "h": 253.158,
    "s": 80.282,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67003,
    "c": 0.16455,
    "h": 291.4
  },
  "luminance": 0.28205
}

Semantic roles & 50–950 ramp

primary
#987FF1
secondary
#EEF4D7
accent
#DD09AE
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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