#987EE3#987EE3

#987EE3 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.0% C 0.148 H 293.8°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#987EE3
RGBrgb(152, 126, 227)
HSLhsl(255, 64%, 69%)
HSVhsv(255, 44%, 89%)
CMYKcmyk(33%, 44.5%, 0%, 11%)
CIE-LABlab(59.11, 32.14, -47.99)
CIE-LCHlch(59.11, 57.76, 303.82°)
OKLaboklab(66.04% 0.0596 -0.1349)
OKLCHoklch(66.04% 0.148 293.8)
XYZxyz(34.2713, 27.1425, 76.0916)
Luminance0.2714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EE3 #C9E37E
analogous
#7E97E3 #987EE3 #CB7EE3
triadic
#987EE3 #E3987E #7EE398
tetradic
#987EE3 #E37E97 #C9E37E #7EE3CB
square
#987EE3 #E37E97 #C9E37E #7EE3CB
split-complementary
#987EE3 #E3CB7E #97E37E
monochromatic
#4F29BD #704CD8 #987EE3 #C0B0EE #E8E3F9

Accessibility & contrast

On white

3.27
#987EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#987EE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EE3
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EE3#FFFFFF#000000##000000
##987EE31.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8FE7
Deuteranopia (green-blind)
#618DE1
Tritanopia (blue-blind)
#8791A6
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987ee3;
/* rgb */ color: rgb(152, 126, 227);
/* oklch */ color: oklch(66.0% 0.148 293.8);
Tailwind
colors: {
  custom: {
    50: '#b9a3ec',
    500: '#987ee3',
    950: '#000000',
  },
}
SCSS
$custom: #987ee3;
$custom-light: #b9a3ec;
$custom-dark: #000000;
JSON
{
  "hex": "#987ee3",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 227
  },
  "hsl": {
    "h": 255.446,
    "s": 64.331,
    "l": 69.216
  },
  "oklch": {
    "l": 0.66038,
    "c": 0.14752,
    "h": 293.8
  },
  "luminance": 0.27143
}

Semantic roles & 50–950 ramp

primary
#987EE3
secondary
#E6EDD0
accent
#CC199E
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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