#987CDB#987CDB

#987CDB is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.2% C 0.140 H 295.9°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#987CDB
RGBrgb(152, 124, 219)
HSLhsl(258, 57%, 67%)
HSVhsv(258, 43%, 86%)
CMYKcmyk(30.6%, 43.4%, 0%, 14.1%)
CIE-LABlab(58.23, 31.25, -44.90)
CIE-LCHlch(58.23, 54.70, 304.84°)
OKLaboklab(65.25% 0.0611 -0.1259)
OKLCHoklch(65.25% 0.14 295.9)
XYZxyz(32.9396, 26.2047, 70.3267)
Luminance0.2621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CDB #BFDB7C
analogous
#7C90DB #987CDB #C77CDB
triadic
#987CDB #DB987C #7CDB98
tetradic
#987CDB #DB7C90 #BFDB7C #7CDBC7
square
#987CDB #DB7C90 #BFDB7C #7CDBC7
split-complementary
#987CDB #DBC77C #90DB7C
monochromatic
#5530AD #724CCE #987CDB #BEACE8 #E3DCF5

Accessibility & contrast

On white

3.36
#987CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#987CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CDB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CDB#FFFFFF#000000##000000
##987CDB1.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8DDF
Deuteranopia (green-blind)
#648BD9
Tritanopia (blue-blind)
#898DA1
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987cdb;
/* rgb */ color: rgb(152, 124, 219);
/* oklch */ color: oklch(65.2% 0.140 295.9);
Tailwind
colors: {
  custom: {
    50: '#b9a2e6',
    500: '#987cdb',
    950: '#000000',
  },
}
SCSS
$custom: #987cdb;
$custom-light: #b9a2e6;
$custom-dark: #000000;
JSON
{
  "hex": "#987cdb",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 219
  },
  "hsl": {
    "h": 257.684,
    "s": 56.886,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65247,
    "c": 0.13996,
    "h": 295.9
  },
  "luminance": 0.26205
}

Semantic roles & 50–950 ramp

primary
#987CDB
secondary
#E0E8CA
accent
#C42194
background
#FBFAFE
surface
#F6F3FC
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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