#987DFC#987DFC

#987DFC is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.3% C 0.182 H 290.5°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#987DFC
RGBrgb(152, 125, 252)
HSLhsl(253, 95%, 74%)
HSVhsv(253, 50%, 99%)
CMYKcmyk(39.7%, 50.4%, 0%, 1.2%)
CIE-LABlab(60.22, 39.31, -60.07)
CIE-LCHlch(60.22, 71.79, 303.20°)
OKLaboklab(67.31% 0.0635 -0.1703)
OKLCHoklch(67.31% 0.182 290.5)
XYZxyz(37.8484, 28.3698, 95.5583)
Luminance0.2837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DFC #E1FC7D
analogous
#7DA2FC #987DFC #D87DFC
triadic
#987DFC #FC987D #7DFC98
tetradic
#987DFC #FC7DA2 #E1FC7D #7DFCD8
square
#987DFC #FC7DA2 #E1FC7D #7DFCD8
split-complementary
#987DFC #FCD87D #A2FC7D
monochromatic
#3906F9 #6941FB #987DFC #C7B9FD #E7E1FE

Accessibility & contrast

On white

3.15
#987DFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#987DFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DFC
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DFC#FFFFFF#000000##000000
##987DFC1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4893FF
Deuteranopia (green-blind)
#4B8EF9
Tritanopia (blue-blind)
#7D97B1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987dfc;
/* rgb */ color: rgb(152, 125, 252);
/* oklch */ color: oklch(67.3% 0.182 290.5);
Tailwind
colors: {
  custom: {
    50: '#bba3fe',
    500: '#987dfc',
    950: '#000000',
  },
}
SCSS
$custom: #987dfc;
$custom-light: #bba3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#987dfc",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 252
  },
  "hsl": {
    "h": 252.756,
    "s": 95.489,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67311,
    "c": 0.18176,
    "h": 290.5
  },
  "luminance": 0.28371
}

Semantic roles & 50–950 ramp

primary
#987DFC
secondary
#EFF7D4
accent
#E600B5
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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