#987CFE#987CFE

#987CFE is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.3% C 0.186 H 290.4°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#987CFE
RGBrgb(152, 124, 254)
HSLhsl(253, 98%, 74%)
HSVhsv(253, 51%, 100%)
CMYKcmyk(40.2%, 51.2%, 0%, 0.4%)
CIE-LABlab(60.11, 40.42, -61.35)
CIE-LCHlch(60.11, 73.46, 303.38°)
OKLaboklab(67.27% 0.0648 -0.1741)
OKLCHoklch(67.27% 0.186 290.4)
XYZxyz(38.0410, 28.2453, 97.1943)
Luminance0.2825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CFE #E2FE7C
analogous
#7CA1FE #987CFE #D97CFE
triadic
#987CFE #FE987C #7CFE98
tetradic
#987CFE #FE7CA1 #E2FE7C #7CFED9
square
#987CFE #FE7CA1 #E2FE7C #7CFED9
split-complementary
#987CFE #FED97C #A1FE7C
monochromatic
#3803FD #683FFE #987CFE #C8B9FE #E7E1FF

Accessibility & contrast

On white

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

On black

6.65
#987CFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CFE
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CFE#FFFFFF#000000##000000
##987CFE1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4393FF
Deuteranopia (green-blind)
#478EFB
Tritanopia (blue-blind)
#7C97B1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987cfe;
/* rgb */ color: rgb(152, 124, 254);
/* oklch */ color: oklch(67.3% 0.186 290.4);
Tailwind
colors: {
  custom: {
    50: '#bba2ff',
    500: '#987cfe',
    950: '#000000',
  },
}
SCSS
$custom: #987cfe;
$custom-light: #bba2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987cfe",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 254
  },
  "hsl": {
    "h": 252.923,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.67265,
    "c": 0.18574,
    "h": 290.4
  },
  "luminance": 0.28246
}

Semantic roles & 50–950 ramp

primary
#987CFE
secondary
#F0F7D4
accent
#E600B4
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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