#987FBB#987FBB

#987FBB is a light, moderate violet. Relative luminance 0.254; OKLCH L 64.2% C 0.092 H 303.0°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#987FBB
RGBrgb(152, 127, 187)
HSLhsl(265, 31%, 62%)
HSVhsv(265, 32%, 73%)
CMYKcmyk(18.7%, 32.1%, 0%, 26.7%)
CIE-LABlab(57.50, 21.73, -27.94)
CIE-LCHlch(57.50, 35.39, 307.87°)
OKLaboklab(64.22% 0.0501 -0.077)
OKLCHoklch(64.22% 0.092 303)
XYZxyz(29.5061, 25.4420, 50.3604)
Luminance0.2544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FBB #A2BB7F
analogous
#7F84BB #987FBB #B67FBB
triadic
#987FBB #BB987F #7FBB98
tetradic
#987FBB #BB7F84 #A2BB7F #7FBBB6
square
#987FBB #BB7F84 #A2BB7F #7FBBB6
split-complementary
#987FBB #BBB67F #84BB7F
monochromatic
#5B427D #7858A5 #987FBB #B8A7D0 #D8CFE5

Accessibility & contrast

On white

3.45
#987FBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#987FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FBB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FBB#FFFFFF#000000##000000
##987FBB1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7289BD
Deuteranopia (green-blind)
#778AB9
Tritanopia (blue-blind)
#928895
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987fbb;
/* rgb */ color: rgb(152, 127, 187);
/* oklch */ color: oklch(64.2% 0.092 303.0);
Tailwind
colors: {
  custom: {
    50: '#b7a4cf',
    500: '#987fbb',
    950: '#000000',
  },
}
SCSS
$custom: #987fbb;
$custom-light: #b7a4cf;
$custom-dark: #000000;
JSON
{
  "hex": "#987fbb",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 187
  },
  "hsl": {
    "h": 265,
    "s": 30.612,
    "l": 61.569
  },
  "oklch": {
    "l": 0.64217,
    "c": 0.09186,
    "h": 303
  },
  "luminance": 0.25442
}

Semantic roles & 50–950 ramp

primary
#987FBB
secondary
#CDD6C0
accent
#A93C7C
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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