frontendhack-logo
17.8rem = 284.8px

At the default root font size of 16px, 17.8rem is exactly 284.8px.

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

How to convert 17.8rem to px

To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 17.8rem that is 17.8 × 16 = 284.8px.

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

17.8rem at different root font sizes

Root font sizeInputResult
10px17.8rem178px
12px17.8rem213.6px
14px17.8rem249.2px
15px17.8rem267px
16px17.8rem284.8px
18px17.8rem320.4px
20px17.8rem356px
22px17.8rem391.6px
24px17.8rem427.2px

CSS examples

font-size: 17.8rem; /* 284.8px */
padding: 17.8rem;
margin-bottom: 17.8rem;
width: 17.8rem;

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

font-size: 284.8px;
padding: 284.8px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
17.3rem276.8px
17.4rem278.4px
17.5rem280px
17.6rem281.6px
17.7rem283.2px
17.8rem284.8px
17.9rem286.4px
18rem288px
18.1rem289.6px
18.2rem291.2px
18.3rem292.8px

Frequently Asked Questions

17.8rem equals 284.8px when the root font size is the browser default of 16px. The calculation is 17.8 × 16 = 284.8.

284.8px equals 17.8rem at a 16px root font size (284.8 ÷ 16 = 17.8).

Yes. rem is relative to the root font size, so 17.8rem becomes 320.4px at an 18px root and 356px at a 20px root. 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.