#987AFC#987AFC

#987AFC is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.8% C 0.186 H 291.1°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#987AFC
RGBrgb(152, 122, 252)
HSLhsl(254, 96%, 73%)
HSVhsv(254, 52%, 99%)
CMYKcmyk(39.7%, 51.6%, 0%, 1.2%)
CIE-LABlab(59.55, 41.01, -61.15)
CIE-LCHlch(59.55, 73.63, 303.85°)
OKLaboklab(66.81% 0.0671 -0.1735)
OKLCHoklch(66.81% 0.186 291.1)
XYZxyz(37.4743, 27.6217, 95.4337)
Luminance0.2762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AFC #DEFC7A
analogous
#7A9DFC #987AFC #D97AFC
triadic
#987AFC #FC987A #7AFC98
tetradic
#987AFC #FC7A9D #DEFC7A #7AFCD9
square
#987AFC #FC7A9D #DEFC7A #7AFCD9
split-complementary
#987AFC #FCD97A #9DFC7A
monochromatic
#3D06F6 #6A3EFB #987AFC #C6B6FD #E8E1FE

Accessibility & contrast

On white

3.22
#987AFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#987AFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AFC
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AFC#FFFFFF#000000##000000
##987AFC1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4192FF
Deuteranopia (green-blind)
#468DF9
Tritanopia (blue-blind)
#7D95B0
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987afc;
/* rgb */ color: rgb(152, 122, 252);
/* oklch */ color: oklch(66.8% 0.186 291.1);
Tailwind
colors: {
  custom: {
    50: '#bba1fe',
    500: '#987afc',
    950: '#000000',
  },
}
SCSS
$custom: #987afc;
$custom-light: #bba1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#987afc",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 253.846,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.66807,
    "c": 0.18602,
    "h": 291.1
  },
  "luminance": 0.27623
}

Semantic roles & 50–950 ramp

primary
#987AFC
secondary
#EFF7D4
accent
#E600B1
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F18
muted
#817E86

Preview Lab

Preview with #987AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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