#987ECF#987ECF

#987ECF is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.0% C 0.121 H 297.7°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#987ECF
RGBrgb(152, 126, 207)
HSLhsl(259, 46%, 65%)
HSVhsv(259, 39%, 81%)
CMYKcmyk(26.6%, 39.1%, 0%, 18.8%)
CIE-LABlab(58.13, 27.09, -38.30)
CIE-LCHlch(58.13, 46.91, 305.28°)
OKLaboklab(64.99% 0.0562 -0.1068)
OKLCHoklch(64.99% 0.121 297.7)
XYZxyz(31.6696, 26.1018, 62.3891)
Luminance0.2610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987ECF #B5CF7E
analogous
#7E8CCF #987ECF #C07ECF
triadic
#987ECF #CF987E #7ECF98
tetradic
#987ECF #CF7E8C #B5CF7E #7ECFC0
square
#987ECF #CF7E8C #B5CF7E #7ECFC0
split-complementary
#987ECF #CFC07E #8CCF7E
monochromatic
#583999 #7451BE #987ECF #BCABE0 #DFD7F0

Accessibility & contrast

On white

3.38
#987ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#987ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987ECF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987ECF#FFFFFF#000000##000000
##987ECF1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#688CD2
Deuteranopia (green-blind)
#6D8BCD
Tritanopia (blue-blind)
#8D8C9D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987ecf;
/* rgb */ color: rgb(152, 126, 207);
/* oklch */ color: oklch(65.0% 0.121 297.7);
Tailwind
colors: {
  custom: {
    50: '#b8a3de',
    500: '#987ecf',
    950: '#000000',
  },
}
SCSS
$custom: #987ecf;
$custom-light: #b8a3de;
$custom-dark: #000000;
JSON
{
  "hex": "#987ecf",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 207
  },
  "hsl": {
    "h": 259.259,
    "s": 45.763,
    "l": 65.294
  },
  "oklch": {
    "l": 0.64985,
    "c": 0.12065,
    "h": 297.7
  },
  "luminance": 0.26102
}

Semantic roles & 50–950 ramp

primary
#987ECF
secondary
#D9E2C7
accent
#B92D8C
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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