#987BD2#987BD2

#987BD2 is a light, vivid violet. Relative luminance 0.255; OKLCH L 64.6% C 0.130 H 298.0°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#987BD2
RGBrgb(152, 123, 210)
HSLhsl(260, 49%, 65%)
HSVhsv(260, 41%, 82%)
CMYKcmyk(27.6%, 41.4%, 0%, 17.6%)
CIE-LABlab(57.55, 29.56, -40.90)
CIE-LCHlch(57.55, 50.47, 305.86°)
OKLaboklab(64.59% 0.0609 -0.1143)
OKLCHoklch(64.59% 0.13 298)
XYZxyz(31.6620, 25.4942, 64.2131)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BD2 #B5D27B
analogous
#7B89D2 #987BD2 #C47BD2
triadic
#987BD2 #D2987B #7BD298
tetradic
#987BD2 #D27B89 #B5D27B #7BD2C4
square
#987BD2 #D27B89 #B5D27B #7BD2C4
split-complementary
#987BD2 #D2C47B #89D27B
monochromatic
#58369D #744DC2 #987BD2 #BCA9E2 #DFD6F1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987BD2#FFFFFF#000000##000000
##987BD21.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)
#638AD5
Deuteranopia (green-blind)
#6889D0
Tritanopia (blue-blind)
#8C8A9C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987bd2;
/* rgb */ color: rgb(152, 123, 210);
/* oklch */ color: oklch(64.6% 0.130 298.0);
Tailwind
colors: {
  custom: {
    50: '#b8a1e0',
    500: '#987bd2',
    950: '#000000',
  },
}
SCSS
$custom: #987bd2;
$custom-light: #b8a1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#987bd2",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 210
  },
  "hsl": {
    "h": 260,
    "s": 49.153,
    "l": 65.294
  },
  "oklch": {
    "l": 0.64592,
    "c": 0.12954,
    "h": 298
  },
  "luminance": 0.25494
}

Semantic roles & 50–950 ramp

primary
#987BD2
secondary
#D9E3C6
accent
#BC298B
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120F15
muted
#817E83

Preview Lab

Preview with #987BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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