#987DF9#987DF9

#987DF9 is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.1% C 0.178 H 290.8°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#987DF9
RGBrgb(152, 125, 249)
HSLhsl(253, 91%, 73%)
HSVhsv(253, 50%, 98%)
CMYKcmyk(39%, 49.8%, 0%, 2.4%)
CIE-LABlab(60.05, 38.51, -58.69)
CIE-LCHlch(60.05, 70.19, 303.27°)
OKLaboklab(67.13% 0.0633 -0.1662)
OKLCHoklch(67.13% 0.178 290.8)
XYZxyz(37.3768, 28.1811, 93.0744)
Luminance0.2818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF9 #DEF97D
analogous
#7DA0F9 #987DF9 #D67DF9
triadic
#987DF9 #F9987D #7DF998
tetradic
#987DF9 #F97DA0 #DEF97D #7DF9D6
square
#987DF9 #F97DA0 #DEF97D #7DF9D6
split-complementary
#987DF9 #F9D67D #A0F97D
monochromatic
#3D0BF0 #6A42F6 #987DF9 #C6B7FC #E8E2FE

Accessibility & contrast

On white

3.16
#987DF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#987DF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DF9
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DF9#FFFFFF#000000##000000
##987DF91.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B93FD
Deuteranopia (green-blind)
#4E8EF6
Tritanopia (blue-blind)
#7E96AF
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987df9;
/* rgb */ color: rgb(152, 125, 249);
/* oklch */ color: oklch(67.1% 0.178 290.8);
Tailwind
colors: {
  custom: {
    50: '#bba3fc',
    500: '#987df9',
    950: '#000000',
  },
}
SCSS
$custom: #987df9;
$custom-light: #bba3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#987df9",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 249
  },
  "hsl": {
    "h": 253.065,
    "s": 91.176,
    "l": 73.333
  },
  "oklch": {
    "l": 0.6713,
    "c": 0.17789,
    "h": 290.8
  },
  "luminance": 0.28182
}

Semantic roles & 50–950 ramp

primary
#987DF9
secondary
#EFF6D5
accent
#E600B4
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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