#987BEA#987BEA

#987BEA is a light, vivid violet. Relative luminance 0.268; OKLCH L 65.9% C 0.161 H 293.5°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#987BEA
RGBrgb(152, 123, 234)
HSLhsl(256, 73%, 70%)
HSVhsv(256, 47%, 92%)
CMYKcmyk(35%, 47.4%, 0%, 8.2%)
CIE-LABlab(58.77, 35.68, -52.42)
CIE-LCHlch(58.77, 63.41, 304.24°)
OKLaboklab(65.91% 0.0644 -0.1479)
OKLCHoklch(65.91% 0.161 293.5)
XYZxyz(34.8793, 26.7811, 81.1576)
Luminance0.2678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BEA #CDEA7B
analogous
#7B95EA #987BEA #D07BEA
triadic
#987BEA #EA987B #7BEA98
tetradic
#987BEA #EA7B95 #CDEA7B #7BEAD0
square
#987BEA #EA7B95 #CDEA7B #7BEAD0
split-complementary
#987BEA #EAD07B #95EA7B
monochromatic
#4D20CA #6F46E2 #987BEA #C1B0F2 #EAE5FB

Accessibility & contrast

On white

3.30
#987BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#987BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BEA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BEA#FFFFFF#000000##000000
##987BEA1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#548FEE
Deuteranopia (green-blind)
#588BE7
Tritanopia (blue-blind)
#8491A7
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987bea;
/* rgb */ color: rgb(152, 123, 234);
/* oklch */ color: oklch(65.9% 0.161 293.5);
Tailwind
colors: {
  custom: {
    50: '#baa1f1',
    500: '#987bea',
    950: '#000000',
  },
}
SCSS
$custom: #987bea;
$custom-light: #baa1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#987bea",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 234
  },
  "hsl": {
    "h": 255.676,
    "s": 72.549,
    "l": 70
  },
  "oklch": {
    "l": 0.65905,
    "c": 0.1613,
    "h": 293.5
  },
  "luminance": 0.26782
}

Semantic roles & 50–950 ramp

primary
#987BEA
secondary
#E8F0D1
accent
#D511A1
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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