#987EB3#987EB3

#987EB3 is a light, moderate violet. Relative luminance 0.249; OKLCH L 63.7% C 0.083 H 306.6°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#987EB3
RGBrgb(152, 126, 179)
HSLhsl(269, 26%, 60%)
HSVhsv(269, 30%, 70%)
CMYKcmyk(15.1%, 29.6%, 0%, 29.8%)
CIE-LABlab(56.93, 20.48, -24.25)
CIE-LCHlch(56.93, 31.74, 310.18°)
OKLaboklab(63.67% 0.0494 -0.0665)
OKLCHoklch(63.67% 0.083 306.6)
XYZxyz(28.5449, 24.8519, 45.9322)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EB3 #99B37E
analogous
#7E7EB3 #987EB3 #B37EB3
triadic
#987EB3 #B3987E #7EB398
tetradic
#987EB3 #B37E7E #99B37E #7EB3B3
square
#987EB3 #B37E7E #99B37E #7EB3B3
split-complementary
#987EB3 #B3B37E #7EB37E
monochromatic
#5B4473 #795A99 #987EB3 #B7A5CA #D5CBE0

Accessibility & contrast

On white

3.52
#987EB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#987EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EB3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EB3#FFFFFF#000000##000000
##987EB31.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7488B5
Deuteranopia (green-blind)
#7989B1
Tritanopia (blue-blind)
#948591
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987eb3;
/* rgb */ color: rgb(152, 126, 179);
/* oklch */ color: oklch(63.7% 0.083 306.6);
Tailwind
colors: {
  custom: {
    50: '#b7a3ca',
    500: '#987eb3',
    950: '#000000',
  },
}
SCSS
$custom: #987eb3;
$custom-light: #b7a3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#987eb3",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 179
  },
  "hsl": {
    "h": 269.434,
    "s": 25.854,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63672,
    "c": 0.08284,
    "h": 306.6
  },
  "luminance": 0.24852
}

Semantic roles & 50–950 ramp

primary
#987EB3
secondary
#C7D1BC
accent
#C26695
background
#FBFAFC
surface
#F6F4F8
border
#D0CED1
text
#110F13
muted
#807F82

Preview Lab

Preview with #987EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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