#987EFE#987EFE

#987EFE is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.6% C 0.183 H 290.0°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#987EFE
RGBrgb(152, 126, 254)
HSLhsl(252, 98%, 75%)
HSVhsv(252, 50%, 100%)
CMYKcmyk(40.2%, 50.4%, 0%, 0.4%)
CIE-LABlab(60.56, 39.28, -60.62)
CIE-LCHlch(60.56, 72.24, 302.94°)
OKLaboklab(67.6% 0.0625 -0.1719)
OKLCHoklch(67.6% 0.183 290)
XYZxyz(38.2942, 28.7517, 97.2787)
Luminance0.2875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EFE #E4FE7E
analogous
#7EA4FE #987EFE #D87EFE
triadic
#987EFE #FE987E #7EFE98
tetradic
#987EFE #FE7EA4 #E4FE7E #7EFED8
square
#987EFE #FE7EA4 #E4FE7E #7EFED8
split-complementary
#987EFE #FED87E #A4FE7E
monochromatic
#3705FD #6841FE #987EFE #C8BBFE #E7E1FF

Accessibility & contrast

On white

3.11
#987EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#987EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EFE
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EFE#FFFFFF#000000##000000
##987EFE1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #987efe;
/* rgb */ color: rgb(152, 126, 254);
/* oklch */ color: oklch(67.6% 0.183 290.0);
Tailwind
colors: {
  custom: {
    50: '#bba4ff',
    500: '#987efe',
    950: '#000000',
  },
}
SCSS
$custom: #987efe;
$custom-light: #bba4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987efe",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 252.188,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.67602,
    "c": 0.18292,
    "h": 290
  },
  "luminance": 0.28753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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