#987EC2#987EC2

#987EC2 is a light, moderate violet. Relative luminance 0.255; OKLCH L 64.4% C 0.103 H 301.1°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#987EC2
RGBrgb(152, 126, 194)
HSLhsl(263, 36%, 63%)
HSVhsv(263, 35%, 76%)
CMYKcmyk(21.6%, 35.1%, 0%, 23.9%)
CIE-LABlab(57.55, 23.95, -31.85)
CIE-LCHlch(57.55, 39.85, 306.94°)
OKLaboklab(64.35% 0.0533 -0.0882)
OKLCHoklch(64.35% 0.103 301.1)
XYZxyz(30.1453, 25.4921, 54.3608)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EC2 #A8C27E
analogous
#7E86C2 #987EC2 #BA7EC2
triadic
#987EC2 #C2987E #7EC298
tetradic
#987EC2 #C27E86 #A8C27E #7EC2BA
square
#987EC2 #C27E86 #A8C27E #7EC2BA
split-complementary
#987EC2 #C2BA7E #86C27E
monochromatic
#5A3F86 #7754AE #987EC2 #B9A8D6 #DAD1E9

Accessibility & contrast

On white

3.44
#987EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#987EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EC2
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EC2#FFFFFF#000000##000000
##987EC21.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E8AC5
Deuteranopia (green-blind)
#738AC0
Tritanopia (blue-blind)
#918997
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987ec2;
/* rgb */ color: rgb(152, 126, 194);
/* oklch */ color: oklch(64.4% 0.103 301.1);
Tailwind
colors: {
  custom: {
    50: '#b7a3d4',
    500: '#987ec2',
    950: '#000000',
  },
}
SCSS
$custom: #987ec2;
$custom-light: #b7a3d4;
$custom-dark: #000000;
JSON
{
  "hex": "#987ec2",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 262.941,
    "s": 35.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.64351,
    "c": 0.10305,
    "h": 301.1
  },
  "luminance": 0.25492
}

Semantic roles & 50–950 ramp

primary
#987EC2
secondary
#D1DAC2
accent
#AF3781
background
#FBFAFD
surface
#F6F4FA
border
#D0CED3
text
#110F14
muted
#807F83

Preview Lab

Preview with #987EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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