#987FFE#987FFE

#987FFE is a light, vivid violet. Relative luminance 0.290; OKLCH L 67.8% C 0.182 H 289.7°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#987FFE
RGBrgb(152, 127, 254)
HSLhsl(252, 98%, 75%)
HSVhsv(252, 50%, 100%)
CMYKcmyk(40.2%, 50%, 0%, 0.4%)
CIE-LABlab(60.79, 38.71, -60.26)
CIE-LCHlch(60.79, 71.62, 302.72°)
OKLaboklab(67.77% 0.0613 -0.1709)
OKLCHoklch(67.77% 0.182 289.7)
XYZxyz(38.4227, 29.0087, 97.3215)
Luminance0.2901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FFE #E5FE7F
analogous
#7FA6FE #987FFE #D87FFE
triadic
#987FFE #FE987F #7FFE98
tetradic
#987FFE #FE7FA6 #E5FE7F #7FFED8
square
#987FFE #FE7FA6 #E5FE7F #7FFED8
split-complementary
#987FFE #FED87F #A6FE7F
monochromatic
#3606FD #6742FE #987FFE #C9BCFE #E7E1FF

Accessibility & contrast

On white

3.09
#987FFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#987FFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FFE
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FFE#FFFFFF#000000##000000
##987FFE1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A95FF
Deuteranopia (green-blind)
#4C90FB
Tritanopia (blue-blind)
#7C99B3
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #987ffe;
/* rgb */ color: rgb(152, 127, 254);
/* oklch */ color: oklch(67.8% 0.182 289.7);
Tailwind
colors: {
  custom: {
    50: '#bba4ff',
    500: '#987ffe',
    950: '#000000',
  },
}
SCSS
$custom: #987ffe;
$custom-light: #bba4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987ffe",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 254
  },
  "hsl": {
    "h": 251.811,
    "s": 98.45,
    "l": 74.706
  },
  "oklch": {
    "l": 0.67772,
    "c": 0.18151,
    "h": 289.7
  },
  "luminance": 0.2901
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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