#987EF6#987EF6

#987EF6 is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.1% C 0.173 H 291.0°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#987EF6
RGBrgb(152, 126, 246)
HSLhsl(253, 87%, 73%)
HSVhsv(253, 49%, 96%)
CMYKcmyk(38.2%, 48.8%, 0%, 3.5%)
CIE-LABlab(60.11, 37.14, -56.93)
CIE-LCHlch(60.11, 67.97, 303.12°)
OKLaboklab(67.12% 0.0618 -0.1611)
OKLCHoklch(67.12% 0.173 291)
XYZxyz(37.0398, 28.2499, 90.6721)
Luminance0.2825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EF6 #DCF67E
analogous
#7EA0F6 #987EF6 #D47EF6
triadic
#987EF6 #F6987E #7EF698
tetradic
#987EF6 #F67EA0 #DCF67E #7EF6D4
square
#987EF6 #F67EA0 #DCF67E #7EF6D4
split-complementary
#987EF6 #F6D47E #A0F67E
monochromatic
#3F10E9 #6A45F2 #987EF6 #C6B7FA #E8E2FD

Accessibility & contrast

On white

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

On black

6.65
#987EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EF6
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EF6#FFFFFF#000000##000000
##987EF61.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F93FA
Deuteranopia (green-blind)
#528EF3
Tritanopia (blue-blind)
#7F96AE
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ef6;
/* rgb */ color: rgb(152, 126, 246);
/* oklch */ color: oklch(67.1% 0.173 291.0);
Tailwind
colors: {
  custom: {
    50: '#baa4fa',
    500: '#987ef6',
    950: '#000000',
  },
}
SCSS
$custom: #987ef6;
$custom-light: #baa4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987ef6",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 253,
    "s": 86.957,
    "l": 72.941
  },
  "oklch": {
    "l": 0.67122,
    "c": 0.17256,
    "h": 291
  },
  "luminance": 0.28251
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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