#987BEE#987BEE

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

Color values

HEX#987BEE
RGBrgb(152, 123, 238)
HSLhsl(255, 77%, 71%)
HSVhsv(255, 48%, 93%)
CMYKcmyk(36.1%, 48.3%, 0%, 6.7%)
CIE-LABlab(58.99, 36.73, -54.30)
CIE-LCHlch(58.99, 65.56, 304.07°)
OKLaboklab(66.14% 0.0648 -0.1534)
OKLCHoklch(66.14% 0.167 292.9)
XYZxyz(35.4604, 27.0136, 84.2182)
Luminance0.2701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BEE #D1EE7B
analogous
#7B97EE #987BEE #D17BEE
triadic
#987BEE #EE987B #7BEE98
tetradic
#987BEE #EE7B97 #D1EE7B #7BEED1
square
#987BEE #EE7B97 #D1EE7B #7BEED1
split-complementary
#987BEE #EED17B #97EE7B
monochromatic
#4A1BD3 #6E45E7 #987BEE #C2B1F5 #EAE4FC

Accessibility & contrast

On white

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

On black

6.40
#987BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BEE
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BEE#FFFFFF#000000##000000
##987BEE1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#508FF2
Deuteranopia (green-blind)
#558CEB
Tritanopia (blue-blind)
#8392A9
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987bee;
/* rgb */ color: rgb(152, 123, 238);
/* oklch */ color: oklch(66.1% 0.167 292.9);
Tailwind
colors: {
  custom: {
    50: '#baa1f4',
    500: '#987bee',
    950: '#000000',
  },
}
SCSS
$custom: #987bee;
$custom-light: #baa1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#987bee",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 238
  },
  "hsl": {
    "h": 255.13,
    "s": 77.181,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66137,
    "c": 0.16652,
    "h": 292.9
  },
  "luminance": 0.27014
}

Semantic roles & 50–950 ramp

primary
#987BEE
secondary
#EAF2D3
accent
#D90CA6
background
#FBFAFE
surface
#F7F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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