#987FBF#987FBF

#987FBF is a light, moderate violet. Relative luminance 0.256; OKLCH L 64.4% C 0.097 H 301.7°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#987FBF
RGBrgb(152, 127, 191)
HSLhsl(263, 33%, 62%)
HSVhsv(263, 34%, 75%)
CMYKcmyk(20.4%, 33.5%, 0%, 25.1%)
CIE-LABlab(57.67, 22.66, -29.96)
CIE-LCHlch(57.67, 37.56, 307.10°)
OKLaboklab(64.4% 0.0511 -0.0828)
OKLCHoklch(64.4% 0.097 301.7)
XYZxyz(29.9402, 25.6157, 52.6471)
Luminance0.2562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FBF #A6BF7F
analogous
#7F86BF #987FBF #B87FBF
triadic
#987FBF #BF987F #7FBF98
tetradic
#987FBF #BF7F86 #A6BF7F #7FBFB8
square
#987FBF #BF7F86 #A6BF7F #7FBFB8
split-complementary
#987FBF #BFB87F #86BF7F
monochromatic
#5B4182 #7756AB #987FBF #B9A8D3 #DAD1E8

Accessibility & contrast

On white

3.43
#987FBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#987FBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FBF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FBF#FFFFFF#000000##000000
##987FBF1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#718AC2
Deuteranopia (green-blind)
#758ABD
Tritanopia (blue-blind)
#918996
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987fbf;
/* rgb */ color: rgb(152, 127, 191);
/* oklch */ color: oklch(64.4% 0.097 301.7);
Tailwind
colors: {
  custom: {
    50: '#b7a4d2',
    500: '#987fbf',
    950: '#000000',
  },
}
SCSS
$custom: #987fbf;
$custom-light: #b7a4d2;
$custom-dark: #000000;
JSON
{
  "hex": "#987fbf",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 191
  },
  "hsl": {
    "h": 263.438,
    "s": 33.333,
    "l": 62.353
  },
  "oklch": {
    "l": 0.644,
    "c": 0.09729,
    "h": 301.7
  },
  "luminance": 0.25616
}

Semantic roles & 50–950 ramp

primary
#987FBF
secondary
#CFD9C1
accent
#AC397F
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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