#987FEF#987FEF

#987FEF is a light, vivid violet. Relative luminance 0.281; OKLCH L 66.9% C 0.162 H 291.7°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#987FEF
RGBrgb(152, 127, 239)
HSLhsl(253, 78%, 72%)
HSVhsv(253, 47%, 94%)
CMYKcmyk(36.4%, 46.9%, 0%, 6.3%)
CIE-LABlab(59.97, 34.71, -53.30)
CIE-LCHlch(59.97, 63.60, 303.07°)
OKLaboklab(66.89% 0.0598 -0.1505)
OKLCHoklch(66.89% 0.162 291.7)
XYZxyz(36.1141, 28.0853, 85.1629)
Luminance0.2809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FEF #D6EF7F
analogous
#7F9EEF #987FEF #D07FEF
triadic
#987FEF #EF987F #7FEF98
tetradic
#987FEF #EF7F9E #D6EF7F #7FEFD0
square
#987FEF #EF7F9E #D6EF7F #7FEFD0
split-complementary
#987FEF #EFD07F #9EEF7F
monochromatic
#451BD9 #6C49E8 #987FEF #C4B5F6 #E9E4FC

Accessibility & contrast

On white

3.17
#987FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#987FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FEF
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FEF#FFFFFF#000000##000000
##987FEF1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F3
Deuteranopia (green-blind)
#5A8EEC
Tritanopia (blue-blind)
#8295AC
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987fef;
/* rgb */ color: rgb(152, 127, 239);
/* oklch */ color: oklch(66.9% 0.162 291.7);
Tailwind
colors: {
  custom: {
    50: '#baa4f5',
    500: '#987fef',
    950: '#000000',
  },
}
SCSS
$custom: #987fef;
$custom-light: #baa4f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987fef",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 253.393,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66888,
    "c": 0.16192,
    "h": 291.7
  },
  "luminance": 0.28086
}

Semantic roles & 50–950 ramp

primary
#987FEF
secondary
#EDF3D7
accent
#DA0BAC
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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