#987BE7#987BE7

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

Color values

HEX#987BE7
RGBrgb(152, 123, 231)
HSLhsl(256, 69%, 69%)
HSVhsv(256, 47%, 91%)
CMYKcmyk(34.2%, 46.8%, 0%, 9.4%)
CIE-LABlab(58.61, 34.90, -51.00)
CIE-LCHlch(58.61, 61.80, 304.38°)
OKLaboklab(65.73% 0.064 -0.1438)
OKLCHoklch(65.73% 0.157 294)
XYZxyz(34.4520, 26.6102, 78.9070)
Luminance0.2661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BE7 #CAE77B
analogous
#7B94E7 #987BE7 #CE7BE7
triadic
#987BE7 #E7987B #7BE798
tetradic
#987BE7 #E77B94 #CAE77B #7BE7CE
square
#987BE7 #E77B94 #CAE77B #7BE7CE
split-complementary
#987BE7 #E7CE7B #94E77B
monochromatic
#4F24C4 #7047DE #987BE7 #C0AFF0 #E9E3FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987BE7#FFFFFF#000000##000000
##987BE71.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)
#568EEB
Deuteranopia (green-blind)
#5B8BE4
Tritanopia (blue-blind)
#8590A6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987be7;
/* rgb */ color: rgb(152, 123, 231);
/* oklch */ color: oklch(65.7% 0.157 294.0);
Tailwind
colors: {
  custom: {
    50: '#b9a1ef',
    500: '#987be7',
    950: '#000000',
  },
}
SCSS
$custom: #987be7;
$custom-light: #b9a1ef;
$custom-dark: #000000;
JSON
{
  "hex": "#987be7",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 231
  },
  "hsl": {
    "h": 256.111,
    "s": 69.231,
    "l": 69.412
  },
  "oklch": {
    "l": 0.65734,
    "c": 0.15737,
    "h": 294
  },
  "luminance": 0.26611
}

Semantic roles & 50–950 ramp

primary
#987BE7
secondary
#E6EECF
accent
#D1149E
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120F16
muted
#817E84

Preview Lab

Preview with #987BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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