Home
CSS
CSS Colors
RGB
Tryit: Shades of gray
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>Shades of gray</h1> <p>By using equal values for red, green, and blue, you will get different shades of gray:</p> <h2 style="background-color:rgb(60, 60, 60);">rgb(60, 60, 60)</h2> <h2 style="background-color:rgb(90, 90, 90);">rgb(90, 90, 90)</h2> <h2 style="background-color:rgb(120, 120, 120);">rgb(120, 120, 120)</h2> <h2 style="background-color:rgb(180, 180, 180);">rgb(180, 180, 180)</h2> <h2 style="background-color:rgb(210, 210, 210);">rgb(210, 210, 210)</h2> <h2 style="background-color:rgb(240, 240, 240);">rgb(240, 240, 240)</h2> </body> </html>