#987BFC#987BFC

#987BFC is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.0% C 0.185 H 290.9°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#987BFC
RGBrgb(152, 123, 252)
HSLhsl(253, 96%, 74%)
HSVhsv(253, 51%, 99%)
CMYKcmyk(39.7%, 51.2%, 0%, 1.2%)
CIE-LABlab(59.77, 40.44, -60.79)
CIE-LCHlch(59.77, 73.02, 303.64°)
OKLaboklab(66.97% 0.0659 -0.1724)
OKLCHoklch(66.97% 0.185 290.9)
XYZxyz(37.5978, 27.8685, 95.4748)
Luminance0.2787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BFC #DFFC7B
analogous
#7B9EFC #987BFC #D87BFC
triadic
#987BFC #FC987B #7BFC98
tetradic
#987BFC #FC7B9E #DFFC7B #7BFCD8
square
#987BFC #FC7B9E #DFFC7B #7BFCD8
split-complementary
#987BFC #FCD87B #9EFC7B
monochromatic
#3C06F7 #693FFB #987BFC #C7B7FD #E8E1FE

Accessibility & contrast

On white

3.19
#987BFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#987BFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BFC
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BFC#FFFFFF#000000##000000
##987BFC1.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4392FF
Deuteranopia (green-blind)
#478DF9
Tritanopia (blue-blind)
#7D96B0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987bfc;
/* rgb */ color: rgb(152, 123, 252);
/* oklch */ color: oklch(67.0% 0.185 290.9);
Tailwind
colors: {
  custom: {
    50: '#bba2fe',
    500: '#987bfc',
    950: '#000000',
  },
}
SCSS
$custom: #987bfc;
$custom-light: #bba2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#987bfc",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 252
  },
  "hsl": {
    "h": 253.488,
    "s": 95.556,
    "l": 73.529
  },
  "oklch": {
    "l": 0.66974,
    "c": 0.1846,
    "h": 290.9
  },
  "luminance": 0.2787
}

Semantic roles & 50–950 ramp

primary
#987BFC
secondary
#EFF7D4
accent
#E600B2
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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