#987EEF#987EEF

#987EEF is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.7% C 0.163 H 292.0°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#987EEF
RGBrgb(152, 126, 239)
HSLhsl(254, 78%, 72%)
HSVhsv(254, 47%, 94%)
CMYKcmyk(36.4%, 47.3%, 0%, 6.3%)
CIE-LABlab(59.73, 35.28, -53.67)
CIE-LCHlch(59.73, 64.22, 303.32°)
OKLaboklab(66.71% 0.0611 -0.1515)
OKLCHoklch(66.71% 0.163 292)
XYZxyz(35.9856, 27.8282, 85.1200)
Luminance0.2783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EEF #D5EF7E
analogous
#7E9DEF #987EEF #D17EEF
triadic
#987EEF #EF987E #7EEF98
tetradic
#987EEF #EF7E9D #D5EF7E #7EEFD1
square
#987EEF #EF7E9D #D5EF7E #7EEFD1
split-complementary
#987EEF #EFD17E #9DEF7E
monochromatic
#461BD8 #6D48E8 #987EEF #C3B4F6 #E9E4FC

Accessibility & contrast

On white

3.20
#987EEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#987EEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EEF
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EEF#FFFFFF#000000##000000
##987EEF1.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5592F3
Deuteranopia (green-blind)
#588EEC
Tritanopia (blue-blind)
#8294AB
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987eef;
/* rgb */ color: rgb(152, 126, 239);
/* oklch */ color: oklch(66.7% 0.163 292.0);
Tailwind
colors: {
  custom: {
    50: '#baa4f5',
    500: '#987eef',
    950: '#000000',
  },
}
SCSS
$custom: #987eef;
$custom-light: #baa4f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987eef",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 239
  },
  "hsl": {
    "h": 253.805,
    "s": 77.931,
    "l": 71.569
  },
  "oklch": {
    "l": 0.66714,
    "c": 0.16339,
    "h": 292
  },
  "luminance": 0.27829
}

Semantic roles & 50–950 ramp

primary
#987EEF
secondary
#ECF3D6
accent
#DA0BAB
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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