#987FED#987FED

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

Color values

HEX#987FED
RGBrgb(152, 127, 237)
HSLhsl(254, 75%, 71%)
HSVhsv(254, 46%, 93%)
CMYKcmyk(35.9%, 46.4%, 0%, 7.1%)
CIE-LABlab(59.86, 34.18, -52.36)
CIE-LCHlch(59.86, 62.53, 303.14°)
OKLaboklab(66.77% 0.0596 -0.1477)
OKLCHoklch(66.77% 0.159 292)
XYZxyz(35.8203, 27.9677, 83.6154)
Luminance0.2797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FED #D4ED7F
analogous
#7F9DED #987FED #CF7FED
triadic
#987FED #ED987F #7FED98
tetradic
#987FED #ED7F9D #D4ED7F #7FEDCF
square
#987FED #ED7F9D #D4ED7F #7FEDCF
split-complementary
#987FED #EDCF7F #9DED7F
monochromatic
#471ED4 #6D49E5 #987FED #C3B5F5 #E9E4FB

Accessibility & contrast

On white

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

On black

6.59
#987FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FED
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FED#FFFFFF#000000##000000
##987FED1.003.186.596.59
#FFFFFF3.181.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5892F1
Deuteranopia (green-blind)
#5B8EEA
Tritanopia (blue-blind)
#8394AB
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987fed;
/* rgb */ color: rgb(152, 127, 237);
/* oklch */ color: oklch(66.8% 0.159 292.0);
Tailwind
colors: {
  custom: {
    50: '#baa4f3',
    500: '#987fed',
    950: '#000000',
  },
}
SCSS
$custom: #987fed;
$custom-light: #baa4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987fed",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 237
  },
  "hsl": {
    "h": 253.636,
    "s": 75.342,
    "l": 71.373
  },
  "oklch": {
    "l": 0.66774,
    "c": 0.15928,
    "h": 292
  },
  "luminance": 0.27969
}

Semantic roles & 50–950 ramp

primary
#987FED
secondary
#ECF2D6
accent
#D80EAA
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FED

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

Preview Lab → · Contrast checker → · Palette generator →

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