#987CF7#987CF7

#987CF7 is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.8% C 0.177 H 291.4°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#987CF7
RGBrgb(152, 124, 247)
HSLhsl(254, 88%, 73%)
HSVhsv(254, 50%, 97%)
CMYKcmyk(38.5%, 49.8%, 0%, 3.1%)
CIE-LABlab(59.71, 38.54, -58.13)
CIE-LCHlch(59.71, 69.74, 303.55°)
OKLaboklab(66.84% 0.0644 -0.1646)
OKLCHoklch(66.84% 0.177 291.4)
XYZxyz(36.9405, 27.8051, 91.3983)
Luminance0.2781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CF7 #DBF77C
analogous
#7C9DF7 #987CF7 #D67CF7
triadic
#987CF7 #F7987C #7CF798
tetradic
#987CF7 #F77C9D #DBF77C #7CF7D6
square
#987CF7 #F77C9D #DBF77C #7CF7D6
split-complementary
#987CF7 #F7D67C #9DF77C
monochromatic
#400EEA #6B42F3 #987CF7 #C5B6FB #E8E2FD

Accessibility & contrast

On white

3.20
#987CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#987CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CF7
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CF7#FFFFFF#000000##000000
##987CF71.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B92FB
Deuteranopia (green-blind)
#4E8DF4
Tritanopia (blue-blind)
#7F95AE
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987cf7;
/* rgb */ color: rgb(152, 124, 247);
/* oklch */ color: oklch(66.8% 0.177 291.4);
Tailwind
colors: {
  custom: {
    50: '#bba2fa',
    500: '#987cf7',
    950: '#000000',
  },
}
SCSS
$custom: #987cf7;
$custom-light: #bba2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987cf7",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 247
  },
  "hsl": {
    "h": 253.659,
    "s": 88.489,
    "l": 72.745
  },
  "oklch": {
    "l": 0.6684,
    "c": 0.17674,
    "h": 291.4
  },
  "luminance": 0.27806
}

Semantic roles & 50–950 ramp

primary
#987CF7
secondary
#EEF5D6
accent
#E500B1
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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