At the default root font size of 16px, 391px is exactly 24.4375rem.
Calculation based on a root font-size of 16 pixels.
How to convert 391px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 391px that is 391 ÷ 16 = 24.4375rem.
391px is a very large size, typically used for hero headings, containers and big layout dimensions.
391px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 391px | 39.1rem |
| 12px | 391px | 32.5833rem |
| 14px | 391px | 27.9286rem |
| 15px | 391px | 26.0667rem |
| 16px | 391px | 24.4375rem |
| 18px | 391px | 21.7222rem |
| 20px | 391px | 19.55rem |
| 22px | 391px | 17.7727rem |
| 24px | 391px | 16.2917rem |
CSS examples
font-size: 24.4375rem; /* 391px */
padding: 24.4375rem;
margin-bottom: 24.4375rem;
width: 24.4375rem;The same values in pixels, if you need a fixed size:
font-size: 391px;
padding: 391px;Tailwind CSS equivalent
24.4375rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[24.4375rem] or text-[24.4375rem].
Nearby values
Frequently Asked Questions
391px equals 24.4375rem when the root font size is the browser default of 16px. The calculation is 391 ÷ 16 = 24.4375.
24.4375rem equals 391px at a 16px root font size (24.4375 × 16 = 391).
Yes. If the root font size is 18px, 391px equals 21.7222rem, and at 20px it equals 19.55rem. The pixel value itself never changes, only the rem equivalent. Use the base font size field above to try any value.
Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.
