#987DD5#987DD5

#987DD5 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.1% C 0.130 H 296.8°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#987DD5
RGBrgb(152, 125, 213)
HSLhsl(258, 51%, 66%)
HSVhsv(258, 41%, 84%)
CMYKcmyk(28.6%, 41.3%, 0%, 16.5%)
CIE-LABlab(58.18, 29.16, -41.61)
CIE-LCHlch(58.18, 50.81, 305.02°)
OKLaboklab(65.11% 0.0587 -0.1164)
OKLCHoklch(65.11% 0.13 296.8)
XYZxyz(32.2899, 26.1464, 66.2835)
Luminance0.2615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DD5 #BAD57D
analogous
#7D8ED5 #987DD5 #C47DD5
triadic
#987DD5 #D5987D #7DD598
tetradic
#987DD5 #D57D8E #BAD57D #7DD5C4
square
#987DD5 #D57D8E #BAD57D #7DD5C4
split-complementary
#987DD5 #D5C47D #8ED57D
monochromatic
#5635A3 #734FC6 #987DD5 #BDABE4 #E1DAF3

Accessibility & contrast

On white

3.37
#987DD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#987DD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DD5
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DD5#FFFFFF#000000##000000
##987DD51.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#648CD8
Deuteranopia (green-blind)
#698BD3
Tritanopia (blue-blind)
#8B8D9F
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987dd5;
/* rgb */ color: rgb(152, 125, 213);
/* oklch */ color: oklch(65.1% 0.130 296.8);
Tailwind
colors: {
  custom: {
    50: '#b8a3e2',
    500: '#987dd5',
    950: '#000000',
  },
}
SCSS
$custom: #987dd5;
$custom-light: #b8a3e2;
$custom-dark: #000000;
JSON
{
  "hex": "#987dd5",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 213
  },
  "hsl": {
    "h": 258.409,
    "s": 51.163,
    "l": 66.275
  },
  "oklch": {
    "l": 0.6511,
    "c": 0.13035,
    "h": 296.8
  },
  "luminance": 0.26147
}

Semantic roles & 50–950 ramp

primary
#987DD5
secondary
#DCE5C9
accent
#BF2790
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#120F15
muted
#817F83

Preview Lab

Preview with #987DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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