#987FBC#987FBC

#987FBC is a light, moderate violet. Relative luminance 0.255; OKLCH L 64.3% C 0.093 H 302.7°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#987FBC
RGBrgb(152, 127, 188)
HSLhsl(265, 31%, 62%)
HSVhsv(265, 32%, 74%)
CMYKcmyk(19.1%, 32.4%, 0%, 26.3%)
CIE-LABlab(57.55, 21.96, -28.45)
CIE-LCHlch(57.55, 35.94, 307.67°)
OKLaboklab(64.26% 0.0503 -0.0785)
OKLCHoklch(64.26% 0.093 302.7)
XYZxyz(29.6135, 25.4850, 50.9262)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FBC #A3BC7F
analogous
#7F85BC #987FBC #B77FBC
triadic
#987FBC #BC987F #7FBC98
tetradic
#987FBC #BC7F85 #A3BC7F #7FBCB7
square
#987FBC #BC7F85 #A3BC7F #7FBCB7
split-complementary
#987FBC #BCB77F #85BC7F
monochromatic
#5B427E #7857A7 #987FBC #B8A7D1 #D9CFE6

Accessibility & contrast

On white

3.44
#987FBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#987FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FBC
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FBC#FFFFFF#000000##000000
##987FBC1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#728ABE
Deuteranopia (green-blind)
#778ABA
Tritanopia (blue-blind)
#928895
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987fbc;
/* rgb */ color: rgb(152, 127, 188);
/* oklch */ color: oklch(64.3% 0.093 302.7);
Tailwind
colors: {
  custom: {
    50: '#b7a4d0',
    500: '#987fbc',
    950: '#000000',
  },
}
SCSS
$custom: #987fbc;
$custom-light: #b7a4d0;
$custom-dark: #000000;
JSON
{
  "hex": "#987fbc",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 188
  },
  "hsl": {
    "h": 264.59,
    "s": 31.282,
    "l": 61.765
  },
  "oklch": {
    "l": 0.64262,
    "c": 0.09321,
    "h": 302.7
  },
  "luminance": 0.25485
}

Semantic roles & 50–950 ramp

primary
#987FBC
secondary
#CDD7C0
accent
#AA3B7D
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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