#987EC0#987EC0

#987EC0 is a light, moderate violet. Relative luminance 0.254; OKLCH L 64.3% C 0.100 H 301.8°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#987EC0
RGBrgb(152, 126, 192)
HSLhsl(264, 34%, 62%)
HSVhsv(264, 34%, 75%)
CMYKcmyk(20.8%, 34.4%, 0%, 24.7%)
CIE-LABlab(57.47, 23.47, -30.84)
CIE-LCHlch(57.47, 38.76, 307.27°)
OKLaboklab(64.26% 0.0528 -0.0853)
OKLCHoklch(64.26% 0.1 301.8)
XYZxyz(29.9222, 25.4029, 53.1858)
Luminance0.2540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EC0 #A6C07E
analogous
#7E85C0 #987EC0 #B97EC0
triadic
#987EC0 #C0987E #7EC098
tetradic
#987EC0 #C07E85 #A6C07E #7EC0B9
square
#987EC0 #C07E85 #A6C07E #7EC0B9
split-complementary
#987EC0 #C0B97E #85C07E
monochromatic
#5B4083 #7755AC #987EC0 #B9A7D4 #DAD0E8

Accessibility & contrast

On white

3.45
#987EC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#987EC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EC0
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EC0#FFFFFF#000000##000000
##987EC01.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8AC3
Deuteranopia (green-blind)
#748ABE
Tritanopia (blue-blind)
#918896
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987ec0;
/* rgb */ color: rgb(152, 126, 192);
/* oklch */ color: oklch(64.3% 0.100 301.8);
Tailwind
colors: {
  custom: {
    50: '#b7a3d3',
    500: '#987ec0',
    950: '#000000',
  },
}
SCSS
$custom: #987ec0;
$custom-light: #b7a3d3;
$custom-dark: #000000;
JSON
{
  "hex": "#987ec0",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 192
  },
  "hsl": {
    "h": 263.636,
    "s": 34.375,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64258,
    "c": 0.10034,
    "h": 301.8
  },
  "luminance": 0.25403
}

Semantic roles & 50–950 ramp

primary
#987EC0
secondary
#CFD9C1
accent
#AD387F
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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