#987EF4#987EF4

#987EF4 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.0% C 0.170 H 291.3°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#987EF4
RGBrgb(152, 126, 244)
HSLhsl(253, 84%, 73%)
HSVhsv(253, 48%, 96%)
CMYKcmyk(37.7%, 48.4%, 0%, 4.3%)
CIE-LABlab(60.00, 36.60, -56.00)
CIE-LCHlch(60.00, 66.90, 303.17°)
OKLaboklab(67.01% 0.0616 -0.1584)
OKLCHoklch(67.01% 0.17 291.3)
XYZxyz(36.7345, 28.1278, 89.0642)
Luminance0.2813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EF4 #DAF47E
analogous
#7E9FF4 #987EF4 #D37EF4
triadic
#987EF4 #F4987E #7EF498
tetradic
#987EF4 #F47E9F #DAF47E #7EF4D3
square
#987EF4 #F47E9F #DAF47E #7EF4D3
split-complementary
#987EF4 #F4D37E #9FF47E
monochromatic
#4113E4 #6B46EF #987EF4 #C5B6F9 #E8E3FD

Accessibility & contrast

On white

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

On black

6.63
#987EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EF4
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EF4#FFFFFF#000000##000000
##987EF41.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5193F8
Deuteranopia (green-blind)
#548EF1
Tritanopia (blue-blind)
#8096AE
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ef4;
/* rgb */ color: rgb(152, 126, 244);
/* oklch */ color: oklch(67.0% 0.170 291.3);
Tailwind
colors: {
  custom: {
    50: '#baa4f8',
    500: '#987ef4',
    950: '#000000',
  },
}
SCSS
$custom: #987ef4;
$custom-light: #baa4f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987ef4",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 244
  },
  "hsl": {
    "h": 253.22,
    "s": 84.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.67005,
    "c": 0.16994,
    "h": 291.3
  },
  "luminance": 0.28129
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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