#987EF2#987EF2

#987EF2 is a light, vivid violet. Relative luminance 0.280; OKLCH L 66.9% C 0.167 H 291.5°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#987EF2
RGBrgb(152, 126, 242)
HSLhsl(253, 82%, 72%)
HSVhsv(253, 48%, 95%)
CMYKcmyk(37.2%, 47.9%, 0%, 5.1%)
CIE-LABlab(59.90, 36.07, -55.07)
CIE-LCHlch(59.90, 65.83, 303.23°)
OKLaboklab(66.89% 0.0614 -0.1556)
OKLCHoklch(66.89% 0.167 291.5)
XYZxyz(36.4325, 28.0070, 87.4735)
Luminance0.2801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EF2 #D8F27E
analogous
#7E9EF2 #987EF2 #D27EF2
triadic
#987EF2 #F2987E #7EF298
tetradic
#987EF2 #F27E9E #D8F27E #7EF2D2
square
#987EF2 #F27E9E #D8F27E #7EF2D2
split-complementary
#987EF2 #F2D27E #9EF27E
monochromatic
#4316DF #6C46EC #987EF2 #C4B6F8 #E9E3FC

Accessibility & contrast

On white

3.18
#987EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#987EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EF2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EF2#FFFFFF#000000##000000
##987EF21.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5392F6
Deuteranopia (green-blind)
#568EEF
Tritanopia (blue-blind)
#8195AD
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987ef2;
/* rgb */ color: rgb(152, 126, 242);
/* oklch */ color: oklch(66.9% 0.167 291.5);
Tailwind
colors: {
  custom: {
    50: '#baa4f7',
    500: '#987ef2',
    950: '#000000',
  },
}
SCSS
$custom: #987ef2;
$custom-light: #baa4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#987ef2",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 253.448,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.66888,
    "c": 0.16733,
    "h": 291.5
  },
  "luminance": 0.28008
}

Semantic roles & 50–950 ramp

primary
#987EF2
secondary
#EEF4D7
accent
#DE07AE
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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