#987EF8#987EF8

#987EF8 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.2% C 0.175 H 290.7°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#987EF8
RGBrgb(152, 126, 248)
HSLhsl(253, 90%, 73%)
HSVhsv(253, 49%, 97%)
CMYKcmyk(38.7%, 49.2%, 0%, 2.7%)
CIE-LABlab(60.22, 37.67, -57.86)
CIE-LCHlch(60.22, 69.04, 303.07°)
OKLaboklab(67.24% 0.062 -0.1638)
OKLCHoklch(67.24% 0.175 290.7)
XYZxyz(37.3484, 28.3734, 92.2975)
Luminance0.2837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EF8 #DEF87E
analogous
#7EA1F8 #987EF8 #D57EF8
triadic
#987EF8 #F8987E #7EF898
tetradic
#987EF8 #F87EA1 #DEF87E #7EF8D5
square
#987EF8 #F87EA1 #DEF87E #7EF8D5
split-complementary
#987EF8 #F8D57E #A1F87E
monochromatic
#3D0DEF #6A44F5 #987EF8 #C6B8FB #E8E2FD

Accessibility & contrast

On white

3.15
#987EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#987EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EF8
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EF8#FFFFFF#000000##000000
##987EF81.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D93FC
Deuteranopia (green-blind)
#508FF5
Tritanopia (blue-blind)
#7E97AF
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ef8;
/* rgb */ color: rgb(152, 126, 248);
/* oklch */ color: oklch(67.2% 0.175 290.7);
Tailwind
colors: {
  custom: {
    50: '#bba4fb',
    500: '#987ef8',
    950: '#000000',
  },
}
SCSS
$custom: #987ef8;
$custom-light: #bba4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#987ef8",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 252.787,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.67241,
    "c": 0.17515,
    "h": 290.7
  },
  "luminance": 0.28374
}

Semantic roles & 50–950 ramp

primary
#987EF8
secondary
#EFF6D5
accent
#E600B5
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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