Opium color: hex code #987E7E

#987E7E rgb(152, 126, 126)
Shades of gray

Opium has the hex code #987E7E. It is a grayish red.

In the RGB color model it is made of 59.6% red, 49.4% green and 49.4% blue (152, 126, 126).

Its hue angle is 0°, with 11% saturation and 55% lightness. For print, the CMYK equivalent is 0% cyan, 17% magenta, 17% yellow and 40% black.

Black text is the more readable choice on this background (contrast 5.62:1).

Opium (#987E7E) color codes

HEX#987E7E
RGBrgb(152, 126, 126)
RGB percentrgb(59.6%, 49.4%, 49.4%)
HSLhsl(0, 11%, 55%)
HSV / HSBhsv(0, 17%, 60%)
CMYKcmyk(0%, 17%, 17%, 40%)
CIE LABlab(55.18, 9.99, 3.75)
CIE LCHlch(55.18, 10.67, 20.57)
CIE XYZxyz(24.176, 23.104, 22.921)
Decimal9993854
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Opium, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #987E7ERatioAAAAAAA large
Sample text5.62:1PassFailPass
Sample text3.74:1FailFailPass
#987E7E as text onRatioAAAAAAA large
Sample text3.74:1FailFailPass
Sample text5.62:1PassFailPass

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #987E7E looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #987e7e; }
.text { color: #987e7e; }
.border { border: 2px solid #987e7e; }
.transparent { background-color: rgb(152 126 126 / 50%); }
.gradient { background: linear-gradient(to right, #987e7e, #988b7e); }
Background
Text color
Border

Similar colors

Closest common color name: Mocha.

See #987E7E on its hex code page

Questions

What color is #987E7E?
#987E7E is a grayish red known as Opium. It belongs to the gray family of colors.
What is the RGB value of Opium?
The RGB value is 152, 126, 126: 152 red, 126 green and 126 blue on a 0 to 255 scale.
What is the complementary color of Opium?
The complementary color is #7E9898, found by rotating the hue 180° on the color wheel.
Is black or white text better on #987E7E?
Black text. Black text has a contrast ratio of 5.62:1 and white text 3.74:1. WCAG asks for at least 4.5:1 for normal text.