#987BDB#987BDB

#987BDB is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.1% C 0.142 H 296.2°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#987BDB
RGBrgb(152, 123, 219)
HSLhsl(258, 57%, 67%)
HSVhsv(258, 44%, 86%)
CMYKcmyk(30.6%, 43.8%, 0%, 14.1%)
CIE-LABlab(57.99, 31.82, -45.27)
CIE-LCHlch(57.99, 55.34, 305.10°)
OKLaboklab(65.07% 0.0624 -0.127)
OKLCHoklch(65.07% 0.142 296.2)
XYZxyz(32.8149, 25.9554, 70.2851)
Luminance0.2596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BDB #BEDB7B
analogous
#7B8EDB #987BDB #C87BDB
triadic
#987BDB #DB987B #7BDB98
tetradic
#987BDB #DB7B8E #BEDB7B #7BDBC8
square
#987BDB #DB7B8E #BEDB7B #7BDBC8
split-complementary
#987BDB #DBC87B #8EDB7B
monochromatic
#552FAD #724BCE #987BDB #BEABE8 #E3DBF5

Accessibility & contrast

On white

3.39
#987BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#987BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BDB
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BDB#FFFFFF#000000##000000
##987BDB1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8CDF
Deuteranopia (green-blind)
#638AD9
Tritanopia (blue-blind)
#8A8DA0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987bdb;
/* rgb */ color: rgb(152, 123, 219);
/* oklch */ color: oklch(65.1% 0.142 296.2);
Tailwind
colors: {
  custom: {
    50: '#b9a1e6',
    500: '#987bdb',
    950: '#000000',
  },
}
SCSS
$custom: #987bdb;
$custom-light: #b9a1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#987bdb",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 219
  },
  "hsl": {
    "h": 258.125,
    "s": 57.143,
    "l": 67.059
  },
  "oklch": {
    "l": 0.65069,
    "c": 0.14153,
    "h": 296.2
  },
  "luminance": 0.25956
}

Semantic roles & 50–950 ramp

primary
#987BDB
secondary
#DFE8CA
accent
#C52193
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120F16
muted
#817E84

Preview Lab

Preview with #987BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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