#987DF1#987DF1

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

Color values

HEX#987DF1
RGBrgb(152, 125, 241)
HSLhsl(254, 81%, 72%)
HSVhsv(254, 48%, 95%)
CMYKcmyk(36.9%, 48.1%, 0%, 5.5%)
CIE-LABlab(59.61, 36.38, -54.97)
CIE-LCHlch(59.61, 65.92, 303.50°)
OKLaboklab(66.66% 0.0626 -0.1554)
OKLCHoklch(66.66% 0.167 291.9)
XYZxyz(36.1555, 27.6926, 86.6423)
Luminance0.2769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF1 #D6F17D
analogous
#7D9CF1 #987DF1 #D27DF1
triadic
#987DF1 #F1987D #7DF198
tetradic
#987DF1 #F17D9C #D6F17D #7DF1D2
square
#987DF1 #F17D9C #D6F17D #7DF1D2
split-complementary
#987DF1 #F1D27D #9CF17D
monochromatic
#4518DC #6C46EB #987DF1 #C4B4F7 #E9E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987DF1#FFFFFF#000000##000000
##987DF11.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)
#5291F5
Deuteranopia (green-blind)
#558DEE
Tritanopia (blue-blind)
#8194AC
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987df1;
/* rgb */ color: rgb(152, 125, 241);
/* oklch */ color: oklch(66.7% 0.167 291.9);
Tailwind
colors: {
  custom: {
    50: '#baa3f6',
    500: '#987df1',
    950: '#000000',
  },
}
SCSS
$custom: #987df1;
$custom-light: #baa3f6;
$custom-dark: #000000;
JSON
{
  "hex": "#987df1",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 241
  },
  "hsl": {
    "h": 253.966,
    "s": 80.556,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66656,
    "c": 0.16749,
    "h": 291.9
  },
  "luminance": 0.27694
}

Semantic roles & 50–950 ramp

primary
#987DF1
secondary
#EDF4D6
accent
#DD09AB
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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