#987AF3#987AF3

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

Color values

HEX#987AF3
RGBrgb(152, 122, 243)
HSLhsl(255, 83%, 72%)
HSVhsv(255, 50%, 95%)
CMYKcmyk(37.4%, 49.8%, 0%, 4.7%)
CIE-LABlab(59.03, 38.61, -57.00)
CIE-LCHlch(59.03, 68.85, 304.12°)
OKLaboklab(66.26% 0.0665 -0.1613)
OKLCHoklch(66.26% 0.174 292.4)
XYZxyz(36.0818, 27.0647, 88.0996)
Luminance0.2707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AF3 #D5F37A
analogous
#7A99F3 #987AF3 #D57AF3
triadic
#987AF3 #F3987A #7AF398
tetradic
#987AF3 #F37A99 #D5F37A #7AF3D5
square
#987AF3 #F37A99 #D5F37A #7AF3D5
split-complementary
#987AF3 #F3D57A #99F37A
monochromatic
#4614DF #6D42EE #987AF3 #C3B2F8 #E9E3FC

Accessibility & contrast

On white

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

On black

6.41
#987AF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AF3
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AF3#FFFFFF#000000##000000
##987AF31.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A90F7
Deuteranopia (green-blind)
#4F8CF0
Tritanopia (blue-blind)
#8192AB
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987af3;
/* rgb */ color: rgb(152, 122, 243);
/* oklch */ color: oklch(66.3% 0.174 292.4);
Tailwind
colors: {
  custom: {
    50: '#baa1f8',
    500: '#987af3',
    950: '#000000',
  },
}
SCSS
$custom: #987af3;
$custom-light: #baa1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987af3",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 243
  },
  "hsl": {
    "h": 254.876,
    "s": 83.448,
    "l": 71.569
  },
  "oklch": {
    "l": 0.66261,
    "c": 0.17446,
    "h": 292.4
  },
  "luminance": 0.27066
}

Semantic roles & 50–950 ramp

primary
#987AF3
secondary
#ECF4D5
accent
#E006AA
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F17
muted
#817E85

Preview Lab

Preview with #987AF3

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

Preview Lab → · Contrast checker → · Palette generator →

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