#987FF5#987FF5

#987FF5 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.2% C 0.170 H 290.9°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#987FF5
RGBrgb(152, 127, 245)
HSLhsl(253, 86%, 73%)
HSVhsv(253, 48%, 96%)
CMYKcmyk(38%, 48.2%, 0%, 3.9%)
CIE-LABlab(60.29, 36.30, -56.10)
CIE-LCHlch(60.29, 66.82, 302.90°)
OKLaboklab(67.24% 0.0605 -0.1587)
OKLCHoklch(67.24% 0.17 290.9)
XYZxyz(37.0153, 28.4457, 89.9088)
Luminance0.2845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FF5 #DCF57F
analogous
#7FA1F5 #987FF5 #D37FF5
triadic
#987FF5 #F5987F #7FF598
tetradic
#987FF5 #F57FA1 #DCF57F #7FF5D3
square
#987FF5 #F57FA1 #DCF57F #7FF5D3
split-complementary
#987FF5 #F5D37F #A1F57F
monochromatic
#3F12E8 #6A46F1 #987FF5 #C6B8F9 #E8E3FD

Accessibility & contrast

On white

3.14
#987FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#987FF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FF5
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FF5#FFFFFF#000000##000000
##987FF51.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5293F9
Deuteranopia (green-blind)
#558FF2
Tritanopia (blue-blind)
#8097AE
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ff5;
/* rgb */ color: rgb(152, 127, 245);
/* oklch */ color: oklch(67.2% 0.170 290.9);
Tailwind
colors: {
  custom: {
    50: '#baa4f9',
    500: '#987ff5',
    950: '#000000',
  },
}
SCSS
$custom: #987ff5;
$custom-light: #baa4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#987ff5",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 245
  },
  "hsl": {
    "h": 252.712,
    "s": 85.507,
    "l": 72.941
  },
  "oklch": {
    "l": 0.67236,
    "c": 0.16981,
    "h": 290.9
  },
  "luminance": 0.28447
}

Semantic roles & 50–950 ramp

primary
#987FF5
secondary
#EEF5D6
accent
#E203B3
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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