#987CF4#987CF4

#987CF4 is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.7% C 0.173 H 291.8°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#987CF4
RGBrgb(152, 124, 244)
HSLhsl(254, 85%, 72%)
HSVhsv(254, 49%, 96%)
CMYKcmyk(37.7%, 49.2%, 0%, 4.3%)
CIE-LABlab(59.55, 37.74, -56.73)
CIE-LCHlch(59.55, 68.14, 303.63°)
OKLaboklab(66.66% 0.0641 -0.1605)
OKLCHoklch(66.66% 0.173 291.8)
XYZxyz(36.4813, 27.6214, 88.9798)
Luminance0.2762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CF4 #D8F47C
analogous
#7C9CF4 #987CF4 #D47CF4
triadic
#987CF4 #F4987C #7CF498
tetradic
#987CF4 #F47C9C #D8F47C #7CF4D4
square
#987CF4 #F47C9C #D8F47C #7CF4D4
split-complementary
#987CF4 #F4D47C #9CF47C
monochromatic
#4313E3 #6C44EF #987CF4 #C4B4F9 #E9E3FD

Accessibility & contrast

On white

3.22
#987CF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#987CF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CF4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CF4#FFFFFF#000000##000000
##987CF41.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D91F8
Deuteranopia (green-blind)
#518DF1
Tritanopia (blue-blind)
#8094AD
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987cf4;
/* rgb */ color: rgb(152, 124, 244);
/* oklch */ color: oklch(66.7% 0.173 291.8);
Tailwind
colors: {
  custom: {
    50: '#baa2f8',
    500: '#987cf4',
    950: '#000000',
  },
}
SCSS
$custom: #987cf4;
$custom-light: #baa2f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987cf4",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 244
  },
  "hsl": {
    "h": 254,
    "s": 84.507,
    "l": 72.157
  },
  "oklch": {
    "l": 0.66661,
    "c": 0.17285,
    "h": 291.8
  },
  "luminance": 0.27622
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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