This site is mobile accessible. Press the "Tap Here" button to use a different font-size.



Smartphone icons created by Freepik - Flaticon

// detects and displays the pixel depth in bits
document.getElementById("demo").innerHTML = 
"Screen pixel depth is " + screen.pixelDepth;

For modern computers, Color Depth and Pixel Depth are equal.