#987DFB#987DFB

#987DFB is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.3% C 0.180 H 290.6°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#987DFB
RGBrgb(152, 125, 251)
HSLhsl(253, 94%, 74%)
HSVhsv(253, 50%, 98%)
CMYKcmyk(39.4%, 50.2%, 0%, 1.6%)
CIE-LABlab(60.16, 39.04, -59.61)
CIE-LCHlch(60.16, 71.26, 303.22°)
OKLaboklab(67.25% 0.0634 -0.169)
OKLCHoklch(67.25% 0.18 290.6)
XYZxyz(37.6903, 28.3066, 94.7260)
Luminance0.2831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DFB #E0FB7D
analogous
#7DA1FB #987DFB #D77DFB
triadic
#987DFB #FB987D #7DFB98
tetradic
#987DFB #FB7DA1 #E0FB7D #7DFBD7
square
#987DFB #FB7DA1 #E0FB7D #7DFBD7
split-complementary
#987DFB #FBD77D #A1FB7D
monochromatic
#3B08F6 #6942F9 #987DFB #C7B8FD #E7E1FE

Accessibility & contrast

On white

3.15
#987DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#987DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DFB
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DFB#FFFFFF#000000##000000
##987DFB1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4993FF
Deuteranopia (green-blind)
#4C8EF8
Tritanopia (blue-blind)
#7D97B0
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987dfb;
/* rgb */ color: rgb(152, 125, 251);
/* oklch */ color: oklch(67.3% 0.180 290.6);
Tailwind
colors: {
  custom: {
    50: '#bba3fd',
    500: '#987dfb',
    950: '#000000',
  },
}
SCSS
$custom: #987dfb;
$custom-light: #bba3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#987dfb",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 252.857,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.67251,
    "c": 0.18048,
    "h": 290.6
  },
  "luminance": 0.28308
}

Semantic roles & 50–950 ramp

primary
#987DFB
secondary
#EFF6D5
accent
#E600B4
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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