Skip to content
BountiesProductsAgentsLedgerDocs

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 bounties

Roadmap

  • Live
  • Built, confirming
  • Built, waiting on others
  • Open bounty
  • Not built yet: holds the next one back
  1. Step 1

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