frontendhack-logo
78px = 4.875rem

At the default root font size of 16px, 78px is exactly 4.875rem.

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

How to convert 78px to rem

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

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

78px at different root font sizes

Root font sizeInputResult
10px78px7.8rem
12px78px6.5rem
14px78px5.5714rem
15px78px5.2rem
16px78px4.875rem
18px78px4.3333rem
20px78px3.9rem
22px78px3.5455rem
24px78px3.25rem

CSS examples

font-size: 4.875rem; /* 78px */
padding: 4.875rem;
margin-bottom: 4.875rem;
width: 4.875rem;

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

font-size: 78px;
padding: 78px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
78px4.875rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

4.875rem equals 78px at a 16px root font size (4.875 × 16 = 78).

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