#987FF4#987FF4

#987FF4 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.2% C 0.168 H 291.0°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#987FF4
RGBrgb(152, 127, 244)
HSLhsl(253, 84%, 73%)
HSVhsv(253, 48%, 96%)
CMYKcmyk(37.7%, 48%, 0%, 4.3%)
CIE-LABlab(60.23, 36.03, -55.63)
CIE-LCHlch(60.23, 66.28, 302.93°)
OKLaboklab(67.18% 0.0604 -0.1573)
OKLCHoklch(67.18% 0.168 291)
XYZxyz(36.8630, 28.3848, 89.1070)
Luminance0.2839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FF4 #DBF47F
analogous
#7FA0F4 #987FF4 #D37FF4
triadic
#987FF4 #F4987F #7FF498
tetradic
#987FF4 #F47FA0 #DBF47F #7FF4D3
square
#987FF4 #F47FA0 #DBF47F #7FF4D3
split-complementary
#987FF4 #F4D37F #A0F47F
monochromatic
#4014E5 #6B47EF #987FF4 #C5B7F9 #E8E3FD

Accessibility & contrast

On white

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

On black

6.68
#987FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FF4
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FF4#FFFFFF#000000##000000
##987FF41.003.156.686.68
#FFFFFF3.151.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5393F8
Deuteranopia (green-blind)
#558FF1
Tritanopia (blue-blind)
#8096AE
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ff4;
/* rgb */ color: rgb(152, 127, 244);
/* oklch */ color: oklch(67.2% 0.168 291.0);
Tailwind
colors: {
  custom: {
    50: '#baa4f8',
    500: '#987ff4',
    950: '#000000',
  },
}
SCSS
$custom: #987ff4;
$custom-light: #baa4f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987ff4",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 244
  },
  "hsl": {
    "h": 252.821,
    "s": 84.173,
    "l": 72.745
  },
  "oklch": {
    "l": 0.67178,
    "c": 0.16849,
    "h": 291
  },
  "luminance": 0.28386
}

Semantic roles & 50–950 ramp

primary
#987FF4
secondary
#EEF5D6
accent
#E105B2
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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