#987DFA#987DFA

#987DFA is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.2% C 0.179 H 290.7°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#987DFA
RGBrgb(152, 125, 250)
HSLhsl(253, 93%, 74%)
HSVhsv(253, 50%, 98%)
CMYKcmyk(39.2%, 50%, 0%, 2%)
CIE-LABlab(60.11, 38.77, -59.15)
CIE-LCHlch(60.11, 70.72, 303.25°)
OKLaboklab(67.19% 0.0634 -0.1676)
OKLCHoklch(67.19% 0.179 290.7)
XYZxyz(37.5331, 28.2437, 93.8980)
Luminance0.2824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DFA #DFFA7D
analogous
#7DA0FA #987DFA #D67DFA
triadic
#987DFA #FA987D #7DFA98
tetradic
#987DFA #FA7DA0 #DFFA7D #7DFAD6
square
#987DFA #FA7DA0 #DFFA7D #7DFAD6
split-complementary
#987DFA #FAD67D #A0FA7D
monochromatic
#3C09F3 #6942F8 #987DFA #C7B8FC #E8E2FE

Accessibility & contrast

On white

3.16
#987DFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#987DFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DFA
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DFA#FFFFFF#000000##000000
##987DFA1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A93FE
Deuteranopia (green-blind)
#4D8EF7
Tritanopia (blue-blind)
#7E97B0
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987dfa;
/* rgb */ color: rgb(152, 125, 250);
/* oklch */ color: oklch(67.2% 0.179 290.7);
Tailwind
colors: {
  custom: {
    50: '#bba3fc',
    500: '#987dfa',
    950: '#000000',
  },
}
SCSS
$custom: #987dfa;
$custom-light: #bba3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#987dfa",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 250
  },
  "hsl": {
    "h": 252.96,
    "s": 92.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.6719,
    "c": 0.17918,
    "h": 290.7
  },
  "luminance": 0.28245
}

Semantic roles & 50–950 ramp

primary
#987DFA
secondary
#EFF6D5
accent
#E600B4
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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