#987BB3#987BB3

#987BB3 is a light, moderate violet. Relative luminance 0.241; OKLCH L 63.1% C 0.088 H 307.7°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#987BB3
RGBrgb(152, 123, 179)
HSLhsl(271, 27%, 59%)
HSVhsv(271, 31%, 70%)
CMYKcmyk(15.1%, 31.3%, 0%, 29.8%)
CIE-LABlab(56.18, 22.21, -25.40)
CIE-LCHlch(56.18, 33.75, 311.17°)
OKLaboklab(63.1% 0.0539 -0.0698)
OKLCHoklch(63.1% 0.088 307.7)
XYZxyz(28.1670, 24.0962, 45.8062)
Luminance0.2410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BB3 #96B37B
analogous
#7C7BB3 #987BB3 #B37BB2
triadic
#987BB3 #B3987B #7BB398
tetradic
#987BB3 #B37C7B #96B37B #7BB2B3
square
#987BB3 #B37C7B #96B37B #7BB2B3
split-complementary
#987BB3 #B2B37B #7BB37C
monochromatic
#5B4272 #7A5899 #987BB3 #B6A2C9 #D5C9E0

Accessibility & contrast

On white

3.61
#987BB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#987BB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BB3
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BB3#FFFFFF#000000##000000
##987BB31.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7185B5
Deuteranopia (green-blind)
#7787B1
Tritanopia (blue-blind)
#95838F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #987bb3;
/* rgb */ color: rgb(152, 123, 179);
/* oklch */ color: oklch(63.1% 0.088 307.7);
Tailwind
colors: {
  custom: {
    50: '#b7a1ca',
    500: '#987bb3',
    950: '#000000',
  },
}
SCSS
$custom: #987bb3;
$custom-light: #b7a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#987bb3",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 179
  },
  "hsl": {
    "h": 271.071,
    "s": 26.923,
    "l": 59.216
  },
  "oklch": {
    "l": 0.63101,
    "c": 0.08816,
    "h": 307.7
  },
  "luminance": 0.24096
}

Semantic roles & 50–950 ramp

primary
#987BB3
secondary
#C5D0BA
accent
#C36592
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110F13
muted
#807E82

Preview Lab

Preview with #987BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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