#987AF4#987AF4

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

Color values

HEX#987AF4
RGBrgb(152, 122, 244)
HSLhsl(255, 85%, 72%)
HSVhsv(255, 50%, 96%)
CMYKcmyk(37.7%, 50%, 0%, 4.3%)
CIE-LABlab(59.09, 38.88, -57.46)
CIE-LCHlch(59.09, 69.38, 304.08°)
OKLaboklab(66.32% 0.0666 -0.1627)
OKLCHoklch(66.32% 0.176 292.3)
XYZxyz(36.2332, 27.1252, 88.8971)
Luminance0.2713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AF4 #D6F47A
analogous
#7A99F4 #987AF4 #D57AF4
triadic
#987AF4 #F4987A #7AF498
tetradic
#987AF4 #F47A99 #D6F47A #7AF4D5
square
#987AF4 #F47A99 #D6F47A #7AF4D5
split-complementary
#987AF4 #F4D57A #99F47A
monochromatic
#4513E1 #6C41EF #987AF4 #C4B3F9 #E9E3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987AF4#FFFFFF#000000##000000
##987AF41.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)
#4990F8
Deuteranopia (green-blind)
#4E8CF1
Tritanopia (blue-blind)
#8093AC
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987af4;
/* rgb */ color: rgb(152, 122, 244);
/* oklch */ color: oklch(66.3% 0.176 292.3);
Tailwind
colors: {
  custom: {
    50: '#baa1f8',
    500: '#987af4',
    950: '#000000',
  },
}
SCSS
$custom: #987af4;
$custom-light: #baa1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987af4",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 244
  },
  "hsl": {
    "h": 254.754,
    "s": 84.722,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66321,
    "c": 0.17576,
    "h": 292.3
  },
  "luminance": 0.27126
}

Semantic roles & 50–950 ramp

primary
#987AF4
secondary
#EDF4D5
accent
#E104AB
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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