frontendhack-logo
104px = 6.5rem

At the default root font size of 16px, 104px is exactly 6.5rem.

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

How to convert 104px to rem

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

104px is a very large size, typically used for hero headings, containers and big layout dimensions.

104px at different root font sizes

Root font sizeInputResult
10px104px10.4rem
12px104px8.6667rem
14px104px7.4286rem
15px104px6.9333rem
16px104px6.5rem
18px104px5.7778rem
20px104px5.2rem
22px104px4.7273rem
24px104px4.3333rem

CSS examples

font-size: 6.5rem; /* 104px */
padding: 6.5rem;
margin-bottom: 6.5rem;
width: 6.5rem;

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

font-size: 104px;
padding: 104px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
104px6.5rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

6.5rem equals 104px at a 16px root font size (6.5 × 16 = 104).

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