#987DF4#987DF4

#987DF4 is a light, vivid violet. Relative luminance 0.279; OKLCH L 66.8% C 0.171 H 291.5°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#987DF4
RGBrgb(152, 125, 244)
HSLhsl(254, 84%, 72%)
HSVhsv(254, 49%, 96%)
CMYKcmyk(37.7%, 48.8%, 0%, 4.3%)
CIE-LABlab(59.77, 37.17, -56.37)
CIE-LCHlch(59.77, 67.52, 303.40°)
OKLaboklab(66.83% 0.0629 -0.1595)
OKLCHoklch(66.83% 0.171 291.5)
XYZxyz(36.6073, 27.8733, 89.0218)
Luminance0.2787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF4 #D9F47D
analogous
#7D9EF4 #987DF4 #D37DF4
triadic
#987DF4 #F4987D #7DF498
tetradic
#987DF4 #F47D9E #D9F47D #7DF4D3
square
#987DF4 #F47D9E #D9F47D #7DF4D3
split-complementary
#987DF4 #F4D37D #9EF47D
monochromatic
#4213E3 #6B45EF #987DF4 #C5B5F9 #E9E3FD

Accessibility & contrast

On white

3.19
#987DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#987DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DF4
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DF4#FFFFFF#000000##000000
##987DF41.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F92F8
Deuteranopia (green-blind)
#538EF1
Tritanopia (blue-blind)
#8095AD
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987df4;
/* rgb */ color: rgb(152, 125, 244);
/* oklch */ color: oklch(66.8% 0.171 291.5);
Tailwind
colors: {
  custom: {
    50: '#baa3f8',
    500: '#987df4',
    950: '#000000',
  },
}
SCSS
$custom: #987df4;
$custom-light: #baa3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987df4",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 244
  },
  "hsl": {
    "h": 253.613,
    "s": 84.397,
    "l": 72.353
  },
  "oklch": {
    "l": 0.66832,
    "c": 0.1714,
    "h": 291.5
  },
  "luminance": 0.27874
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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