50 PX to REM

Result

50 px = 3.125 rem


Explanation

  • REM — 3.125
  • Pixel base — 16

To convert 50 pixels to REM with pixel's base 16 you need to divide pixels value by base value, in our case: 50 / 16. In result we'll receive that 50 pixels with base 16 is equal to 3.125 rem

50 / 16 = 3.125 rem

CSS code for 50 PX to REM

p { font-size: 3.125em }

HTML (inline CSS):

<p style="font-size: 3.125em">Hello World<p>
Open PX to REM converter