#987BF6#987BF6

#987BF6 is a light, vivid violet. Relative luminance 0.275; OKLCH L 66.6% C 0.177 H 291.7°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#987BF6
RGBrgb(152, 123, 246)
HSLhsl(254, 87%, 72%)
HSVhsv(254, 50%, 96%)
CMYKcmyk(38.2%, 50%, 0%, 3.5%)
CIE-LABlab(59.43, 38.84, -58.03)
CIE-LCHlch(59.43, 69.83, 303.80°)
OKLaboklab(66.61% 0.0655 -0.1643)
OKLCHoklch(66.61% 0.177 291.7)
XYZxyz(36.6619, 27.4942, 90.5462)
Luminance0.2750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BF6 #D9F67B
analogous
#7B9CF6 #987BF6 #D57BF6
triadic
#987BF6 #F6987B #7BF698
tetradic
#987BF6 #F67B9C #D9F67B #7BF6D5
square
#987BF6 #F67B9C #D9F67B #7BF6D5
split-complementary
#987BF6 #F6D57B #9CF67B
monochromatic
#4210E7 #6B42F2 #987BF6 #C5B4FA #E9E2FD

Accessibility & contrast

On white

3.23
#987BF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#987BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BF6
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BF6#FFFFFF#000000##000000
##987BF61.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4991FA
Deuteranopia (green-blind)
#4E8DF3
Tritanopia (blue-blind)
#8094AD
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987bf6;
/* rgb */ color: rgb(152, 123, 246);
/* oklch */ color: oklch(66.6% 0.177 291.7);
Tailwind
colors: {
  custom: {
    50: '#bba2fa',
    500: '#987bf6',
    950: '#000000',
  },
}
SCSS
$custom: #987bf6;
$custom-light: #bba2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#987bf6",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 254.146,
    "s": 87.234,
    "l": 72.353
  },
  "oklch": {
    "l": 0.6661,
    "c": 0.17689,
    "h": 291.7
  },
  "luminance": 0.27495
}

Semantic roles & 50–950 ramp

primary
#987BF6
secondary
#EEF5D6
accent
#E402AE
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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