#987CF5#987CF5

#987CF5 is a light, vivid violet. Relative luminance 0.277; OKLCH L 66.7% C 0.174 H 291.6°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#987CF5
RGBrgb(152, 124, 245)
HSLhsl(254, 86%, 72%)
HSVhsv(254, 49%, 96%)
CMYKcmyk(38%, 49.4%, 0%, 3.9%)
CIE-LABlab(59.60, 38.01, -57.20)
CIE-LCHlch(59.60, 68.68, 303.60°)
OKLaboklab(66.72% 0.0642 -0.1619)
OKLCHoklch(66.72% 0.174 291.6)
XYZxyz(36.6336, 27.6823, 89.7816)
Luminance0.2768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CF5 #D9F57C
analogous
#7C9DF5 #987CF5 #D47CF5
triadic
#987CF5 #F5987C #7CF598
tetradic
#987CF5 #F57C9D #D9F57C #7CF5D4
square
#987CF5 #F57C9D #D9F57C #7CF5D4
split-complementary
#987CF5 #F5D47C #9DF57C
monochromatic
#4211E5 #6B43F1 #987CF5 #C5B5F9 #E9E3FD

Accessibility & contrast

On white

3.21
#987CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#987CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CF5
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CF5#FFFFFF#000000##000000
##987CF51.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C91F9
Deuteranopia (green-blind)
#508DF2
Tritanopia (blue-blind)
#8094AD
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987cf5;
/* rgb */ color: rgb(152, 124, 245);
/* oklch */ color: oklch(66.7% 0.174 291.6);
Tailwind
colors: {
  custom: {
    50: '#baa2f9',
    500: '#987cf5',
    950: '#000000',
  },
}
SCSS
$custom: #987cf5;
$custom-light: #baa2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#987cf5",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 245
  },
  "hsl": {
    "h": 253.884,
    "s": 85.816,
    "l": 72.353
  },
  "oklch": {
    "l": 0.66721,
    "c": 0.17415,
    "h": 291.6
  },
  "luminance": 0.27683
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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