#987CFB#987CFB

#987CFB is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.1% C 0.182 H 290.8°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#987CFB
RGBrgb(152, 124, 251)
HSLhsl(253, 94%, 74%)
HSVhsv(253, 51%, 98%)
CMYKcmyk(39.4%, 50.6%, 0%, 1.6%)
CIE-LABlab(59.94, 39.61, -59.97)
CIE-LCHlch(59.94, 71.87, 303.44°)
OKLaboklab(67.08% 0.0647 -0.17)
OKLCHoklch(67.08% 0.182 290.8)
XYZxyz(37.5644, 28.0547, 94.6840)
Luminance0.2806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CFB #DFFB7C
analogous
#7C9FFB #987CFB #D77CFB
triadic
#987CFB #FB987C #7CFB98
tetradic
#987CFB #FB7C9F #DFFB7C #7CFBD7
square
#987CFB #FB7C9F #DFFB7C #7CFBD7
split-complementary
#987CFB #FBD77C #9FFB7C
monochromatic
#3C07F5 #6941F9 #987CFB #C7B7FD #E8E1FE

Accessibility & contrast

On white

3.18
#987CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#987CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CFB
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CFB#FFFFFF#000000##000000
##987CFB1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4793FF
Deuteranopia (green-blind)
#4A8EF8
Tritanopia (blue-blind)
#7D96B0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987cfb;
/* rgb */ color: rgb(152, 124, 251);
/* oklch */ color: oklch(67.1% 0.182 290.8);
Tailwind
colors: {
  custom: {
    50: '#bba2fd',
    500: '#987cfb',
    950: '#000000',
  },
}
SCSS
$custom: #987cfb;
$custom-light: #bba2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#987cfb",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 251
  },
  "hsl": {
    "h": 253.228,
    "s": 94.074,
    "l": 73.529
  },
  "oklch": {
    "l": 0.67082,
    "c": 0.1819,
    "h": 290.8
  },
  "luminance": 0.28056
}

Semantic roles & 50–950 ramp

primary
#987CFB
secondary
#EFF6D5
accent
#E600B3
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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