#987CF0#987CF0

#987CF0 is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.4% C 0.168 H 292.3°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#987CF0
RGBrgb(152, 124, 240)
HSLhsl(254, 79%, 71%)
HSVhsv(254, 48%, 94%)
CMYKcmyk(36.7%, 48.3%, 0%, 5.9%)
CIE-LABlab(59.33, 36.68, -54.87)
CIE-LCHlch(59.33, 66.00, 303.77°)
OKLaboklab(66.43% 0.0637 -0.1551)
OKLCHoklch(66.43% 0.168 292.3)
XYZxyz(35.8806, 27.3811, 85.8158)
Luminance0.2738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CF0 #D4F07C
analogous
#7C9AF0 #987CF0 #D27CF0
triadic
#987CF0 #F0987C #7CF098
tetradic
#987CF0 #F07C9A #D4F07C #7CF0D2
square
#987CF0 #F07C9A #D4F07C #7CF0D2
split-complementary
#987CF0 #F0D27C #9AF07C
monochromatic
#4719D9 #6D45EA #987CF0 #C3B3F6 #E9E4FC

Accessibility & contrast

On white

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

On black

6.48
#987CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CF0
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CF0#FFFFFF#000000##000000
##987CF01.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5190F4
Deuteranopia (green-blind)
#558DED
Tritanopia (blue-blind)
#8293AB
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987cf0;
/* rgb */ color: rgb(152, 124, 240);
/* oklch */ color: oklch(66.4% 0.168 292.3);
Tailwind
colors: {
  custom: {
    50: '#baa2f5',
    500: '#987cf0',
    950: '#000000',
  },
}
SCSS
$custom: #987cf0;
$custom-light: #baa2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987cf0",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 240
  },
  "hsl": {
    "h": 254.483,
    "s": 79.452,
    "l": 71.373
  },
  "oklch": {
    "l": 0.66426,
    "c": 0.16765,
    "h": 292.3
  },
  "luminance": 0.27382
}

Semantic roles & 50–950 ramp

primary
#987CF0
secondary
#ECF3D5
accent
#DC0AA9
background
#FBFAFF
surface
#F7F3FE
border
#D0CDD6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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