#987FFF#987FFF

#987FFF is a light, vivid violet. Relative luminance 0.291; OKLCH L 67.8% C 0.183 H 289.6°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#987FFF
RGBrgb(152, 127, 255)
HSLhsl(252, 100%, 75%)
HSVhsv(252, 50%, 100%)
CMYKcmyk(40.4%, 50.2%, 0%, 0%)
CIE-LABlab(60.85, 38.99, -60.72)
CIE-LCHlch(60.85, 72.16, 302.70°)
OKLaboklab(67.83% 0.0613 -0.1722)
OKLCHoklch(67.83% 0.183 289.6)
XYZxyz(38.5833, 29.0729, 98.1671)
Luminance0.2907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FFF #E6FF7F
analogous
#7FA6FF #987FFF #D87FFF
triadic
#987FFF #FF987F #7FFF98
tetradic
#987FFF #FF7FA6 #E6FF7F #7FFFD8
square
#987FFF #FF7FA6 #E6FF7F #7FFFD8
split-complementary
#987FFF #FFD87F #A6FF7F
monochromatic
#3605FF #6742FF #987FFF #C9BCFF #E6E0FF

Accessibility & contrast

On white

3.08
#987FFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#987FFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FFF
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FFF#FFFFFF#000000##000000
##987FFF1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4995FF
Deuteranopia (green-blind)
#4B90FC
Tritanopia (blue-blind)
#7B99B3
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #987fff;
/* rgb */ color: rgb(152, 127, 255);
/* oklch */ color: oklch(67.8% 0.183 289.6);
Tailwind
colors: {
  custom: {
    50: '#bba4ff',
    500: '#987fff',
    950: '#000000',
  },
}
SCSS
$custom: #987fff;
$custom-light: #bba4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987fff",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 255
  },
  "hsl": {
    "h": 251.719,
    "s": 100,
    "l": 74.902
  },
  "oklch": {
    "l": 0.67833,
    "c": 0.1828,
    "h": 289.6
  },
  "luminance": 0.29074
}

Semantic roles & 50–950 ramp

primary
#987FFF
secondary
#F0F7D4
accent
#E600B9
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987FFF

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

Preview Lab → · Contrast checker → · Palette generator →

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