#987FFC#987FFC

#987FFC is a light, vivid violet. Relative luminance 0.289; OKLCH L 67.7% C 0.179 H 290.0°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#987FFC
RGBrgb(152, 127, 252)
HSLhsl(252, 95%, 74%)
HSVhsv(252, 50%, 99%)
CMYKcmyk(39.7%, 49.6%, 0%, 1.2%)
CIE-LABlab(60.68, 38.18, -59.34)
CIE-LCHlch(60.68, 70.56, 302.75°)
OKLaboklab(67.65% 0.0611 -0.1682)
OKLCHoklch(67.65% 0.179 290)
XYZxyz(38.1041, 28.8813, 95.6436)
Luminance0.2888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FFC #E3FC7F
analogous
#7FA5FC #987FFC #D77FFC
triadic
#987FFC #FC987F #7FFC98
tetradic
#987FFC #FC7FA5 #E3FC7F #7FFCD7
square
#987FFC #FC7FA5 #E3FC7F #7FFCD7
split-complementary
#987FFC #FCD77F #A5FC7F
monochromatic
#3807F9 #6843FB #987FFC #C8BBFD #E7E1FE

Accessibility & contrast

On white

3.10
#987FFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#987FFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FFC
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FFC#FFFFFF#000000##000000
##987FFC1.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C95FF
Deuteranopia (green-blind)
#4E90F9
Tritanopia (blue-blind)
#7D99B2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987ffc;
/* rgb */ color: rgb(152, 127, 252);
/* oklch */ color: oklch(67.7% 0.179 290.0);
Tailwind
colors: {
  custom: {
    50: '#bba4fe',
    500: '#987ffc',
    950: '#000000',
  },
}
SCSS
$custom: #987ffc;
$custom-light: #bba4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#987ffc",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 252
  },
  "hsl": {
    "h": 252,
    "s": 95.42,
    "l": 74.314
  },
  "oklch": {
    "l": 0.67651,
    "c": 0.17892,
    "h": 290
  },
  "luminance": 0.28882
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987FFC

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

Preview Lab → · Contrast checker → · Palette generator →

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