#987DD2#987DD2

#987DD2 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.0% C 0.126 H 297.4°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#987DD2
RGBrgb(152, 125, 210)
HSLhsl(259, 49%, 66%)
HSVhsv(259, 40%, 82%)
CMYKcmyk(27.6%, 40.5%, 0%, 17.6%)
CIE-LABlab(58.03, 28.41, -40.15)
CIE-LCHlch(58.03, 49.19, 305.28°)
OKLaboklab(64.95% 0.0581 -0.1121)
OKLCHoklch(64.95% 0.126 297.4)
XYZxyz(31.9126, 25.9955, 64.2966)
Luminance0.2600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DD2 #B7D27D
analogous
#7D8CD2 #987DD2 #C27DD2
triadic
#987DD2 #D2987D #7DD298
tetradic
#987DD2 #D27D8C #B7D27D #7DD2C2
square
#987DD2 #D27D8C #B7D27D #7DD2C2
split-complementary
#987DD2 #D2C27D #8CD27D
monochromatic
#57379E #7450C2 #987DD2 #BCAAE2 #E0D8F1

Accessibility & contrast

On white

3.39
#987DD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#987DD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DD2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DD2#FFFFFF#000000##000000
##987DD21.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#668CD5
Deuteranopia (green-blind)
#6A8BD0
Tritanopia (blue-blind)
#8C8C9D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987dd2;
/* rgb */ color: rgb(152, 125, 210);
/* oklch */ color: oklch(65.0% 0.126 297.4);
Tailwind
colors: {
  custom: {
    50: '#b8a3e0',
    500: '#987dd2',
    950: '#000000',
  },
}
SCSS
$custom: #987dd2;
$custom-light: #b8a3e0;
$custom-dark: #000000;
JSON
{
  "hex": "#987dd2",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 210
  },
  "hsl": {
    "h": 259.059,
    "s": 48.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64954,
    "c": 0.12632,
    "h": 297.4
  },
  "luminance": 0.25996
}

Semantic roles & 50–950 ramp

primary
#987DD2
secondary
#DBE4C7
accent
#BC2A8D
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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