#987AED#987AED

#987AED is a light, vivid violet. Relative luminance 0.267; OKLCH L 65.9% C 0.167 H 293.3°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#987AED
RGBrgb(152, 122, 237)
HSLhsl(256, 76%, 70%)
HSVhsv(256, 49%, 93%)
CMYKcmyk(35.9%, 48.5%, 0%, 7.1%)
CIE-LABlab(58.70, 37.03, -54.20)
CIE-LCHlch(58.70, 65.64, 304.35°)
OKLaboklab(65.91% 0.066 -0.1531)
OKLCHoklch(65.91% 0.167 293.3)
XYZxyz(35.1905, 26.7081, 83.4055)
Luminance0.2671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AED #CFED7A
analogous
#7A95ED #987AED #D17AED
triadic
#987AED #ED987A #7AED98
tetradic
#987AED #ED7A95 #CFED7A #7AEDD1
square
#987AED #ED7A95 #CFED7A #7AEDD1
split-complementary
#987AED #EDD17A #95ED7A
monochromatic
#4B1CD0 #6E44E6 #987AED #C2B0F4 #EAE4FB

Accessibility & contrast

On white

3.31
#987AED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#987AED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AED
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AED#FFFFFF#000000##000000
##987AED1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8FF1
Deuteranopia (green-blind)
#558BEA
Tritanopia (blue-blind)
#8391A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987aed;
/* rgb */ color: rgb(152, 122, 237);
/* oklch */ color: oklch(65.9% 0.167 293.3);
Tailwind
colors: {
  custom: {
    50: '#baa1f3',
    500: '#987aed',
    950: '#000000',
  },
}
SCSS
$custom: #987aed;
$custom-light: #baa1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987aed",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 237
  },
  "hsl": {
    "h": 255.652,
    "s": 76.159,
    "l": 70.392
  },
  "oklch": {
    "l": 0.65907,
    "c": 0.1667,
    "h": 293.3
  },
  "luminance": 0.26709
}

Semantic roles & 50–950 ramp

primary
#987AED
secondary
#E9F1D2
accent
#D80DA3
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AED

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

Preview Lab → · Contrast checker → · Palette generator →

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