#987DFE#987DFE

#987DFE is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.4% C 0.184 H 290.2°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#987DFE
RGBrgb(152, 125, 254)
HSLhsl(253, 98%, 74%)
HSVhsv(253, 51%, 100%)
CMYKcmyk(40.2%, 50.8%, 0%, 0.4%)
CIE-LABlab(60.34, 39.85, -60.99)
CIE-LCHlch(60.34, 72.85, 303.16°)
OKLaboklab(67.43% 0.0637 -0.173)
OKLCHoklch(67.43% 0.184 290.2)
XYZxyz(38.1670, 28.4972, 97.2363)
Luminance0.2850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DFE #E3FE7D
analogous
#7DA3FE #987DFE #D97DFE
triadic
#987DFE #FE987D #7DFE98
tetradic
#987DFE #FE7DA3 #E3FE7D #7DFED9
square
#987DFE #FE7DA3 #E3FE7D #7DFED9
split-complementary
#987DFE #FED97D #A3FE7D
monochromatic
#3804FD #6840FE #987DFE #C8BAFE #E7E1FF

Accessibility & contrast

On white

3.13
#987DFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#987DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DFE
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DFE#FFFFFF#000000##000000
##987DFE1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4694FF
Deuteranopia (green-blind)
#498FFB
Tritanopia (blue-blind)
#7C98B2
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987dfe;
/* rgb */ color: rgb(152, 125, 254);
/* oklch */ color: oklch(67.4% 0.184 290.2);
Tailwind
colors: {
  custom: {
    50: '#bba3ff',
    500: '#987dfe',
    950: '#000000',
  },
}
SCSS
$custom: #987dfe;
$custom-light: #bba3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987dfe",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 252.558,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.67433,
    "c": 0.18434,
    "h": 290.2
  },
  "luminance": 0.28498
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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