#987BD5#987BD5

#987BD5 is a light, vivid violet. Relative luminance 0.256; OKLCH L 64.7% C 0.134 H 297.4°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#987BD5
RGBrgb(152, 123, 213)
HSLhsl(259, 52%, 66%)
HSVhsv(259, 42%, 84%)
CMYKcmyk(28.6%, 42.3%, 0%, 16.5%)
CIE-LABlab(57.70, 30.31, -42.37)
CIE-LCHlch(57.70, 52.09, 305.58°)
OKLaboklab(64.75% 0.0614 -0.1186)
OKLCHoklch(64.75% 0.134 297.4)
XYZxyz(32.0392, 25.6451, 66.1999)
Luminance0.2565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BD5 #B8D57B
analogous
#7B8BD5 #987BD5 #C57BD5
triadic
#987BD5 #D5987B #7BD598
tetradic
#987BD5 #D57B8B #B8D57B #7BD5C5
square
#987BD5 #D57B8B #B8D57B #7BD5C5
split-complementary
#987BD5 #D5C57B #8BD57B
monochromatic
#5734A2 #744DC6 #987BD5 #BCA9E4 #E0D8F3

Accessibility & contrast

On white

3.43
#987BD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#987BD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BD5
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BD5#FFFFFF#000000##000000
##987BD51.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#618BD8
Deuteranopia (green-blind)
#668AD3
Tritanopia (blue-blind)
#8B8B9E
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987bd5;
/* rgb */ color: rgb(152, 123, 213);
/* oklch */ color: oklch(64.7% 0.134 297.4);
Tailwind
colors: {
  custom: {
    50: '#b8a1e2',
    500: '#987bd5',
    950: '#000000',
  },
}
SCSS
$custom: #987bd5;
$custom-light: #b8a1e2;
$custom-dark: #000000;
JSON
{
  "hex": "#987bd5",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 213
  },
  "hsl": {
    "h": 259.333,
    "s": 51.724,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64749,
    "c": 0.13355,
    "h": 297.4
  },
  "luminance": 0.25645
}

Semantic roles & 50–950 ramp

primary
#987BD5
secondary
#DBE5C7
accent
#BF268E
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120F15
muted
#817E83

Preview Lab

Preview with #987BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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