#987CE2#987CE2

#987CE2 is a light, vivid violet. Relative luminance 0.266; OKLCH L 65.6% C 0.149 H 294.6°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#987CE2
RGBrgb(152, 124, 226)
HSLhsl(256, 64%, 69%)
HSVhsv(256, 45%, 89%)
CMYKcmyk(32.7%, 45.1%, 0%, 11.4%)
CIE-LABlab(58.58, 33.03, -48.26)
CIE-LCHlch(58.58, 58.48, 304.39°)
OKLaboklab(65.63% 0.0621 -0.1357)
OKLCHoklch(65.63% 0.149 294.6)
XYZxyz(33.8805, 26.5811, 75.2824)
Luminance0.2658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CE2 #C6E27C
analogous
#7C93E2 #987CE2 #CB7CE2
triadic
#987CE2 #E2987C #7CE298
tetradic
#987CE2 #E27C93 #C6E27C #7CE2CB
square
#987CE2 #E27C93 #C6E27C #7CE2CB
split-complementary
#987CE2 #E2CB7C #93E27C
monochromatic
#5129BA #714AD7 #987CE2 #BFAEED #E7E0F8

Accessibility & contrast

On white

3.32
#987CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#987CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CE2
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CE2#FFFFFF#000000##000000
##987CE21.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8EE6
Deuteranopia (green-blind)
#5F8BE0
Tritanopia (blue-blind)
#878FA4
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987ce2;
/* rgb */ color: rgb(152, 124, 226);
/* oklch */ color: oklch(65.6% 0.149 294.6);
Tailwind
colors: {
  custom: {
    50: '#b9a2eb',
    500: '#987ce2',
    950: '#000000',
  },
}
SCSS
$custom: #987ce2;
$custom-light: #b9a2eb;
$custom-dark: #000000;
JSON
{
  "hex": "#987ce2",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 226
  },
  "hsl": {
    "h": 256.471,
    "s": 63.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.65629,
    "c": 0.14925,
    "h": 294.6
  },
  "luminance": 0.26582
}

Semantic roles & 50–950 ramp

primary
#987CE2
secondary
#E4ECCE
accent
#CC1A9B
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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