#987DF6#987DF6

#987DF6 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.0% C 0.174 H 291.2°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#987DF6
RGBrgb(152, 125, 246)
HSLhsl(253, 87%, 73%)
HSVhsv(253, 49%, 96%)
CMYKcmyk(38.2%, 49.2%, 0%, 3.5%)
CIE-LABlab(59.88, 37.71, -57.30)
CIE-LCHlch(59.88, 68.59, 303.35°)
OKLaboklab(66.95% 0.063 -0.1622)
OKLCHoklch(66.95% 0.174 291.2)
XYZxyz(36.9126, 27.9955, 90.6297)
Luminance0.2800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF6 #DBF67D
analogous
#7D9FF6 #987DF6 #D47DF6
triadic
#987DF6 #F6987D #7DF698
tetradic
#987DF6 #F67D9F #DBF67D #7DF6D4
square
#987DF6 #F67D9F #DBF67D #7DF6D4
split-complementary
#987DF6 #F6D47D #9FF67D
monochromatic
#4010E9 #6B44F2 #987DF6 #C5B6FA #E8E2FD

Accessibility & contrast

On white

3.18
#987DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#987DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DF6
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DF6#FFFFFF#000000##000000
##987DF61.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D92FA
Deuteranopia (green-blind)
#518EF3
Tritanopia (blue-blind)
#7F95AE
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987df6;
/* rgb */ color: rgb(152, 125, 246);
/* oklch */ color: oklch(67.0% 0.174 291.2);
Tailwind
colors: {
  custom: {
    50: '#baa3fa',
    500: '#987df6',
    950: '#000000',
  },
}
SCSS
$custom: #987df6;
$custom-light: #baa3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987df6",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 246
  },
  "hsl": {
    "h": 253.388,
    "s": 87.05,
    "l": 72.745
  },
  "oklch": {
    "l": 0.66951,
    "c": 0.174,
    "h": 291.2
  },
  "luminance": 0.27996
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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