#987CD2#987CD2

#987CD2 is a light, vivid violet. Relative luminance 0.257; OKLCH L 64.8% C 0.128 H 297.7°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#987CD2
RGBrgb(152, 124, 210)
HSLhsl(260, 49%, 65%)
HSVhsv(260, 41%, 82%)
CMYKcmyk(27.6%, 41%, 0%, 17.6%)
CIE-LABlab(57.79, 28.99, -40.53)
CIE-LCHlch(57.79, 49.83, 305.58°)
OKLaboklab(64.77% 0.0595 -0.1132)
OKLCHoklch(64.77% 0.128 297.7)
XYZxyz(31.7867, 25.7436, 64.2546)
Luminance0.2574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CD2 #B6D27C
analogous
#7C8BD2 #987CD2 #C37CD2
triadic
#987CD2 #D2987C #7CD298
tetradic
#987CD2 #D27C8B #B6D27C #7CD2C3
square
#987CD2 #D27C8B #B6D27C #7CD2C3
split-complementary
#987CD2 #D2C37C #8BD27C
monochromatic
#58369D #744EC2 #987CD2 #BCAAE2 #E0D7F1

Accessibility & contrast

On white

3.42
#987CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#987CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CD2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CD2#FFFFFF#000000##000000
##987CD21.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #987cd2;
/* rgb */ color: rgb(152, 124, 210);
/* oklch */ color: oklch(64.8% 0.128 297.7);
Tailwind
colors: {
  custom: {
    50: '#b8a2e0',
    500: '#987cd2',
    950: '#000000',
  },
}
SCSS
$custom: #987cd2;
$custom-light: #b8a2e0;
$custom-dark: #000000;
JSON
{
  "hex": "#987cd2",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 210
  },
  "hsl": {
    "h": 259.535,
    "s": 48.864,
    "l": 65.49
  },
  "oklch": {
    "l": 0.64773,
    "c": 0.12793,
    "h": 297.7
  },
  "luminance": 0.25744
}

Semantic roles & 50–950 ramp

primary
#987CD2
secondary
#DAE3C6
accent
#BC298C
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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