#987FB2#987FB2

#987FB2 is a light, moderate violet. Relative luminance 0.251; OKLCH L 63.8% C 0.080 H 306.6°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#987FB2
RGBrgb(152, 127, 178)
HSLhsl(269, 25%, 60%)
HSVhsv(269, 29%, 70%)
CMYKcmyk(14.6%, 28.7%, 0%, 30.2%)
CIE-LABlab(57.14, 19.68, -23.36)
CIE-LCHlch(57.14, 30.54, 310.11°)
OKLaboklab(63.82% 0.0476 -0.064)
OKLCHoklch(63.82% 0.08 306.6)
XYZxyz(28.5726, 25.0687, 45.4443)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FB2 #99B27F
analogous
#7F80B2 #987FB2 #B27FB2
triadic
#987FB2 #B2987F #7FB298
tetradic
#987FB2 #B27F80 #99B27F #7FB2B2
square
#987FB2 #B27F80 #99B27F #7FB2B2
split-complementary
#987FB2 #B2B27F #80B27F
monochromatic
#5B4572 #795C98 #987FB2 #B7A5C9 #D5CBE0

Accessibility & contrast

On white

3.49
#987FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#987FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FB2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FB2#FFFFFF#000000##000000
##987FB21.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7688B4
Deuteranopia (green-blind)
#7B89B0
Tritanopia (blue-blind)
#958691
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987fb2;
/* rgb */ color: rgb(152, 127, 178);
/* oklch */ color: oklch(63.8% 0.080 306.6);
Tailwind
colors: {
  custom: {
    50: '#b7a4c9',
    500: '#987fb2',
    950: '#000000',
  },
}
SCSS
$custom: #987fb2;
$custom-light: #b7a4c9;
$custom-dark: #000000;
JSON
{
  "hex": "#987fb2",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 178
  },
  "hsl": {
    "h": 269.412,
    "s": 24.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63821,
    "c": 0.07973,
    "h": 306.6
  },
  "luminance": 0.25068
}

Semantic roles & 50–950 ramp

primary
#987FB2
secondary
#C7D0BD
accent
#C16795
background
#FBFAFC
surface
#F6F4F8
border
#D0CED1
text
#110F13
muted
#807F82

Preview Lab

Preview with #987FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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