#987CD3#987CD3

#987CD3 is a light, vivid violet. Relative luminance 0.258; OKLCH L 64.8% C 0.129 H 297.5°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#987CD3
RGBrgb(152, 124, 211)
HSLhsl(259, 50%, 66%)
HSVhsv(259, 41%, 83%)
CMYKcmyk(28%, 41.2%, 0%, 17.3%)
CIE-LABlab(57.84, 29.24, -41.02)
CIE-LCHlch(57.84, 50.37, 305.48°)
OKLaboklab(64.83% 0.0597 -0.1147)
OKLCHoklch(64.83% 0.129 297.5)
XYZxyz(31.9116, 25.7935, 64.9128)
Luminance0.2579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CD3 #B7D37C
analogous
#7C8BD3 #987CD3 #C37CD3
triadic
#987CD3 #D3987C #7CD398
tetradic
#987CD3 #D37C8B #B7D37C #7CD3C3
square
#987CD3 #D37C8B #B7D37C #7CD3C3
split-complementary
#987CD3 #D3C37C #8BD37C
monochromatic
#57359F #744EC4 #987CD3 #BCAAE2 #E0D8F2

Accessibility & contrast

On white

3.41
#987CD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#987CD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CD3
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CD3#FFFFFF#000000##000000
##987CD31.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#648BD6
Deuteranopia (green-blind)
#698AD1
Tritanopia (blue-blind)
#8C8B9D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987cd3;
/* rgb */ color: rgb(152, 124, 211);
/* oklch */ color: oklch(64.8% 0.129 297.5);
Tailwind
colors: {
  custom: {
    50: '#b8a2e1',
    500: '#987cd3',
    950: '#000000',
  },
}
SCSS
$custom: #987cd3;
$custom-light: #b8a2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#987cd3",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 211
  },
  "hsl": {
    "h": 259.31,
    "s": 49.714,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64825,
    "c": 0.12927,
    "h": 297.5
  },
  "luminance": 0.25794
}

Semantic roles & 50–950 ramp

primary
#987CD3
secondary
#DBE4C7
accent
#BD288D
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#120F15
muted
#817F83

Preview Lab

Preview with #987CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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