#987AEB#987AEB

#987AEB is a light, vivid violet. Relative luminance 0.266; OKLCH L 65.8% C 0.164 H 293.6°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#987AEB
RGBrgb(152, 122, 235)
HSLhsl(256, 74%, 70%)
HSVhsv(256, 48%, 92%)
CMYKcmyk(35.3%, 48.1%, 0%, 7.8%)
CIE-LABlab(58.59, 36.51, -53.26)
CIE-LCHlch(58.59, 64.57, 304.43°)
OKLaboklab(65.79% 0.0658 -0.1504)
OKLCHoklch(65.79% 0.164 293.6)
XYZxyz(34.8999, 26.5919, 81.8752)
Luminance0.2659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AEB #CDEB7A
analogous
#7A95EB #987AEB #D07AEB
triadic
#987AEB #EB987A #7AEB98
tetradic
#987AEB #EB7A95 #CDEB7A #7AEBD0
square
#987AEB #EB7A95 #CDEB7A #7AEBD0
split-complementary
#987AEB #EBD07A #95EB7A
monochromatic
#4D1FCC #6F45E3 #987AEB #C1AFF3 #EAE4FB

Accessibility & contrast

On white

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

On black

6.32
#987AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AEB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AEB#FFFFFF#000000##000000
##987AEB1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEF
Deuteranopia (green-blind)
#568BE8
Tritanopia (blue-blind)
#8490A7
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987aeb;
/* rgb */ color: rgb(152, 122, 235);
/* oklch */ color: oklch(65.8% 0.164 293.6);
Tailwind
colors: {
  custom: {
    50: '#baa1f2',
    500: '#987aeb',
    950: '#000000',
  },
}
SCSS
$custom: #987aeb;
$custom-light: #baa1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#987aeb",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 255.929,
    "s": 73.856,
    "l": 70
  },
  "oklch": {
    "l": 0.6579,
    "c": 0.1641,
    "h": 293.6
  },
  "luminance": 0.26593
}

Semantic roles & 50–950 ramp

primary
#987AEB
secondary
#E8F0D1
accent
#D610A1
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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