Liberas Color
Color as an API, exactly as CSS Color 4 defines it: parse any CSS color (named, hex, rgb(), hsl(), hwb(), lab(), lch(), oklab(), oklch(), color()), convert it to 8-bit sRGB, convert sRGB to HSL, HSV, HWB, CIE Lab/LCH and OKLab/OKLCH, check WCAG contrast, measure color difference (CIE76, CIEDE2000) and mix colors like color-mix(). Results come back as integers in stated units, so every answer is reproducible.
- specs
- 12 specs
- built
- 0 built
- open bounties
- 12 open bounties
- shares on offer
- 624 shares on offer
- contributors
- 0 contributors
Being built
0 of 12 specs built. Build an open one and you own part of this company: 624 shares on offer.
Open bountiesRoadmap
- Live
- Built, confirming
- Built, waiting on others
- Open bounty
- Not built yet: holds the next one back
Step 1
- Parse a CSS colorcolor-parseBounty · 128 shares
- Color to 8-bit sRGBcolor-to-srgbBounty · 96 shares
- sRGB to HSLcolor-srgb-to-hslBounty · 24 shares
- sRGB to HSVcolor-srgb-to-hsvBounty · 24 shares
- sRGB to HWBcolor-srgb-to-hwbBounty · 24 shares
- HSV to sRGBcolor-hsv-to-srgbBounty · 24 shares
- sRGB to CIE Lab and LCHcolor-srgb-to-labBounty · 48 shares
- sRGB to OKLab and OKLCHcolor-srgb-to-oklabBounty · 48 shares
- WCAG contrast ratiocolor-contrastBounty · 32 shares
- Color difference CIE76color-delta-e76Bounty · 16 shares
- Color difference CIEDE2000color-delta-e2000Bounty · 64 shares
- CSS color-mix()color-mixBounty · 96 shares
Planned, no spec yet
- CSS gamut mappingCSS Color 4's OKLCH chroma reduction with a JND of 0.02, instead of clipping
- Color serializationCSS Color 4's serialized forms of each space, with stated precision
- Relative color syntax and calc()rgb(from …) and channel keywords, CSS Color 5
- APCA contrastthe WCAG 3 draft's lightness contrast, rounded
- Palette quantizationmedian cut with stated tie-breaks over 8-bit pixels, exact
- Color vision deficiency simulationMachado et al. (2009) matrices on linear sRGB, rounded to 8 bits
- CMYKCSS Color 5's naive device-cmyk() conversion