#987FEB#987FEB

#987FEB is a light, vivid violet. Relative luminance 0.279; OKLCH L 66.7% C 0.157 H 292.3°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#987FEB
RGBrgb(152, 127, 235)
HSLhsl(254, 73%, 71%)
HSVhsv(254, 46%, 92%)
CMYKcmyk(35.3%, 46%, 0%, 7.8%)
CIE-LABlab(59.75, 33.65, -51.41)
CIE-LCHlch(59.75, 61.45, 303.21°)
OKLaboklab(66.66% 0.0594 -0.1449)
OKLCHoklch(66.66% 0.157 292.3)
XYZxyz(35.5297, 27.8515, 82.0851)
Luminance0.2785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FEB #D2EB7F
analogous
#7F9CEB #987FEB #CE7FEB
triadic
#987FEB #EB987F #7FEB98
tetradic
#987FEB #EB7F9C #D2EB7F #7FEBCE
square
#987FEB #EB7F9C #D2EB7F #7FEBCE
split-complementary
#987FEB #EBCE7F #9CEB7F
monochromatic
#4920CF #6D4AE3 #987FEB #C3B4F3 #EAE5FB

Accessibility & contrast

On white

3.20
#987FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#987FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FEB
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FEB#FFFFFF#000000##000000
##987FEB1.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5991EF
Deuteranopia (green-blind)
#5D8EE8
Tritanopia (blue-blind)
#8494AA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987feb;
/* rgb */ color: rgb(152, 127, 235);
/* oklch */ color: oklch(66.7% 0.157 292.3);
Tailwind
colors: {
  custom: {
    50: '#baa4f2',
    500: '#987feb',
    950: '#000000',
  },
}
SCSS
$custom: #987feb;
$custom-light: #baa4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#987feb",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 253.889,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66661,
    "c": 0.15663,
    "h": 292.3
  },
  "luminance": 0.27852
}

Semantic roles & 50–950 ramp

primary
#987FEB
secondary
#EBF1D5
accent
#D510A8
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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