#987DF7#987DF7

#987DF7 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.0% C 0.175 H 291.1°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#987DF7
RGBrgb(152, 125, 247)
HSLhsl(253, 88%, 73%)
HSVhsv(253, 49%, 97%)
CMYKcmyk(38.5%, 49.4%, 0%, 3.1%)
CIE-LABlab(59.94, 37.97, -57.76)
CIE-LCHlch(59.94, 69.13, 303.32°)
OKLaboklab(67.01% 0.0631 -0.1635)
OKLCHoklch(67.01% 0.175 291.1)
XYZxyz(37.0665, 28.0570, 91.4403)
Luminance0.2806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF7 #DCF77D
analogous
#7D9FF7 #987DF7 #D57DF7
triadic
#987DF7 #F7987D #7DF798
tetradic
#987DF7 #F77D9F #DCF77D #7DF7D5
square
#987DF7 #F77D9F #DCF77D #7DF7D5
split-complementary
#987DF7 #F7D57D #9FF77D
monochromatic
#3F0EEB #6A43F3 #987DF7 #C6B7FB #E8E2FD

Accessibility & contrast

On white

3.18
#987DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#987DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DF7
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DF7#FFFFFF#000000##000000
##987DF71.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C92FB
Deuteranopia (green-blind)
#508EF4
Tritanopia (blue-blind)
#7F96AE
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987df7;
/* rgb */ color: rgb(152, 125, 247);
/* oklch */ color: oklch(67.0% 0.175 291.1);
Tailwind
colors: {
  custom: {
    50: '#bba3fa',
    500: '#987df7',
    950: '#000000',
  },
}
SCSS
$custom: #987df7;
$custom-light: #bba3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987df7",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 253.279,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.6701,
    "c": 0.1753,
    "h": 291.1
  },
  "luminance": 0.28058
}

Semantic roles & 50–950 ramp

primary
#987DF7
secondary
#EEF5D6
accent
#E500B2
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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