#987BDA#987BDA

#987BDA is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.0% C 0.140 H 296.4°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#987BDA
RGBrgb(152, 123, 218)
HSLhsl(258, 56%, 67%)
HSVhsv(258, 44%, 85%)
CMYKcmyk(30.3%, 43.6%, 0%, 14.5%)
CIE-LABlab(57.94, 31.57, -44.79)
CIE-LCHlch(57.94, 54.80, 305.18°)
OKLaboklab(65.02% 0.0623 -0.1256)
OKLCHoklch(65.02% 0.14 296.4)
XYZxyz(32.6837, 25.9029, 69.5939)
Luminance0.2590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BDA #BDDA7B
analogous
#7B8EDA #987BDA #C87BDA
triadic
#987BDA #DA987B #7BDA98
tetradic
#987BDA #DA7B8E #BDDA7B #7BDAC8
square
#987BDA #DA7B8E #BDDA7B #7BDAC8
split-complementary
#987BDA #DAC87B #8EDA7B
monochromatic
#5530AB #734BCD #987BDA #BDABE7 #E3DBF5

Accessibility & contrast

On white

3.40
#987BDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#987BDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BDA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BDA#FFFFFF#000000##000000
##987BDA1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8CDE
Deuteranopia (green-blind)
#638AD8
Tritanopia (blue-blind)
#8A8CA0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987bda;
/* rgb */ color: rgb(152, 123, 218);
/* oklch */ color: oklch(65.0% 0.140 296.4);
Tailwind
colors: {
  custom: {
    50: '#b9a1e6',
    500: '#987bda',
    950: '#000000',
  },
}
SCSS
$custom: #987bda;
$custom-light: #b9a1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#987bda",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 218
  },
  "hsl": {
    "h": 258.316,
    "s": 56.213,
    "l": 66.863
  },
  "oklch": {
    "l": 0.65015,
    "c": 0.1402,
    "h": 296.4
  },
  "luminance": 0.25903
}

Semantic roles & 50–950 ramp

primary
#987BDA
secondary
#DEE8C9
accent
#C42292
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120F16
muted
#817E84

Preview Lab

Preview with #987BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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