#987EFD#987EFD

#987EFD is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.5% C 0.182 H 290.1°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#987EFD
RGBrgb(152, 126, 253)
HSLhsl(252, 97%, 74%)
HSVhsv(252, 50%, 99%)
CMYKcmyk(39.9%, 50.2%, 0%, 0.8%)
CIE-LABlab(60.51, 39.01, -60.16)
CIE-LCHlch(60.51, 71.71, 302.96°)
OKLaboklab(67.54% 0.0624 -0.1706)
OKLCHoklch(67.54% 0.182 290.1)
XYZxyz(38.1345, 28.6878, 96.4375)
Luminance0.2869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EFD #E3FD7E
analogous
#7EA4FD #987EFD #D77EFD
triadic
#987EFD #FD987E #7EFD98
tetradic
#987EFD #FD7EA4 #E3FD7E #7EFDD7
square
#987EFD #FD7EA4 #E3FD7E #7EFDD7
split-complementary
#987EFD #FDD77E #A4FD7E
monochromatic
#3805FB #6842FC #987EFD #C8BAFE #E7E1FF

Accessibility & contrast

On white

3.12
#987EFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#987EFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EFD
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EFD#FFFFFF#000000##000000
##987EFD1.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4994FF
Deuteranopia (green-blind)
#4B8FFA
Tritanopia (blue-blind)
#7C98B2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987efd;
/* rgb */ color: rgb(152, 126, 253);
/* oklch */ color: oklch(67.5% 0.182 290.1);
Tailwind
colors: {
  custom: {
    50: '#bba4ff',
    500: '#987efd',
    950: '#000000',
  },
}
SCSS
$custom: #987efd;
$custom-light: #bba4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987efd",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 252.283,
    "s": 96.947,
    "l": 74.314
  },
  "oklch": {
    "l": 0.67541,
    "c": 0.18163,
    "h": 290.1
  },
  "luminance": 0.28689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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