#987DF5#987DF5

#987DF5 is a light, vivid violet. Relative luminance 0.279; OKLCH L 66.9% C 0.173 H 291.4°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#987DF5
RGBrgb(152, 125, 245)
HSLhsl(254, 86%, 73%)
HSVhsv(254, 49%, 96%)
CMYKcmyk(38%, 49%, 0%, 3.9%)
CIE-LABlab(59.83, 37.44, -56.83)
CIE-LCHlch(59.83, 68.06, 303.37°)
OKLaboklab(66.89% 0.063 -0.1608)
OKLCHoklch(66.89% 0.173 291.4)
XYZxyz(36.7595, 27.9342, 89.8236)
Luminance0.2793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF5 #DAF57D
analogous
#7D9EF5 #987DF5 #D47DF5
triadic
#987DF5 #F5987D #7DF598
tetradic
#987DF5 #F57D9E #DAF57D #7DF5D4
square
#987DF5 #F57D9E #DAF57D #7DF5D4
split-complementary
#987DF5 #F5D47D #9EF57D
monochromatic
#4112E6 #6B44F1 #987DF5 #C5B6F9 #E8E3FD

Accessibility & contrast

On white

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

On black

6.59
#987DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DF5
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DF5#FFFFFF#000000##000000
##987DF51.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E92F9
Deuteranopia (green-blind)
#528EF2
Tritanopia (blue-blind)
#8095AE
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987df5;
/* rgb */ color: rgb(152, 125, 245);
/* oklch */ color: oklch(66.9% 0.173 291.4);
Tailwind
colors: {
  custom: {
    50: '#baa3f9',
    500: '#987df5',
    950: '#000000',
  },
}
SCSS
$custom: #987df5;
$custom-light: #baa3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#987df5",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 245
  },
  "hsl": {
    "h": 253.5,
    "s": 85.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.66892,
    "c": 0.1727,
    "h": 291.4
  },
  "luminance": 0.27935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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