frontendhack-logo
0.1875rem = 3px

At the default root font size of 16px, 0.1875rem is exactly 3px.

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

How to convert 0.1875rem to px

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

3px is a very small size, typically used for borders, hairlines, icon gaps and fine detail.

0.1875rem at different root font sizes

Root font sizeInputResult
10px0.1875rem1.875px
12px0.1875rem2.25px
14px0.1875rem2.625px
15px0.1875rem2.8125px
16px0.1875rem3px
18px0.1875rem3.375px
20px0.1875rem3.75px
22px0.1875rem4.125px
24px0.1875rem4.5px

CSS examples

font-size: 0.1875rem; /* 3px */
padding: 0.1875rem;
margin-bottom: 0.1875rem;
width: 0.1875rem;

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

font-size: 3px;
padding: 3px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
0.0625rem1px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px
0.3rem4.8px
0.3125rem5px
0.375rem6px

Frequently Asked Questions

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

3px equals 0.1875rem at a 16px root font size (3 ÷ 16 = 0.1875).

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