#987AFA#987AFA

#987AFA is a light, vivid violet. Relative luminance 0.275; OKLCH L 66.7% C 0.183 H 291.4°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#987AFA
RGBrgb(152, 122, 250)
HSLhsl(254, 93%, 73%)
HSVhsv(254, 51%, 98%)
CMYKcmyk(39.2%, 51.2%, 0%, 2%)
CIE-LABlab(59.43, 40.47, -60.23)
CIE-LCHlch(59.43, 72.57, 303.90°)
OKLaboklab(66.69% 0.067 -0.1708)
OKLCHoklch(66.69% 0.183 291.4)
XYZxyz(37.1591, 27.4956, 93.7733)
Luminance0.2750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AFA #DCFA7A
analogous
#7A9CFA #987AFA #D87AFA
triadic
#987AFA #FA987A #7AFA98
tetradic
#987AFA #FA7A9C #DCFA7A #7AFAD8
square
#987AFA #FA7A9C #DCFA7A #7AFAD8
split-complementary
#987AFA #FAD87A #9CFA7A
monochromatic
#3F09F1 #6A3FF8 #987AFA #C6B5FC #E8E2FE

Accessibility & contrast

On white

3.23
#987AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#987AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AFA
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AFA#FFFFFF#000000##000000
##987AFA1.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4391FE
Deuteranopia (green-blind)
#488CF7
Tritanopia (blue-blind)
#7E94AF
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987afa;
/* rgb */ color: rgb(152, 122, 250);
/* oklch */ color: oklch(66.7% 0.183 291.4);
Tailwind
colors: {
  custom: {
    50: '#bba1fd',
    500: '#987afa',
    950: '#000000',
  },
}
SCSS
$custom: #987afa;
$custom-light: #bba1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#987afa",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 254.063,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.66685,
    "c": 0.18346,
    "h": 291.4
  },
  "luminance": 0.27497
}

Semantic roles & 50–950 ramp

primary
#987AFA
secondary
#EEF6D5
accent
#E600B0
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F18
muted
#817E86

Preview Lab

Preview with #987AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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