#987FEE#987FEE

#987FEE is a light, vivid violet. Relative luminance 0.280; OKLCH L 66.8% C 0.161 H 291.8°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#987FEE
RGBrgb(152, 127, 238)
HSLhsl(254, 77%, 72%)
HSVhsv(254, 47%, 93%)
CMYKcmyk(36.1%, 46.6%, 0%, 6.7%)
CIE-LABlab(59.91, 34.44, -52.83)
CIE-LCHlch(59.91, 63.06, 303.10°)
OKLaboklab(66.83% 0.0597 -0.1491)
OKLCHoklch(66.83% 0.161 291.8)
XYZxyz(35.9668, 28.0263, 84.3870)
Luminance0.2803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FEE #D5EE7F
analogous
#7F9EEE #987FEE #D07FEE
triadic
#987FEE #EE987F #7FEE98
tetradic
#987FEE #EE7F9E #D5EE7F #7FEED0
square
#987FEE #EE7F9E #D5EE7F #7FEED0
split-complementary
#987FEE #EED07F #9EEE7F
monochromatic
#461CD6 #6D49E7 #987FEE #C3B5F5 #E9E4FB

Accessibility & contrast

On white

3.18
#987FEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#987FEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FEE
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FEE#FFFFFF#000000##000000
##987FEE1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F2
Deuteranopia (green-blind)
#5A8EEB
Tritanopia (blue-blind)
#8295AB
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987fee;
/* rgb */ color: rgb(152, 127, 238);
/* oklch */ color: oklch(66.8% 0.161 291.8);
Tailwind
colors: {
  custom: {
    50: '#baa4f4',
    500: '#987fee',
    950: '#000000',
  },
}
SCSS
$custom: #987fee;
$custom-light: #baa4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#987fee",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 253.514,
    "s": 76.552,
    "l": 71.569
  },
  "oklch": {
    "l": 0.66831,
    "c": 0.1606,
    "h": 291.8
  },
  "luminance": 0.28027
}

Semantic roles & 50–950 ramp

primary
#987FEE
secondary
#ECF3D6
accent
#D90DAB
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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