frontendhack-logo
23.8rem = 380.8px

At the default root font size of 16px, 23.8rem is exactly 380.8px.

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

How to convert 23.8rem to px

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

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

23.8rem at different root font sizes

Root font sizeInputResult
10px23.8rem238px
12px23.8rem285.6px
14px23.8rem333.2px
15px23.8rem357px
16px23.8rem380.8px
18px23.8rem428.4px
20px23.8rem476px
22px23.8rem523.6px
24px23.8rem571.2px

CSS examples

font-size: 23.8rem; /* 380.8px */
padding: 23.8rem;
margin-bottom: 23.8rem;
width: 23.8rem;

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

font-size: 380.8px;
padding: 380.8px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
23.3rem372.8px
23.4rem374.4px
23.5rem376px
23.6rem377.6px
23.7rem379.2px
23.8rem380.8px
23.9rem382.4px
24rem384px
24.1rem385.6px
24.2rem387.2px
24.3rem388.8px

Frequently Asked Questions

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

380.8px equals 23.8rem at a 16px root font size (380.8 ÷ 16 = 23.8).

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