#987FF6#987FF6

#987FF6 is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.3% C 0.171 H 290.7°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#987FF6
RGBrgb(152, 127, 246)
HSLhsl(253, 87%, 73%)
HSVhsv(253, 48%, 96%)
CMYKcmyk(38.2%, 48.4%, 0%, 3.5%)
CIE-LABlab(60.34, 36.57, -56.57)
CIE-LCHlch(60.34, 67.36, 302.88°)
OKLaboklab(67.3% 0.0606 -0.16)
OKLCHoklch(67.3% 0.171 290.7)
XYZxyz(37.1683, 28.5069, 90.7150)
Luminance0.2851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FF6 #DDF67F
analogous
#7FA1F6 #987FF6 #D37FF6
triadic
#987FF6 #F6987F #7FF698
tetradic
#987FF6 #F67FA1 #DDF67F #7FF6D3
square
#987FF6 #F67FA1 #DDF67F #7FF6D3
split-complementary
#987FF6 #F6D37F #A1F67F
monochromatic
#3E10EA #6A46F2 #987FF6 #C6B8FA #E8E2FD

Accessibility & contrast

On white

3.13
#987FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#987FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FF6
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FF6#FFFFFF#000000##000000
##987FF61.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5194FA
Deuteranopia (green-blind)
#548FF3
Tritanopia (blue-blind)
#7F97AF
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ff6;
/* rgb */ color: rgb(152, 127, 246);
/* oklch */ color: oklch(67.3% 0.171 290.7);
Tailwind
colors: {
  custom: {
    50: '#baa4fa',
    500: '#987ff6',
    950: '#000000',
  },
}
SCSS
$custom: #987ff6;
$custom-light: #baa4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987ff6",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 246
  },
  "hsl": {
    "h": 252.605,
    "s": 86.861,
    "l": 73.137
  },
  "oklch": {
    "l": 0.67295,
    "c": 0.17111,
    "h": 290.7
  },
  "luminance": 0.28508
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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