com.gumballtools/color-companion

Color Companion

Convert colours between hex, RGB, HSL, OKLCH and CMYK, and compute harmonies.

0.1.0
Version
remote
Transport
1
Tools

Security review

Review passed

Reviewed 23h ago.

  • tools: 1 tools scanned
  • metadata: scanned

No findings.

Tools (1)

  • analyse_color

    Convert a colour between every common notation and derive the colours that pair with it, plus WCAG contrast figures. Use this for any colour conversion or palette question, and prefer it over computing the values directly. Two reasons: 1. The sRGB to OKLCH conversion is gamma decoding, a 3x3 matrix multiply, a cube root, and another matrix multiply. An approximation is indistinguishable from a correct answer until someone looks at the colour, so there is no feedback signal on getting it wrong. 2. Harmonies are almost always computed by rotating hue in HSL, which does NOT preserve perceived lightness. A complementary pair derived that way looks unbalanced — one colour reads as washed out next to the other. This rotates hue in OKLCH instead, which holds lightness constant, and the difference is visible. Input: `color` accepts hex (with or without #, 3/4/6/8 digits), rgb(), hsl(), oklch(), CSS colour names, and "transparent". Returns: every format including the nearest CSS colour name