#987DEC#987DEC

#987DEC is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.4% C 0.161 H 292.7°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#987DEC
RGBrgb(152, 125, 236)
HSLhsl(255, 74%, 71%)
HSVhsv(255, 47%, 93%)
CMYKcmyk(35.6%, 47%, 0%, 7.5%)
CIE-LABlab(59.34, 35.06, -52.63)
CIE-LCHlch(59.34, 63.24, 303.67°)
OKLaboklab(66.37% 0.062 -0.1485)
OKLCHoklch(66.37% 0.161 292.7)
XYZxyz(35.4189, 27.3980, 82.7629)
Luminance0.2740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DEC #D1EC7D
analogous
#7D99EC #987DEC #D07DEC
triadic
#987DEC #EC987D #7DEC98
tetradic
#987DEC #EC7D99 #D1EC7D #7DECD0
square
#987DEC #EC7D99 #D1EC7D #7DECD0
split-complementary
#987DEC #ECD07D #99EC7D
monochromatic
#4A1ED0 #6E48E4 #987DEC #C2B2F4 #EAE4FB

Accessibility & contrast

On white

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

On black

6.48
#987DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DEC
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DEC#FFFFFF#000000##000000
##987DEC1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590F0
Deuteranopia (green-blind)
#598DE9
Tritanopia (blue-blind)
#8393A9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987dec;
/* rgb */ color: rgb(152, 125, 236);
/* oklch */ color: oklch(66.4% 0.161 292.7);
Tailwind
colors: {
  custom: {
    50: '#baa3f3',
    500: '#987dec',
    950: '#000000',
  },
}
SCSS
$custom: #987dec;
$custom-light: #baa3f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987dec",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 254.595,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66367,
    "c": 0.16094,
    "h": 292.7
  },
  "luminance": 0.27399
}

Semantic roles & 50–950 ramp

primary
#987DEC
secondary
#EAF1D3
accent
#D70FA6
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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