#987EFF#987EFF

#987EFF is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.7% C 0.184 H 289.8°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#987EFF
RGBrgb(152, 126, 255)
HSLhsl(252, 100%, 75%)
HSVhsv(252, 51%, 100%)
CMYKcmyk(40.4%, 50.6%, 0%, 0%)
CIE-LABlab(60.62, 39.55, -61.08)
CIE-LCHlch(60.62, 72.77, 302.92°)
OKLaboklab(67.66% 0.0625 -0.1733)
OKLCHoklch(67.66% 0.184 289.8)
XYZxyz(38.4548, 28.8159, 98.1243)
Luminance0.2882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EFF #E5FF7E
analogous
#7EA5FF #987EFF #D97EFF
triadic
#987EFF #FF987E #7EFF98
tetradic
#987EFF #FF7EA5 #E5FF7E #7EFFD9
square
#987EFF #FF7EA5 #E5FF7E #7EFFD9
split-complementary
#987EFF #FFD97E #A5FF7E
monochromatic
#3604FF #6741FF #987EFF #C9BBFF #E7E0FF

Accessibility & contrast

On white

3.10
#987EFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#987EFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EFF
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EFF#FFFFFF#000000##000000
##987EFF1.003.106.766.76
#FFFFFF3.101.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4795FF
Deuteranopia (green-blind)
#498FFC
Tritanopia (blue-blind)
#7B99B3
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987eff;
/* rgb */ color: rgb(152, 126, 255);
/* oklch */ color: oklch(67.7% 0.184 289.8);
Tailwind
colors: {
  custom: {
    50: '#bba4ff',
    500: '#987eff',
    950: '#000000',
  },
}
SCSS
$custom: #987eff;
$custom-light: #bba4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987eff",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 255
  },
  "hsl": {
    "h": 252.093,
    "s": 100,
    "l": 74.706
  },
  "oklch": {
    "l": 0.67663,
    "c": 0.18422,
    "h": 289.8
  },
  "luminance": 0.28817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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