#987FC2#987FC2

#987FC2 is a light, moderate violet. Relative luminance 0.257; OKLCH L 64.5% C 0.101 H 300.8°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#987FC2
RGBrgb(152, 127, 194)
HSLhsl(262, 35%, 63%)
HSVhsv(262, 35%, 76%)
CMYKcmyk(21.6%, 34.5%, 0%, 23.9%)
CIE-LABlab(57.80, 23.37, -31.47)
CIE-LCHlch(57.80, 39.19, 306.60°)
OKLaboklab(64.54% 0.0518 -0.0871)
OKLCHoklch(64.54% 0.101 300.8)
XYZxyz(30.2738, 25.7491, 54.4036)
Luminance0.2575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FC2 #A9C27F
analogous
#7F87C2 #987FC2 #B97FC2
triadic
#987FC2 #C2987F #7FC298
tetradic
#987FC2 #C27F87 #A9C27F #7FC2B9
square
#987FC2 #C27F87 #A9C27F #7FC2B9
split-complementary
#987FC2 #C2B97F #87C27F
monochromatic
#5A4087 #7756AE #987FC2 #B9A8D6 #DBD2EA

Accessibility & contrast

On white

3.41
#987FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#987FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FC2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FC2#FFFFFF#000000##000000
##987FC21.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#708BC5
Deuteranopia (green-blind)
#748BC0
Tritanopia (blue-blind)
#918A98
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987fc2;
/* rgb */ color: rgb(152, 127, 194);
/* oklch */ color: oklch(64.5% 0.101 300.8);
Tailwind
colors: {
  custom: {
    50: '#b7a4d4',
    500: '#987fc2',
    950: '#000000',
  },
}
SCSS
$custom: #987fc2;
$custom-light: #b7a4d4;
$custom-dark: #000000;
JSON
{
  "hex": "#987fc2",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 194
  },
  "hsl": {
    "h": 262.388,
    "s": 35.45,
    "l": 62.941
  },
  "oklch": {
    "l": 0.64539,
    "c": 0.10135,
    "h": 300.8
  },
  "luminance": 0.25749
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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