#987DDD#987DDD

#987DDD is a light, vivid violet. Relative luminance 0.266; OKLCH L 65.5% C 0.141 H 295.2°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#987DDD
RGBrgb(152, 125, 221)
HSLhsl(257, 59%, 68%)
HSVhsv(257, 43%, 87%)
CMYKcmyk(31.2%, 43.4%, 0%, 13.3%)
CIE-LABlab(58.57, 31.18, -45.49)
CIE-LCHlch(58.57, 55.15, 304.43°)
OKLaboklab(65.53% 0.06 -0.1277)
OKLCHoklch(65.53% 0.141 295.2)
XYZxyz(33.3304, 26.5626, 71.7637)
Luminance0.2656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DDD #C2DD7D
analogous
#7D92DD #987DDD #C87DDD
triadic
#987DDD #DD987D #7DDD98
tetradic
#987DDD #DD7D92 #C2DD7D #7DDDC8
square
#987DDD #DD7D92 #C2DD7D #7DDDC8
split-complementary
#987DDD #DDC87D #92DD7D
monochromatic
#532EB1 #724CD0 #987DDD #BEAEEA #E5DEF6

Accessibility & contrast

On white

3.33
#987DDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#987DDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DDD
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DDD#FFFFFF#000000##000000
##987DDD1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8EE1
Deuteranopia (green-blind)
#648BDB
Tritanopia (blue-blind)
#898FA2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987ddd;
/* rgb */ color: rgb(152, 125, 221);
/* oklch */ color: oklch(65.5% 0.141 295.2);
Tailwind
colors: {
  custom: {
    50: '#b9a3e8',
    500: '#987ddd',
    950: '#000000',
  },
}
SCSS
$custom: #987ddd;
$custom-light: #b9a3e8;
$custom-dark: #000000;
JSON
{
  "hex": "#987ddd",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 221
  },
  "hsl": {
    "h": 256.875,
    "s": 58.537,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65533,
    "c": 0.14107,
    "h": 295.2
  },
  "luminance": 0.26563
}

Semantic roles & 50–950 ramp

primary
#987DDD
secondary
#E1EACC
accent
#C61F97
background
#FBFAFE
surface
#F6F3FC
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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