#987BDF#987BDF

#987BDF is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.3% C 0.147 H 295.4°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#987BDF
RGBrgb(152, 123, 223)
HSLhsl(257, 61%, 68%)
HSVhsv(257, 45%, 87%)
CMYKcmyk(31.8%, 44.8%, 0%, 12.5%)
CIE-LABlab(58.20, 32.84, -47.19)
CIE-LCHlch(58.20, 57.49, 304.83°)
OKLaboklab(65.29% 0.063 -0.1326)
OKLCHoklch(65.29% 0.147 295.4)
XYZxyz(33.3478, 26.1685, 73.0918)
Luminance0.2617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BDF #C2DF7B
analogous
#7B90DF #987BDF #CA7BDF
triadic
#987BDF #DF987B #7BDF98
tetradic
#987BDF #DF7B90 #C2DF7B #7BDFCA
square
#987BDF #DF7B90 #C2DF7B #7BDFCA
split-complementary
#987BDF #DFCA7B #90DF7B
monochromatic
#532CB4 #724AD3 #987BDF #BEACEB #E5DEF7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987BDF#FFFFFF#000000##000000
##987BDF1.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)
#5B8DE3
Deuteranopia (green-blind)
#608ADD
Tritanopia (blue-blind)
#888EA2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987bdf;
/* rgb */ color: rgb(152, 123, 223);
/* oklch */ color: oklch(65.3% 0.147 295.4);
Tailwind
colors: {
  custom: {
    50: '#b9a1e9',
    500: '#987bdf',
    950: '#000000',
  },
}
SCSS
$custom: #987bdf;
$custom-light: #b9a1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#987bdf",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 223
  },
  "hsl": {
    "h": 257.4,
    "s": 60.976,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65287,
    "c": 0.14683,
    "h": 295.4
  },
  "luminance": 0.26169
}

Semantic roles & 50–950 ramp

primary
#987BDF
secondary
#E1EACB
accent
#C91D97
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120F16
muted
#817E84

Preview Lab

Preview with #987BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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