JSFiddle - React, Tailwind, and code Playground
HTML
<svg width="100%" height="100%" viewBox="0 0 42 42">
<circle cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#d2d3d4" stroke-width="3" />
<circle
cx="21"
cy="21"
r="15.91549430918954"
fill="transparent"
stroke="#b1c94e"
stroke-width="3"
stroke-dasharray="25 75"
stroke-dashoffset="25"
/>
<!-- How do I calculate this so the text is in the center of the slice -->
<text x="80%" y="30%" font-size="6" text-anchor="middle">
25%
</text>
</svg>