I had a go at doing this in Rust some time ago https://github.com/JamieMason/blurhash-to-css and there is also https://plaiceholder.co/.
A CSS Houdini worklet would be another way to represent this in CSS.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Houdini