#987FF2#987FF2

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

Color values

HEX#987FF2
RGBrgb(152, 127, 242)
HSLhsl(253, 82%, 72%)
HSVhsv(253, 48%, 95%)
CMYKcmyk(37.2%, 47.5%, 0%, 5.1%)
CIE-LABlab(60.13, 35.50, -54.70)
CIE-LCHlch(60.13, 65.21, 302.98°)
OKLaboklab(67.06% 0.0602 -0.1546)
OKLCHoklch(67.06% 0.166 291.3)
XYZxyz(36.5610, 28.2640, 87.5164)
Luminance0.2827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FF2 #D9F27F
analogous
#7FA0F2 #987FF2 #D17FF2
triadic
#987FF2 #F2987F #7FF298
tetradic
#987FF2 #F27FA0 #D9F27F #7FF2D1
square
#987FF2 #F27FA0 #D9F27F #7FF2D1
split-complementary
#987FF2 #F2D17F #A0F27F
monochromatic
#4217E0 #6B47EC #987FF2 #C5B7F8 #E9E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987FF2#FFFFFF#000000##000000
##987FF21.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)
#5493F6
Deuteranopia (green-blind)
#578FEF
Tritanopia (blue-blind)
#8196AD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ff2;
/* rgb */ color: rgb(152, 127, 242);
/* oklch */ color: oklch(67.1% 0.166 291.3);
Tailwind
colors: {
  custom: {
    50: '#baa4f7',
    500: '#987ff2',
    950: '#000000',
  },
}
SCSS
$custom: #987ff2;
$custom-light: #baa4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#987ff2",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 253.043,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.67061,
    "c": 0.16587,
    "h": 291.3
  },
  "luminance": 0.28265
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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