apca-w3
APCA: the Accessible Perceptual Contrast Algorithm, a modern contrast method that improves readability contrast on self-illuminated displays. Developed for the W3C's WCAG 3 and other standards.
postcss-contrast
PostCSS plugin to change text color depending on background color contrast
rcolor
Random color is a simple javascript module for generating random colors that contrast enough to distinguish between one another, and are not too loud (by default, all colours can have readable black/dark font overlayed).
chromator
Library for converting colour codes and manipulating relative luminance and contrast ratio