#987EF5#987EF5

#987EF5 is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.1% C 0.171 H 291.1°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#987EF5
RGBrgb(152, 126, 245)
HSLhsl(253, 86%, 73%)
HSVhsv(253, 49%, 96%)
CMYKcmyk(38%, 48.6%, 0%, 3.9%)
CIE-LABlab(60.06, 36.87, -56.47)
CIE-LCHlch(60.06, 67.44, 303.14°)
OKLaboklab(67.06% 0.0617 -0.1597)
OKLCHoklch(67.06% 0.171 291.1)
XYZxyz(36.8867, 28.1887, 89.8660)
Luminance0.2819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EF5 #DBF57E
analogous
#7E9FF5 #987EF5 #D37EF5
triadic
#987EF5 #F5987E #7EF598
tetradic
#987EF5 #F57E9F #DBF57E #7EF5D3
square
#987EF5 #F57E9F #DBF57E #7EF5D3
split-complementary
#987EF5 #F5D37E #9FF57E
monochromatic
#4012E7 #6B45F1 #987EF5 #C5B7F9 #E8E3FD

Accessibility & contrast

On white

3.16
#987EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#987EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EF5
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EF5#FFFFFF#000000##000000
##987EF51.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5093F9
Deuteranopia (green-blind)
#538EF2
Tritanopia (blue-blind)
#8096AE
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ef5;
/* rgb */ color: rgb(152, 126, 245);
/* oklch */ color: oklch(67.1% 0.171 291.1);
Tailwind
colors: {
  custom: {
    50: '#baa4f9',
    500: '#987ef5',
    950: '#000000',
  },
}
SCSS
$custom: #987ef5;
$custom-light: #baa4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#987ef5",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 253.109,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.67063,
    "c": 0.17125,
    "h": 291.1
  },
  "luminance": 0.2819
}

Semantic roles & 50–950 ramp

primary
#987EF5
secondary
#EEF5D6
accent
#E203B1
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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