#987AEA#987AEA

#987AEA is a light, vivid violet. Relative luminance 0.265; OKLCH L 65.7% C 0.163 H 293.8°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#987AEA
RGBrgb(152, 122, 234)
HSLhsl(256, 73%, 70%)
HSVhsv(256, 48%, 92%)
CMYKcmyk(35%, 47.9%, 0%, 8.2%)
CIE-LABlab(58.54, 36.25, -52.79)
CIE-LCHlch(58.54, 64.04, 304.48°)
OKLaboklab(65.73% 0.0657 -0.149)
OKLCHoklch(65.73% 0.163 293.8)
XYZxyz(34.7559, 26.5343, 81.1164)
Luminance0.2653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AEA #CCEA7A
analogous
#7A94EA #987AEA #D07AEA
triadic
#987AEA #EA987A #7AEA98
tetradic
#987AEA #EA7A94 #CCEA7A #7AEAD0
square
#987AEA #EA7A94 #CCEA7A #7AEAD0
split-complementary
#987AEA #EAD07A #94EA7A
monochromatic
#4D20CA #6F45E2 #987AEA #C1AFF2 #EAE4FB

Accessibility & contrast

On white

3.33
#987AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#987AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AEA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AEA#FFFFFF#000000##000000
##987AEA1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#528EEE
Deuteranopia (green-blind)
#578BE7
Tritanopia (blue-blind)
#8490A7
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987aea;
/* rgb */ color: rgb(152, 122, 234);
/* oklch */ color: oklch(65.7% 0.163 293.8);
Tailwind
colors: {
  custom: {
    50: '#baa1f1',
    500: '#987aea',
    950: '#000000',
  },
}
SCSS
$custom: #987aea;
$custom-light: #baa1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#987aea",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 234
  },
  "hsl": {
    "h": 256.071,
    "s": 72.727,
    "l": 69.804
  },
  "oklch": {
    "l": 0.65733,
    "c": 0.16279,
    "h": 293.8
  },
  "luminance": 0.26535
}

Semantic roles & 50–950 ramp

primary
#987AEA
secondary
#E7F0D0
accent
#D511A0
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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