frontendhack-logo
6.8rem = 108.8px

At the default root font size of 16px, 6.8rem is exactly 108.8px.

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

How to convert 6.8rem to px

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

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

6.8rem at different root font sizes

Root font sizeInputResult
10px6.8rem68px
12px6.8rem81.6px
14px6.8rem95.2px
15px6.8rem102px
16px6.8rem108.8px
18px6.8rem122.4px
20px6.8rem136px
22px6.8rem149.6px
24px6.8rem163.2px

CSS examples

font-size: 6.8rem; /* 108.8px */
padding: 6.8rem;
margin-bottom: 6.8rem;
width: 6.8rem;

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

font-size: 108.8px;
padding: 108.8px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
6.6rem105.6px
6.625rem106px
6.6875rem107px
6.7rem107.2px
6.75rem108px
6.8rem108.8px
6.8125rem109px
6.875rem110px
6.9rem110.4px
6.9375rem111px
7rem112px

Frequently Asked Questions

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

108.8px equals 6.8rem at a 16px root font size (108.8 ÷ 16 = 6.8).

Yes. rem is relative to the root font size, so 6.8rem becomes 122.4px at an 18px root and 136px 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.