#987EE2#987EE2

#987EE2 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.0% C 0.146 H 294.0°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#987EE2
RGBrgb(152, 126, 226)
HSLhsl(256, 63%, 69%)
HSVhsv(256, 44%, 89%)
CMYKcmyk(32.7%, 44.2%, 0%, 11.4%)
CIE-LABlab(59.06, 31.89, -47.51)
CIE-LCHlch(59.06, 57.22, 303.87°)
OKLaboklab(65.98% 0.0594 -0.1336)
OKLCHoklch(65.98% 0.146 294)
XYZxyz(34.1337, 27.0875, 75.3668)
Luminance0.2709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EE2 #C8E27E
analogous
#7E96E2 #987EE2 #CA7EE2
triadic
#987EE2 #E2987E #7EE298
tetradic
#987EE2 #E27E96 #C8E27E #7EE2CA
square
#987EE2 #E27E96 #C8E27E #7EE2CA
split-complementary
#987EE2 #E2CA7E #96E27E
monochromatic
#502ABB #704CD7 #987EE2 #C0B0ED #E8E2F8

Accessibility & contrast

On white

3.27
#987EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#987EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EE2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EE2#FFFFFF#000000##000000
##987EE21.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8FE6
Deuteranopia (green-blind)
#628DE0
Tritanopia (blue-blind)
#8791A5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987ee2;
/* rgb */ color: rgb(152, 126, 226);
/* oklch */ color: oklch(66.0% 0.146 294.0);
Tailwind
colors: {
  custom: {
    50: '#b9a3eb',
    500: '#987ee2',
    950: '#000000',
  },
}
SCSS
$custom: #987ee2;
$custom-light: #b9a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#987ee2",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 226
  },
  "hsl": {
    "h": 255.6,
    "s": 63.291,
    "l": 69.02
  },
  "oklch": {
    "l": 0.65983,
    "c": 0.14619,
    "h": 294
  },
  "luminance": 0.27088
}

Semantic roles & 50–950 ramp

primary
#987EE2
secondary
#E5EDCF
accent
#CB1A9D
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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