frontendhack-logo
38rem = 608px

At the default root font size of 16px, 38rem is exactly 608px.

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

How to convert 38rem to px

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

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

38rem at different root font sizes

Root font sizeInputResult
10px38rem380px
12px38rem456px
14px38rem532px
15px38rem570px
16px38rem608px
18px38rem684px
20px38rem760px
22px38rem836px
24px38rem912px

CSS examples

font-size: 38rem; /* 608px */
padding: 38rem;
margin-bottom: 38rem;
width: 38rem;

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

font-size: 608px;
padding: 608px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
38rem608px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

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

608px equals 38rem at a 16px root font size (608 ÷ 16 = 38).

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