#987CDF#987CDF

#987CDF is a light, vivid violet. Relative luminance 0.264; OKLCH L 65.5% C 0.145 H 295.1°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#987CDF
RGBrgb(152, 124, 223)
HSLhsl(257, 61%, 68%)
HSVhsv(257, 44%, 87%)
CMYKcmyk(31.8%, 44.4%, 0%, 12.5%)
CIE-LABlab(58.43, 32.27, -46.82)
CIE-LCHlch(58.43, 56.86, 304.57°)
OKLaboklab(65.46% 0.0617 -0.1315)
OKLCHoklch(65.46% 0.145 295.1)
XYZxyz(33.4725, 26.4179, 73.1334)
Luminance0.2642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CDF #C3DF7C
analogous
#7C91DF #987CDF #CA7CDF
triadic
#987CDF #DF987C #7CDF98
tetradic
#987CDF #DF7C91 #C3DF7C #7CDFCA
square
#987CDF #DF7C91 #C3DF7C #7CDFCA
split-complementary
#987CDF #DFCA7C #91DF7C
monochromatic
#532CB5 #714BD3 #987CDF #BFADEB #E5DEF7

Accessibility & contrast

On white

3.34
#987CDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#987CDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CDF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CDF#FFFFFF#000000##000000
##987CDF1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8DE3
Deuteranopia (green-blind)
#618BDD
Tritanopia (blue-blind)
#888EA3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987cdf;
/* rgb */ color: rgb(152, 124, 223);
/* oklch */ color: oklch(65.5% 0.145 295.1);
Tailwind
colors: {
  custom: {
    50: '#b9a2e9',
    500: '#987cdf',
    950: '#000000',
  },
}
SCSS
$custom: #987cdf;
$custom-light: #b9a2e9;
$custom-dark: #000000;
JSON
{
  "hex": "#987cdf",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 223
  },
  "hsl": {
    "h": 256.97,
    "s": 60.736,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65464,
    "c": 0.14528,
    "h": 295.1
  },
  "luminance": 0.26418
}

Semantic roles & 50–950 ramp

primary
#987CDF
secondary
#E2EBCC
accent
#C81D98
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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