#987EFC#987EFC

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

Color values

HEX#987EFC
RGBrgb(152, 126, 252)
HSLhsl(252, 95%, 74%)
HSVhsv(252, 50%, 99%)
CMYKcmyk(39.7%, 50%, 0%, 1.2%)
CIE-LABlab(60.45, 38.74, -59.70)
CIE-LCHlch(60.45, 71.17, 302.98°)
OKLaboklab(67.48% 0.0623 -0.1692)
OKLCHoklch(67.48% 0.18 290.2)
XYZxyz(37.9756, 28.6242, 95.6008)
Luminance0.2863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EFC #E2FC7E
analogous
#7EA3FC #987EFC #D77EFC
triadic
#987EFC #FC987E #7EFC98
tetradic
#987EFC #FC7EA3 #E2FC7E #7EFCD7
square
#987EFC #FC7EA3 #E2FC7E #7EFCD7
split-complementary
#987EFC #FCD77E #A3FC7E
monochromatic
#3806F9 #6842FB #987EFC #C8BAFD #E7E1FE

Accessibility & contrast

On white

3.12
#987EFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#987EFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EFC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EFC#FFFFFF#000000##000000
##987EFC1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A94FF
Deuteranopia (green-blind)
#4C8FF9
Tritanopia (blue-blind)
#7D98B1
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987efc;
/* rgb */ color: rgb(152, 126, 252);
/* oklch */ color: oklch(67.5% 0.180 290.2);
Tailwind
colors: {
  custom: {
    50: '#bba4fe',
    500: '#987efc',
    950: '#000000',
  },
}
SCSS
$custom: #987efc;
$custom-light: #bba4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#987efc",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 252.381,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.67481,
    "c": 0.18035,
    "h": 290.2
  },
  "luminance": 0.28625
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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