frontendhack-logo
54px = 3.375rem

At the default root font size of 16px, 54px is exactly 3.375rem.

Calculation based on a root font-size of 16 pixels.

How to convert 54px to rem

To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 54px that is 54 ÷ 16 = 3.375rem.

54px is a large size, common for headings, section padding and generous layout gaps.

54px at different root font sizes

Root font sizeInputResult
10px54px5.4rem
12px54px4.5rem
14px54px3.8571rem
15px54px3.6rem
16px54px3.375rem
18px54px3rem
20px54px2.7rem
22px54px2.4545rem
24px54px2.25rem

CSS examples

font-size: 3.375rem; /* 54px */
padding: 3.375rem;
margin-bottom: 3.375rem;
width: 3.375rem;

The same values in pixels, if you need a fixed size:

font-size: 54px;
padding: 54px;

Tailwind CSS equivalent

3.375rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[3.375rem] or text-[3.375rem].

Nearby values

PixelsREM
54px3.375rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

54px equals 3.375rem when the root font size is the browser default of 16px. The calculation is 54 ÷ 16 = 3.375.

3.375rem equals 54px at a 16px root font size (3.375 × 16 = 54).

Yes. If the root font size is 18px, 54px equals 3rem, and at 20px it equals 2.7rem. 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.