#987DFD#987DFD

#987DFD is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.4% C 0.183 H 290.3°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#987DFD
RGBrgb(152, 125, 253)
HSLhsl(253, 97%, 74%)
HSVhsv(253, 51%, 99%)
CMYKcmyk(39.9%, 50.6%, 0%, 0.8%)
CIE-LABlab(60.28, 39.58, -60.53)
CIE-LCHlch(60.28, 72.32, 303.18°)
OKLaboklab(67.37% 0.0636 -0.1716)
OKLCHoklch(67.37% 0.183 290.3)
XYZxyz(38.0073, 28.4333, 96.3951)
Luminance0.2843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DFD #E2FD7D
analogous
#7DA2FD #987DFD #D87DFD
triadic
#987DFD #FD987D #7DFD98
tetradic
#987DFD #FD7DA2 #E2FD7D #7DFDD8
square
#987DFD #FD7DA2 #E2FD7D #7DFDD8
split-complementary
#987DFD #FDD87D #A2FD7D
monochromatic
#3804FB #6841FC #987DFD #C8B9FE #E7E1FF

Accessibility & contrast

On white

3.14
#987DFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#987DFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DFD
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DFD#FFFFFF#000000##000000
##987DFD1.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4794FF
Deuteranopia (green-blind)
#4A8EFA
Tritanopia (blue-blind)
#7C97B1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987dfd;
/* rgb */ color: rgb(152, 125, 253);
/* oklch */ color: oklch(67.4% 0.183 290.3);
Tailwind
colors: {
  custom: {
    50: '#bba3ff',
    500: '#987dfd',
    950: '#000000',
  },
}
SCSS
$custom: #987dfd;
$custom-light: #bba3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987dfd",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 253
  },
  "hsl": {
    "h": 252.656,
    "s": 96.97,
    "l": 74.118
  },
  "oklch": {
    "l": 0.67372,
    "c": 0.18305,
    "h": 290.3
  },
  "luminance": 0.28434
}

Semantic roles & 50–950 ramp

primary
#987DFD
secondary
#F0F7D4
accent
#E600B5
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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