#987DFF#987DFF

#987DFF is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.5% C 0.186 H 290.1°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#987DFF
RGBrgb(152, 125, 255)
HSLhsl(252, 100%, 75%)
HSVhsv(252, 51%, 100%)
CMYKcmyk(40.4%, 51%, 0%, 0%)
CIE-LABlab(60.39, 40.12, -61.44)
CIE-LCHlch(60.39, 73.38, 303.14°)
OKLaboklab(67.49% 0.0637 -0.1743)
OKLCHoklch(67.49% 0.186 290.1)
XYZxyz(38.3275, 28.5614, 98.0818)
Luminance0.2856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DFF #E4FF7D
analogous
#7DA3FF #987DFF #D97DFF
triadic
#987DFF #FF987D #7DFF98
tetradic
#987DFF #FF7DA3 #E4FF7D #7DFFD9
square
#987DFF #FF7DA3 #E4FF7D #7DFFD9
split-complementary
#987DFF #FFD97D #A3FF7D
monochromatic
#3703FF #6840FF #987DFF #C8BAFF #E7E0FF

Accessibility & contrast

On white

3.13
#987DFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#987DFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DFF
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DFF#FFFFFF#000000##000000
##987DFF1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4594FF
Deuteranopia (green-blind)
#478FFC
Tritanopia (blue-blind)
#7B98B2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987dff;
/* rgb */ color: rgb(152, 125, 255);
/* oklch */ color: oklch(67.5% 0.186 290.1);
Tailwind
colors: {
  custom: {
    50: '#bba3ff',
    500: '#987dff',
    950: '#000000',
  },
}
SCSS
$custom: #987dff;
$custom-light: #bba3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987dff",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 255
  },
  "hsl": {
    "h": 252.462,
    "s": 100,
    "l": 74.51
  },
  "oklch": {
    "l": 0.67494,
    "c": 0.18562,
    "h": 290.1
  },
  "luminance": 0.28563
}

Semantic roles & 50–950 ramp

primary
#987DFF
secondary
#F0F7D4
accent
#E600B6
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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