#987BF0#987BF0

#987BF0 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.3% C 0.169 H 292.6°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#987BF0
RGBrgb(152, 123, 240)
HSLhsl(255, 80%, 71%)
HSVhsv(255, 49%, 94%)
CMYKcmyk(36.7%, 48.7%, 0%, 5.9%)
CIE-LABlab(59.10, 37.25, -55.24)
CIE-LCHlch(59.10, 66.62, 304.00°)
OKLaboklab(66.25% 0.065 -0.1561)
OKLCHoklch(66.25% 0.169 292.6)
XYZxyz(35.7559, 27.1318, 85.7743)
Luminance0.2713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BF0 #D3F07B
analogous
#7B98F0 #987BF0 #D27BF0
triadic
#987BF0 #F0987B #7BF098
tetradic
#987BF0 #F07B98 #D3F07B #7BF0D2
square
#987BF0 #F07B98 #D3F07B #7BF0D2
split-complementary
#987BF0 #F0D27B #98F07B
monochromatic
#4819D8 #6D44EA #987BF0 #C3B2F6 #EAE4FC

Accessibility & contrast

On white

3.27
#987BF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#987BF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BF0
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BF0#FFFFFF#000000##000000
##987BF01.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F90F4
Deuteranopia (green-blind)
#538CED
Tritanopia (blue-blind)
#8292AA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987bf0;
/* rgb */ color: rgb(152, 123, 240);
/* oklch */ color: oklch(66.3% 0.169 292.6);
Tailwind
colors: {
  custom: {
    50: '#baa1f5',
    500: '#987bf0',
    950: '#000000',
  },
}
SCSS
$custom: #987bf0;
$custom-light: #baa1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987bf0",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 240
  },
  "hsl": {
    "h": 254.872,
    "s": 79.592,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66254,
    "c": 0.16912,
    "h": 292.6
  },
  "luminance": 0.27133
}

Semantic roles & 50–950 ramp

primary
#987BF0
secondary
#EBF3D4
accent
#DC0AA8
background
#FBFAFF
surface
#F7F3FE
border
#D0CDD6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BF0

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

Preview Lab → · Contrast checker → · Palette generator →

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