#987CFF#987CFF

#987CFF is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.3% C 0.187 H 290.3°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#987CFF
RGBrgb(152, 124, 255)
HSLhsl(253, 100%, 74%)
HSVhsv(253, 51%, 100%)
CMYKcmyk(40.4%, 51.4%, 0%, 0%)
CIE-LABlab(60.17, 40.69, -61.80)
CIE-LCHlch(60.17, 73.99, 303.36°)
OKLaboklab(67.33% 0.0649 -0.1754)
OKLCHoklch(67.33% 0.187 290.3)
XYZxyz(38.2016, 28.3095, 98.0399)
Luminance0.2831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CFF #E3FF7C
analogous
#7CA2FF #987CFF #D97CFF
triadic
#987CFF #FF987C #7CFF98
tetradic
#987CFF #FF7CA2 #E3FF7C #7CFFD9
square
#987CFF #FF7CA2 #E3FF7C #7CFFD9
split-complementary
#987CFF #FFD97C #A2FF7C
monochromatic
#3802FF #683FFF #987CFF #C8B9FF #E7E0FF

Accessibility & contrast

On white

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

On black

6.66
#987CFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CFF
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CFF#FFFFFF#000000##000000
##987CFF1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4293FF
Deuteranopia (green-blind)
#468EFC
Tritanopia (blue-blind)
#7C97B2
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987cff;
/* rgb */ color: rgb(152, 124, 255);
/* oklch */ color: oklch(67.3% 0.187 290.3);
Tailwind
colors: {
  custom: {
    50: '#bba2ff',
    500: '#987cff',
    950: '#000000',
  },
}
SCSS
$custom: #987cff;
$custom-light: #bba2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987cff",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 255
  },
  "hsl": {
    "h": 252.824,
    "s": 100,
    "l": 74.314
  },
  "oklch": {
    "l": 0.67326,
    "c": 0.18702,
    "h": 290.3
  },
  "luminance": 0.28311
}

Semantic roles & 50–950 ramp

primary
#987CFF
secondary
#F0F7D4
accent
#E600B4
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987CFF

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

Preview Lab → · Contrast checker → · Palette generator →

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