#987FF7#987FF7

#987FF7 is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.4% C 0.172 H 290.6°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#987FF7
RGBrgb(152, 127, 247)
HSLhsl(253, 88%, 73%)
HSVhsv(253, 49%, 97%)
CMYKcmyk(38.5%, 48.6%, 0%, 3.1%)
CIE-LABlab(60.40, 36.83, -57.03)
CIE-LCHlch(60.40, 67.89, 302.86°)
OKLaboklab(67.35% 0.0607 -0.1614)
OKLCHoklch(67.35% 0.172 290.6)
XYZxyz(37.3222, 28.5685, 91.5255)
Luminance0.2857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FF7 #DEF77F
analogous
#7FA2F7 #987FF7 #D47FF7
triadic
#987FF7 #F7987F #7FF798
tetradic
#987FF7 #F77FA2 #DEF77F #7FF7D4
square
#987FF7 #F77FA2 #DEF77F #7FF7D4
split-complementary
#987FF7 #F7D47F #A2F77F
monochromatic
#3D0FED #6A45F3 #987FF7 #C6B9FB #E8E2FD

Accessibility & contrast

On white

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

On black

6.71
#987FF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FF7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FF7#FFFFFF#000000##000000
##987FF71.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5094FB
Deuteranopia (green-blind)
#538FF4
Tritanopia (blue-blind)
#7F97AF
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987ff7;
/* rgb */ color: rgb(152, 127, 247);
/* oklch */ color: oklch(67.4% 0.172 290.6);
Tailwind
colors: {
  custom: {
    50: '#baa4fa',
    500: '#987ff7',
    950: '#000000',
  },
}
SCSS
$custom: #987ff7;
$custom-light: #baa4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987ff7",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 247
  },
  "hsl": {
    "h": 252.5,
    "s": 88.235,
    "l": 73.333
  },
  "oklch": {
    "l": 0.67354,
    "c": 0.17242,
    "h": 290.6
  },
  "luminance": 0.2857
}

Semantic roles & 50–950 ramp

primary
#987FF7
secondary
#EFF5D6
accent
#E501B5
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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