#987FDA#987FDA

#987FDA is a light, vivid violet. Relative luminance 0.269; OKLCH L 65.7% C 0.134 H 295.1°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#987FDA
RGBrgb(152, 127, 218)
HSLhsl(256, 55%, 68%)
HSVhsv(256, 42%, 85%)
CMYKcmyk(30.3%, 41.7%, 0%, 14.5%)
CIE-LABlab(58.90, 29.27, -43.29)
CIE-LCHlch(58.90, 52.25, 304.06°)
OKLaboklab(65.73% 0.0568 -0.1213)
OKLCHoklch(65.73% 0.134 295.1)
XYZxyz(33.1900, 26.9156, 69.7627)
Luminance0.2692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FDA #C1DA7F
analogous
#7F93DA #987FDA #C67FDA
triadic
#987FDA #DA987F #7FDA98
tetradic
#987FDA #DA7F93 #C1DA7F #7FDAC6
square
#987FDA #DA7F93 #C1DA7F #7FDAC6
split-complementary
#987FDA #DAC67F #93DA7F
monochromatic
#5432AD #7250CC #987FDA #BEAEE8 #E4DEF5

Accessibility & contrast

On white

3.29
#987FDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#987FDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FDA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FDA#FFFFFF#000000##000000
##987FDA1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#648EDD
Deuteranopia (green-blind)
#688CD8
Tritanopia (blue-blind)
#8A8FA2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987fda;
/* rgb */ color: rgb(152, 127, 218);
/* oklch */ color: oklch(65.7% 0.134 295.1);
Tailwind
colors: {
  custom: {
    50: '#b8a4e6',
    500: '#987fda',
    950: '#000000',
  },
}
SCSS
$custom: #987fda;
$custom-light: #b8a4e6;
$custom-dark: #000000;
JSON
{
  "hex": "#987fda",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 218
  },
  "hsl": {
    "h": 256.484,
    "s": 55.152,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65734,
    "c": 0.13391,
    "h": 295.1
  },
  "luminance": 0.26916
}

Semantic roles & 50–950 ramp

primary
#987FDA
secondary
#E1E9CC
accent
#C32397
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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