Huebook

Piano Black to Back in Black Gradient

CSS

background: linear-gradient(90deg, #17171a 0%, #16141c 100%);

From Piano Black (#17171A) to Back in Black (#16141C). The two hues are 15° apart on the color wheel, close enough that the blend stays clean without a muddy middle.

Colors along the gradient

NameHEXRGBHSLCMYK
Piano Black#17171A23, 23, 26240°, 6%, 10%12, 12, 0, 90
25% (near Piano Black)#17161B23, 22, 27252°, 10%, 10%15, 19, 0, 89
50% (near Piano Black)#17161B23, 22, 27252°, 10%, 10%15, 19, 0, 89
75% (near Back in Black)#16151C22, 21, 28249°, 14%, 10%21, 25, 0, 89
Back in Black#16141C22, 20, 28255°, 17%, 9%21, 29, 0, 89

Halfway along, the gradient is #17161B, closest to the named color Piano Black. The stops are mixed in RGB, the way browsers draw a linear gradient by default.

Text on this gradient

White text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.02:1, so the change is gentle.

Other ways to use it

Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.

Related gradients

Questions

What are the HEX codes of the Piano Black to Back in Black gradient?

It starts at #17171A (Piano Black) and ends at #16141C (Back in Black), with #17161B in the middle.

How do I reverse the gradient?

Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #17171a, #16141c) runs from Back in Black on the left to Piano Black on the right.