#987EEC#987EEC

#987EEC is a light, vivid violet. Relative luminance 0.277; OKLCH L 66.5% C 0.159 H 292.4°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#987EEC
RGBrgb(152, 126, 236)
HSLhsl(254, 74%, 71%)
HSVhsv(254, 47%, 93%)
CMYKcmyk(35.6%, 46.6%, 0%, 7.5%)
CIE-LABlab(59.57, 34.49, -52.26)
CIE-LCHlch(59.57, 62.61, 303.42°)
OKLaboklab(66.54% 0.0608 -0.1474)
OKLCHoklch(66.54% 0.159 292.4)
XYZxyz(35.5461, 27.6524, 82.8053)
Luminance0.2765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EEC #D2EC7E
analogous
#7E9BEC #987EEC #CF7EEC
triadic
#987EEC #EC987E #7EEC98
tetradic
#987EEC #EC7E9B #D2EC7E #7EECCF
square
#987EEC #EC7E9B #D2EC7E #7EECCF
split-complementary
#987EEC #ECCF7E #9BEC7E
monochromatic
#491FD1 #6D49E4 #987EEC #C3B3F4 #EAE4FB

Accessibility & contrast

On white

3.22
#987EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#987EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EEC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EEC#FFFFFF#000000##000000
##987EEC1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5791F0
Deuteranopia (green-blind)
#5B8DE9
Tritanopia (blue-blind)
#8393AA
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987eec;
/* rgb */ color: rgb(152, 126, 236);
/* oklch */ color: oklch(66.5% 0.159 292.4);
Tailwind
colors: {
  custom: {
    50: '#baa4f3',
    500: '#987eec',
    950: '#000000',
  },
}
SCSS
$custom: #987eec;
$custom-light: #baa4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987eec",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 254.182,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66542,
    "c": 0.15945,
    "h": 292.4
  },
  "luminance": 0.27653
}

Semantic roles & 50–950 ramp

primary
#987EEC
secondary
#EBF2D4
accent
#D60FA7
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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