#987CEF#987CEF

#987CEF is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.4% C 0.166 H 292.5°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#987CEF
RGBrgb(152, 124, 239)
HSLhsl(255, 78%, 71%)
HSVhsv(255, 48%, 94%)
CMYKcmyk(36.4%, 48.1%, 0%, 6.3%)
CIE-LABlab(59.27, 36.42, -54.40)
CIE-LCHlch(59.27, 65.47, 303.80°)
OKLaboklab(66.37% 0.0636 -0.1537)
OKLCHoklch(66.37% 0.166 292.5)
XYZxyz(35.7324, 27.3219, 85.0356)
Luminance0.2732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CEF #D3EF7C
analogous
#7C99EF #987CEF #D17CEF
triadic
#987CEF #EF987C #7CEF98
tetradic
#987CEF #EF7C99 #D3EF7C #7CEFD1
square
#987CEF #EF7C99 #D3EF7C #7CEFD1
split-complementary
#987CEF #EFD17C #99EF7C
monochromatic
#481AD6 #6D45E8 #987CEF #C3B3F6 #EAE4FC

Accessibility & contrast

On white

3.25
#987CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#987CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CEF
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CEF#FFFFFF#000000##000000
##987CEF1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5190F3
Deuteranopia (green-blind)
#568DEC
Tritanopia (blue-blind)
#8293AA
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987cef;
/* rgb */ color: rgb(152, 124, 239);
/* oklch */ color: oklch(66.4% 0.166 292.5);
Tailwind
colors: {
  custom: {
    50: '#baa2f5',
    500: '#987cef',
    950: '#000000',
  },
}
SCSS
$custom: #987cef;
$custom-light: #baa2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987cef",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 254.609,
    "s": 78.231,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66367,
    "c": 0.16635,
    "h": 292.5
  },
  "luminance": 0.27323
}

Semantic roles & 50–950 ramp

primary
#987CEF
secondary
#EBF3D4
accent
#DA0BA8
background
#FBFAFF
surface
#F7F3FE
border
#D0CDD6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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