#987CFD#987CFD

#987CFD is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.2% C 0.184 H 290.6°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#987CFD
RGBrgb(152, 124, 253)
HSLhsl(253, 97%, 74%)
HSVhsv(253, 51%, 99%)
CMYKcmyk(39.9%, 51%, 0%, 0.8%)
CIE-LABlab(60.05, 40.15, -60.89)
CIE-LCHlch(60.05, 72.93, 303.40°)
OKLaboklab(67.2% 0.0648 -0.1727)
OKLCHoklch(67.2% 0.184 290.6)
XYZxyz(37.8813, 28.1814, 96.3531)
Luminance0.2818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CFD #E1FD7C
analogous
#7CA1FD #987CFD #D87CFD
triadic
#987CFD #FD987C #7CFD98
tetradic
#987CFD #FD7CA1 #E1FD7C #7CFDD8
square
#987CFD #FD7CA1 #E1FD7C #7CFDD8
split-complementary
#987CFD #FDD87C #A1FD7C
monochromatic
#3904FB #6940FC #987CFD #C7B8FE #E7E1FF

Accessibility & contrast

On white

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

On black

6.64
#987CFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CFD
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CFD#FFFFFF#000000##000000
##987CFD1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4593FF
Deuteranopia (green-blind)
#488EFA
Tritanopia (blue-blind)
#7C97B1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987cfd;
/* rgb */ color: rgb(152, 124, 253);
/* oklch */ color: oklch(67.2% 0.184 290.6);
Tailwind
colors: {
  custom: {
    50: '#bba2ff',
    500: '#987cfd',
    950: '#000000',
  },
}
SCSS
$custom: #987cfd;
$custom-light: #bba2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987cfd",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 253
  },
  "hsl": {
    "h": 253.023,
    "s": 96.992,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67204,
    "c": 0.18447,
    "h": 290.6
  },
  "luminance": 0.28183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987CFD

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

Preview Lab → · Contrast checker → · Palette generator →

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