#987EED#987EED

#987EED is a light, vivid violet. Relative luminance 0.277; OKLCH L 66.6% C 0.161 H 292.3°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#987EED
RGBrgb(152, 126, 237)
HSLhsl(254, 76%, 71%)
HSVhsv(254, 47%, 93%)
CMYKcmyk(35.9%, 46.8%, 0%, 7.1%)
CIE-LABlab(59.63, 34.75, -52.73)
CIE-LCHlch(59.63, 63.15, 303.39°)
OKLaboklab(66.6% 0.0609 -0.1488)
OKLCHoklch(66.6% 0.161 292.3)
XYZxyz(35.6918, 27.7107, 83.5726)
Luminance0.2771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EED #D3ED7E
analogous
#7E9BED #987EED #CF7EED
triadic
#987EED #ED987E #7EED98
tetradic
#987EED #ED7E9B #D3ED7E #7EEDCF
square
#987EED #ED7E9B #D3ED7E #7EEDCF
split-complementary
#987EED #EDCF7E #9BED7E
monochromatic
#481DD3 #6D48E6 #987EED #C3B4F4 #EAE4FB

Accessibility & contrast

On white

3.21
#987EED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#987EED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EED
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EED#FFFFFF#000000##000000
##987EED1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5691F1
Deuteranopia (green-blind)
#5A8DEA
Tritanopia (blue-blind)
#8394AA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987eed;
/* rgb */ color: rgb(152, 126, 237);
/* oklch */ color: oklch(66.6% 0.161 292.3);
Tailwind
colors: {
  custom: {
    50: '#baa4f3',
    500: '#987eed',
    950: '#000000',
  },
}
SCSS
$custom: #987eed;
$custom-light: #baa4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987eed",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 237
  },
  "hsl": {
    "h": 254.054,
    "s": 75.51,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66599,
    "c": 0.16076,
    "h": 292.3
  },
  "luminance": 0.27712
}

Semantic roles & 50–950 ramp

primary
#987EED
secondary
#EBF2D5
accent
#D80EA8
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EED

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

Preview Lab → · Contrast checker → · Palette generator →

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