#987CEA#987CEA

#987CEA is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.1% C 0.160 H 293.3°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#987CEA
RGBrgb(152, 124, 234)
HSLhsl(255, 72%, 70%)
HSVhsv(255, 47%, 92%)
CMYKcmyk(35%, 47%, 0%, 8.2%)
CIE-LABlab(59.00, 35.11, -52.05)
CIE-LCHlch(59.00, 62.79, 304.00°)
OKLaboklab(66.08% 0.0631 -0.1468)
OKLCHoklch(66.08% 0.16 293.3)
XYZxyz(35.0040, 27.0305, 81.1991)
Luminance0.2703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CEA #CEEA7C
analogous
#7C97EA #987CEA #CF7CEA
triadic
#987CEA #EA987C #7CEA98
tetradic
#987CEA #EA7C97 #CEEA7C #7CEACF
square
#987CEA #EA7C97 #CEEA7C #7CEACF
split-complementary
#987CEA #EACF7C #97EA7C
monochromatic
#4C21CB #6F47E2 #987CEA #C1B1F2 #EAE5FB

Accessibility & contrast

On white

3.28
#987CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#987CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CEA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CEA#FFFFFF#000000##000000
##987CEA1.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#558FEE
Deuteranopia (green-blind)
#5A8CE7
Tritanopia (blue-blind)
#8491A8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987cea;
/* rgb */ color: rgb(152, 124, 234);
/* oklch */ color: oklch(66.1% 0.160 293.3);
Tailwind
colors: {
  custom: {
    50: '#baa2f1',
    500: '#987cea',
    950: '#000000',
  },
}
SCSS
$custom: #987cea;
$custom-light: #baa2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#987cea",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 234
  },
  "hsl": {
    "h": 255.273,
    "s": 72.368,
    "l": 70.196
  },
  "oklch": {
    "l": 0.66079,
    "c": 0.1598,
    "h": 293.3
  },
  "luminance": 0.27031
}

Semantic roles & 50–950 ramp

primary
#987CEA
secondary
#E8F0D2
accent
#D411A3
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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