#987BE6#987BE6

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

Color values

HEX#987BE6
RGBrgb(152, 123, 230)
HSLhsl(256, 68%, 69%)
HSVhsv(256, 47%, 90%)
CMYKcmyk(33.9%, 46.5%, 0%, 9.8%)
CIE-LABlab(58.56, 34.64, -50.53)
CIE-LCHlch(58.56, 61.26, 304.43°)
OKLaboklab(65.68% 0.0639 -0.1424)
OKLCHoklch(65.68% 0.156 294.2)
XYZxyz(34.3111, 26.5539, 78.1653)
Luminance0.2655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BE6 #C9E67B
analogous
#7B94E6 #987BE6 #CE7BE6
triadic
#987BE6 #E6987B #7BE698
tetradic
#987BE6 #E67B94 #C9E67B #7BE6CE
square
#987BE6 #E67B94 #C9E67B #7BE6CE
split-complementary
#987BE6 #E6CE7B #94E67B
monochromatic
#4F25C2 #7048DC #987BE6 #C0AEF0 #E8E2F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987BE6#FFFFFF#000000##000000
##987BE61.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)
#578EEA
Deuteranopia (green-blind)
#5B8BE3
Tritanopia (blue-blind)
#868FA6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987be6;
/* rgb */ color: rgb(152, 123, 230);
/* oklch */ color: oklch(65.7% 0.156 294.2);
Tailwind
colors: {
  custom: {
    50: '#b9a1ee',
    500: '#987be6',
    950: '#000000',
  },
}
SCSS
$custom: #987be6;
$custom-light: #b9a1ee;
$custom-dark: #000000;
JSON
{
  "hex": "#987be6",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 230
  },
  "hsl": {
    "h": 256.262,
    "s": 68.153,
    "l": 69.216
  },
  "oklch": {
    "l": 0.65677,
    "c": 0.15606,
    "h": 294.2
  },
  "luminance": 0.26554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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