relative-luminance
calculate relative luminance
calculate relative luminance
Detects if a hex color is dark or light. It is based on the w3 documentation for color luminance: https://www.w3.org/TR/WCAG20/#relativeluminancedef
bare-bones color luminance functions
Get relative luminance from a color string.
Calculate contrast ratio between two CSS color strings.
Calculate the color in an array of colors that gives the highest contrast to another color.
Super simple color manipulation using getters and setters
Evaluate if a to colors have sufficient contrast to pass WCAG requirements.
Convert RGB to grayscale
Reads luminance and histogram data from JPEG images (based on Bill Yeh's pixelr)
Color space based on human perception
Real World Color Modifications
Change the hue of a color without changing the relative luminance
Dynamic interface color generator
Lightweight (no dependencies) and fast color brightness detector built with Flow Types.
Colour transformation utilities
SafeColor generates accessible colors that compiles with WCAG success criteria 1.4.3 (or any contrast ratio of your choice). It can generate either a random color that is contrast safe with a given color, or a consistent color for a given string.
🐻 fuzzy image diff'ing for the terminal
Методы для работы с цветом и его компонентами
helper function for WCAG contrast criterion