#987FCF#987FCF

#987FCF is a light, moderate violet. Relative luminance 0.264; OKLCH L 65.2% C 0.119 H 297.4°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#987FCF
RGBrgb(152, 127, 207)
HSLhsl(259, 45%, 65%)
HSVhsv(259, 39%, 81%)
CMYKcmyk(26.6%, 38.6%, 0%, 18.8%)
CIE-LABlab(58.38, 26.52, -37.92)
CIE-LCHlch(58.38, 46.27, 304.96°)
OKLaboklab(65.17% 0.0547 -0.1057)
OKLCHoklch(65.17% 0.119 297.4)
XYZxyz(31.7981, 26.3589, 62.4319)
Luminance0.2636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FCF #B6CF7F
analogous
#7F8ECF #987FCF #C07FCF
triadic
#987FCF #CF987F #7FCF98
tetradic
#987FCF #CF7F8E #B6CF7F #7FCFC0
square
#987FCF #CF7F8E #B6CF7F #7FCFC0
split-complementary
#987FCF #CFC07F #8ECF7F
monochromatic
#583A9A #7452BE #987FCF #BCACE0 #E0D8F0

Accessibility & contrast

On white

3.35
#987FCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#987FCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FCF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FCF#FFFFFF#000000##000000
##987FCF1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8DD2
Deuteranopia (green-blind)
#6E8CCD
Tritanopia (blue-blind)
#8D8D9D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987fcf;
/* rgb */ color: rgb(152, 127, 207);
/* oklch */ color: oklch(65.2% 0.119 297.4);
Tailwind
colors: {
  custom: {
    50: '#b8a4de',
    500: '#987fcf',
    950: '#000000',
  },
}
SCSS
$custom: #987fcf;
$custom-light: #b8a4de;
$custom-dark: #000000;
JSON
{
  "hex": "#987fcf",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 207
  },
  "hsl": {
    "h": 258.75,
    "s": 45.455,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65169,
    "c": 0.11903,
    "h": 297.4
  },
  "luminance": 0.26359
}

Semantic roles & 50–950 ramp

primary
#987FCF
secondary
#DAE2C8
accent
#B92D8D
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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