#987AF0#987AF0

#987AF0 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.1% C 0.171 H 292.8°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#987AF0
RGBrgb(152, 122, 240)
HSLhsl(255, 80%, 71%)
HSVhsv(255, 49%, 94%)
CMYKcmyk(36.7%, 49.2%, 0%, 5.9%)
CIE-LABlab(58.87, 37.82, -55.60)
CIE-LCHlch(58.87, 67.25, 304.23°)
OKLaboklab(66.08% 0.0662 -0.1572)
OKLCHoklch(66.08% 0.171 292.8)
XYZxyz(35.6325, 26.8849, 85.7331)
Luminance0.2689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AF0 #D2F07A
analogous
#7A97F0 #987AF0 #D37AF0
triadic
#987AF0 #F0987A #7AF098
tetradic
#987AF0 #F07A97 #D2F07A #7AF0D3
square
#987AF0 #F07A97 #D2F07A #7AF0D3
split-complementary
#987AF0 #F0D37A #97F07A
monochromatic
#4918D7 #6D43EA #987AF0 #C3B1F6 #EAE4FC

Accessibility & contrast

On white

3.29
#987AF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#987AF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AF0
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AF0#FFFFFF#000000##000000
##987AF01.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF4
Deuteranopia (green-blind)
#528BED
Tritanopia (blue-blind)
#8291AA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987af0;
/* rgb */ color: rgb(152, 122, 240);
/* oklch */ color: oklch(66.1% 0.171 292.8);
Tailwind
colors: {
  custom: {
    50: '#baa1f5',
    500: '#987af0',
    950: '#000000',
  },
}
SCSS
$custom: #987af0;
$custom-light: #baa1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987af0",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 240
  },
  "hsl": {
    "h": 255.254,
    "s": 79.73,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66083,
    "c": 0.17059,
    "h": 292.8
  },
  "luminance": 0.26886
}

Semantic roles & 50–950 ramp

primary
#987AF0
secondary
#EBF3D3
accent
#DC09A7
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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