#987FEC#987FEC

#987FEC is a light, vivid violet. Relative luminance 0.279; OKLCH L 66.7% C 0.158 H 292.1°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#987FEC
RGBrgb(152, 127, 236)
HSLhsl(254, 74%, 71%)
HSVhsv(254, 46%, 93%)
CMYKcmyk(35.6%, 46.2%, 0%, 7.5%)
CIE-LABlab(59.81, 33.92, -51.89)
CIE-LCHlch(59.81, 61.99, 303.17°)
OKLaboklab(66.72% 0.0595 -0.1463)
OKLCHoklch(66.72% 0.158 292.1)
XYZxyz(35.6746, 27.9095, 82.8481)
Luminance0.2791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FEC #D3EC7F
analogous
#7F9CEC #987FEC #CE7FEC
triadic
#987FEC #EC987F #7FEC98
tetradic
#987FEC #EC7F9C #D3EC7F #7FECCE
square
#987FEC #EC7F9C #D3EC7F #7FECCE
split-complementary
#987FEC #ECCE7F #9CEC7F
monochromatic
#481FD2 #6D4AE4 #987FEC #C3B4F4 #EAE4FB

Accessibility & contrast

On white

3.19
#987FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#987FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FEC
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FEC#FFFFFF#000000##000000
##987FEC1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5992F0
Deuteranopia (green-blind)
#5C8EE9
Tritanopia (blue-blind)
#8394AA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987fec;
/* rgb */ color: rgb(152, 127, 236);
/* oklch */ color: oklch(66.7% 0.158 292.1);
Tailwind
colors: {
  custom: {
    50: '#baa4f3',
    500: '#987fec',
    950: '#000000',
  },
}
SCSS
$custom: #987fec;
$custom-light: #baa4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987fec",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 236
  },
  "hsl": {
    "h": 253.761,
    "s": 74.15,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66717,
    "c": 0.15796,
    "h": 292.1
  },
  "luminance": 0.2791
}

Semantic roles & 50–950 ramp

primary
#987FEC
secondary
#EBF2D5
accent
#D60FA9
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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