#987BFD#987BFD

#987BFD is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.0% C 0.186 H 290.8°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#987BFD
RGBrgb(152, 123, 253)
HSLhsl(253, 97%, 74%)
HSVhsv(253, 51%, 99%)
CMYKcmyk(39.9%, 51.4%, 0%, 0.8%)
CIE-LABlab(59.83, 40.71, -61.25)
CIE-LCHlch(59.83, 73.55, 303.61°)
OKLaboklab(67.04% 0.066 -0.1738)
OKLCHoklch(67.04% 0.186 290.8)
XYZxyz(37.7566, 27.9321, 96.3116)
Luminance0.2793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BFD #E0FD7B
analogous
#7B9FFD #987BFD #D97BFD
triadic
#987BFD #FD987B #7BFD98
tetradic
#987BFD #FD7B9F #E0FD7B #7BFDD9
square
#987BFD #FD7B9F #E0FD7B #7BFDD9
split-complementary
#987BFD #FDD97B #9FFD7B
monochromatic
#3B04FA #693FFC #987BFD #C7B7FE #E7E1FF

Accessibility & contrast

On white

3.19
#987BFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#987BFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BFD
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BFD#FFFFFF#000000##000000
##987BFD1.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4292FF
Deuteranopia (green-blind)
#468DFA
Tritanopia (blue-blind)
#7D96B1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987bfd;
/* rgb */ color: rgb(152, 123, 253);
/* oklch */ color: oklch(67.0% 0.186 290.8);
Tailwind
colors: {
  custom: {
    50: '#bba2ff',
    500: '#987bfd',
    950: '#000000',
  },
}
SCSS
$custom: #987bfd;
$custom-light: #bba2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987bfd",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 253
  },
  "hsl": {
    "h": 253.385,
    "s": 97.015,
    "l": 73.725
  },
  "oklch": {
    "l": 0.67036,
    "c": 0.18588,
    "h": 290.8
  },
  "luminance": 0.27933
}

Semantic roles & 50–950 ramp

primary
#987BFD
secondary
#EFF7D4
accent
#E600B2
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987BFD

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

Preview Lab → · Contrast checker → · Palette generator →

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