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
Dynamic interface color generator
Change the hue of a color without changing the relative luminance
Lightweight (no dependencies) and fast color brightness detector built with Flow Types.
Real World Color Modifications
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.
Colour transformation utilities
🐻 fuzzy image diff'ing for the terminal
Методы для работы с цветом и его компонентами
Allows you to control Hue, Saturation, and Relative Luminance as if it where a color space. Inputs are the Hue, Saturation, and Relative Luminance of a color, and output is an array of RGB values ranging from 0 to 1, 0 to 255, and a string containing the