#987FFA#987FFA

#987FFA is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.5% C 0.176 H 290.2°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#987FFA
RGBrgb(152, 127, 250)
HSLhsl(252, 92%, 74%)
HSVhsv(252, 49%, 98%)
CMYKcmyk(39.2%, 49.2%, 0%, 2%)
CIE-LABlab(60.56, 37.64, -58.42)
CIE-LCHlch(60.56, 69.49, 302.79°)
OKLaboklab(67.53% 0.0609 -0.1655)
OKLCHoklch(67.53% 0.176 290.2)
XYZxyz(37.7889, 28.7552, 93.9832)
Luminance0.2876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FFA #E1FA7F
analogous
#7FA4FA #987FFA #D67FFA
triadic
#987FFA #FA987F #7FFA98
tetradic
#987FFA #FA7FA4 #E1FA7F #7FFAD6
square
#987FFA #FA7FA4 #E1FA7F #7FFAD6
split-complementary
#987FFA #FAD67F #A4FA7F
monochromatic
#390AF5 #6944F8 #987FFA #C7BAFC #E7E2FE

Accessibility & contrast

On white

3.11
#987FFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#987FFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FFA
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FFA#FFFFFF#000000##000000
##987FFA1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E94FE
Deuteranopia (green-blind)
#508FF7
Tritanopia (blue-blind)
#7E98B1
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987ffa;
/* rgb */ color: rgb(152, 127, 250);
/* oklch */ color: oklch(67.5% 0.176 290.2);
Tailwind
colors: {
  custom: {
    50: '#bba4fc',
    500: '#987ffa',
    950: '#000000',
  },
}
SCSS
$custom: #987ffa;
$custom-light: #bba4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#987ffa",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 250
  },
  "hsl": {
    "h": 252.195,
    "s": 92.481,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67532,
    "c": 0.17633,
    "h": 290.2
  },
  "luminance": 0.28756
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987FFA

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

Preview Lab → · Contrast checker → · Palette generator →

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