Exact and Explained
Gray is #808080 in hex, rgb(128, 128, 128) in RGB and hsl(0, 0%, 50%) in HSL. Copy any format, check contrast and see shades and matching colours. The worked example and tables on this page are calculated from the numbers themselves, so you can check the result by hand.