#987BF5#987BF5

#987BF5 is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.5% C 0.176 H 291.9°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#987BF5
RGBrgb(152, 123, 245)
HSLhsl(254, 86%, 72%)
HSVhsv(254, 50%, 96%)
CMYKcmyk(38%, 49.8%, 0%, 3.9%)
CIE-LABlab(59.37, 38.58, -57.56)
CIE-LCHlch(59.37, 69.29, 303.83°)
OKLaboklab(66.55% 0.0654 -0.163)
OKLCHoklch(66.55% 0.176 291.9)
XYZxyz(36.5089, 27.4329, 89.7400)
Luminance0.2743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BF5 #D8F57B
analogous
#7B9BF5 #987BF5 #D57BF5
triadic
#987BF5 #F5987B #7BF598
tetradic
#987BF5 #F57B9B #D8F57B #7BF5D5
square
#987BF5 #F57B9B #D8F57B #7BF5D5
split-complementary
#987BF5 #F5D57B #9BF57B
monochromatic
#4311E4 #6C42F1 #987BF5 #C4B4F9 #E9E3FD

Accessibility & contrast

On white

3.24
#987BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#987BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BF5
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BF5#FFFFFF#000000##000000
##987BF51.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A91F9
Deuteranopia (green-blind)
#4F8DF2
Tritanopia (blue-blind)
#8094AD
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987bf5;
/* rgb */ color: rgb(152, 123, 245);
/* oklch */ color: oklch(66.5% 0.176 291.9);
Tailwind
colors: {
  custom: {
    50: '#bba2f9',
    500: '#987bf5',
    950: '#000000',
  },
}
SCSS
$custom: #987bf5;
$custom-light: #bba2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#987bf5",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 254.262,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.6655,
    "c": 0.1756,
    "h": 291.9
  },
  "luminance": 0.27434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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