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
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Piano Black | #17171A | 23, 23, 26 | 240°, 6%, 10% | 12, 12, 0, 90 | |
| 25% (near Piano Black) | #17161B | 23, 22, 27 | 252°, 10%, 10% | 15, 19, 0, 89 | |
| 50% (near Piano Black) | #17161B | 23, 22, 27 | 252°, 10%, 10% | 15, 19, 0, 89 | |
| 75% (near Back in Black) | #16151C | 22, 21, 28 | 249°, 14%, 10% | 21, 25, 0, 89 | |
| Back in Black | #16141C | 22, 20, 28 | 255°, 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
- Top to bottom:
linear-gradient(180deg, #17171a, #16141c) - Diagonal:
linear-gradient(135deg, #17171a, #16141c) - Radial, from the center out:
radial-gradient(circle, #17171a, #16141c) - Tailwind CSS:
bg-gradient-to-r from-[#17171a] to-[#16141c]
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.