#987AEC#987AEC

#987AEC is a light, vivid violet. Relative luminance 0.267; OKLCH L 65.8% C 0.165 H 293.5°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#987AEC
RGBrgb(152, 122, 236)
HSLhsl(256, 75%, 70%)
HSVhsv(256, 48%, 93%)
CMYKcmyk(35.6%, 48.3%, 0%, 7.5%)
CIE-LABlab(58.65, 36.77, -53.73)
CIE-LCHlch(58.65, 65.11, 304.39°)
OKLaboklab(65.85% 0.0659 -0.1517)
OKLCHoklch(65.85% 0.165 293.5)
XYZxyz(35.0448, 26.6499, 82.6382)
Luminance0.2665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AEC #CEEC7A
analogous
#7A95EC #987AEC #D17AEC
triadic
#987AEC #EC987A #7AEC98
tetradic
#987AEC #EC7A95 #CEEC7A #7AECD1
square
#987AEC #EC7A95 #CEEC7A #7AECD1
split-complementary
#987AEC #ECD17A #95EC7A
monochromatic
#4C1DCE #6F44E4 #987AEC #C1B0F4 #EAE4FB

Accessibility & contrast

On white

3.32
#987AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#987AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AEC
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AEC#FFFFFF#000000##000000
##987AEC1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#508EF0
Deuteranopia (green-blind)
#558BE9
Tritanopia (blue-blind)
#8490A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987aec;
/* rgb */ color: rgb(152, 122, 236);
/* oklch */ color: oklch(65.8% 0.165 293.5);
Tailwind
colors: {
  custom: {
    50: '#baa1f3',
    500: '#987aec',
    950: '#000000',
  },
}
SCSS
$custom: #987aec;
$custom-light: #baa1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987aec",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 255.789,
    "s": 75,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65849,
    "c": 0.1654,
    "h": 293.5
  },
  "luminance": 0.26651
}

Semantic roles & 50–950 ramp

primary
#987AEC
secondary
#E8F1D1
accent
#D70EA2
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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