The best part being now that CSS variables are real world deployable, this is easier to implement native and trash like SWIFT and SCSS can be told to go suck an egg.
More so if you work in HSL. You can design in luma, then shift the whole thing by changing just a common hue/sat or two.
Hmm... that might be a good idea for an article.
Though side note, your example colours don't meet WCAG minimums for contrast. Just sayin'. I know that just mentioning the WCAG makes most artists under the DELUSION they are "web designers" have their wiener shrink in so far it pokes out their backside... but still... White on Cyan? I'd expect a "designer" to know better than that. :D