#987ACC#987ACC

#987ACC is a light, vivid violet. Relative luminance 0.250; OKLCH L 64.1% C 0.123 H 299.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#987ACC
RGBrgb(152, 122, 204)
HSLhsl(262, 45%, 64%)
HSVhsv(262, 40%, 80%)
CMYKcmyk(25.5%, 40.2%, 0%, 20%)
CIE-LABlab(57.03, 28.66, -38.33)
CIE-LCHlch(57.03, 47.87, 306.79°)
OKLaboklab(64.1% 0.0612 -0.1069)
OKLCHoklch(64.1% 0.123 299.8)
XYZxyz(30.8050, 24.9539, 60.3087)
Luminance0.2495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987ACC #AECC7A
analogous
#7A85CC #987ACC #C17ACC
triadic
#987ACC #CC987A #7ACC98
tetradic
#987ACC #CC7A85 #AECC7A #7ACCC1
square
#987ACC #CC7A85 #AECC7A #7ACCC1
split-complementary
#987ACC #CCC17A #85CC7A
monochromatic
#5A3893 #764EBB #987ACC #BAA6DD #DDD2EE

Accessibility & contrast

On white

3.51
#987ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#987ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987ACC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987ACC#FFFFFF#000000##000000
##987ACC1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6589CF
Deuteranopia (green-blind)
#6A88CA
Tritanopia (blue-blind)
#8E8899
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987acc;
/* rgb */ color: rgb(152, 122, 204);
/* oklch */ color: oklch(64.1% 0.123 299.8);
Tailwind
colors: {
  custom: {
    50: '#b8a1dc',
    500: '#987acc',
    950: '#000000',
  },
}
SCSS
$custom: #987acc;
$custom-light: #b8a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#987acc",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 204
  },
  "hsl": {
    "h": 261.951,
    "s": 44.565,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64103,
    "c": 0.12316,
    "h": 299.8
  },
  "luminance": 0.24954
}

Semantic roles & 50–950 ramp

primary
#987ACC
secondary
#D5DFC3
accent
#B82E85
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #987ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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