#987FE4#987FE4

#987FE4 is a light, vivid violet. Relative luminance 0.275; OKLCH L 66.3% C 0.147 H 293.4°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#987FE4
RGBrgb(152, 127, 228)
HSLhsl(255, 65%, 70%)
HSVhsv(255, 44%, 89%)
CMYKcmyk(33.3%, 44.3%, 0%, 10.6%)
CIE-LABlab(59.39, 31.83, -48.09)
CIE-LCHlch(59.39, 57.67, 303.50°)
OKLaboklab(66.27% 0.0584 -0.1352)
OKLCHoklch(66.27% 0.147 293.4)
XYZxyz(34.5383, 27.4549, 76.8634)
Luminance0.2746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FE4 #CBE47F
analogous
#7F99E4 #987FE4 #CA7FE4
triadic
#987FE4 #E4987F #7FE498
tetradic
#987FE4 #E47F99 #CBE47F #7FE4CA
square
#987FE4 #E47F99 #CBE47F #7FE4CA
split-complementary
#987FE4 #E4CA7F #99E47F
monochromatic
#4E29C0 #6F4CD9 #987FE4 #C1B2EF #E9E4F9

Accessibility & contrast

On white

3.24
#987FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#987FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FE4
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FE4#FFFFFF#000000##000000
##987FE41.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E90E8
Deuteranopia (green-blind)
#628DE2
Tritanopia (blue-blind)
#8692A7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987fe4;
/* rgb */ color: rgb(152, 127, 228);
/* oklch */ color: oklch(66.3% 0.147 293.4);
Tailwind
colors: {
  custom: {
    50: '#b9a4ed',
    500: '#987fe4',
    950: '#000000',
  },
}
SCSS
$custom: #987fe4;
$custom-light: #b9a4ed;
$custom-dark: #000000;
JSON
{
  "hex": "#987fe4",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 228
  },
  "hsl": {
    "h": 254.851,
    "s": 65.161,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66271,
    "c": 0.14732,
    "h": 293.4
  },
  "luminance": 0.27456
}

Semantic roles & 50–950 ramp

primary
#987FE4
secondary
#E7EED1
accent
#CD19A0
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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