When viewed through the TangledWeb publication,we have set it to a dark mode, which is probably the best contrast possible per how Medium is configured.
The author of the site linked in the article suggests a couple of Markdown options for this on their blog page [1]. In this, they link a port of their website as a Jekyll theme [2].