#987EB0#987EB0

#987EB0 is a light, moderate violet. Relative luminance 0.247; OKLCH L 63.5% C 0.079 H 308.0°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#987EB0
RGBrgb(152, 126, 176)
HSLhsl(271, 24%, 59%)
HSVhsv(271, 28%, 69%)
CMYKcmyk(13.6%, 28.4%, 0%, 31%)
CIE-LABlab(56.81, 19.81, -22.72)
CIE-LCHlch(56.81, 30.14, 311.09°)
OKLaboklab(63.54% 0.0485 -0.0622)
OKLCHoklch(63.54% 0.079 308)
XYZxyz(28.2448, 24.7319, 44.3516)
Luminance0.2473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EB0 #96B07E
analogous
#7F7EB0 #987EB0 #B07EAF
triadic
#987EB0 #B0987E #7EB098
tetradic
#987EB0 #B07F7E #96B07E #7EAFB0
square
#987EB0 #B07F7E #96B07E #7EAFB0
split-complementary
#987EB0 #AFB07E #7EB07F
monochromatic
#5B446F #7A5B95 #987EB0 #B6A4C7 #D5CADE

Accessibility & contrast

On white

3.53
#987EB0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#987EB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EB0
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EB0#FFFFFF#000000##000000
##987EB01.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7587B2
Deuteranopia (green-blind)
#7A89AE
Tritanopia (blue-blind)
#958590
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987eb0;
/* rgb */ color: rgb(152, 126, 176);
/* oklch */ color: oklch(63.5% 0.079 308.0);
Tailwind
colors: {
  custom: {
    50: '#b7a3c7',
    500: '#987eb0',
    950: '#000000',
  },
}
SCSS
$custom: #987eb0;
$custom-light: #b7a3c7;
$custom-dark: #000000;
JSON
{
  "hex": "#987eb0",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 176
  },
  "hsl": {
    "h": 271.2,
    "s": 24.038,
    "l": 59.216
  },
  "oklch": {
    "l": 0.63543,
    "c": 0.07885,
    "h": 308
  },
  "luminance": 0.24732
}

Semantic roles & 50–950 ramp

primary
#987EB0
secondary
#C5CFBB
accent
#C06792
background
#FBFAFC
surface
#F6F4F8
border
#D0CED1
text
#110F13
muted
#807F82

Preview Lab

Preview with #987EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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