color-lab

Reviewed at commit 39335b2

Convert hex colors and measure contrast against a background.

Made by
Yash Thakker
What we checked

Adds a /color-lab command that opens a pane where you enter two six-digit hex colors and see their RGB values and the contrast ratio, with a note on whether it meets the 4.5:1 text threshold. The result can be copied. It reads no prompts or files, runs no programs and makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Registers the slash command on session.start, handles command.run for color-lab and renders a Pane on ui.render. Uses $.command.register, $.ui.open, $.ui.invalidate, $.ui.resolve, $.ui.copy and $.ui.toast. Colors must match #RRGGBB; contrast follows the WCAG relative-luminance formula, and invalid input is reported in the pane. State is held in memory only. No network, process, file or model calls. No npm dependencies. Despite the description, it converts hex to RGB only, not to other color formats.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of color-lab
Made this mod? Add a badge to your README

modsforClaude badge for color-lab

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/color-lab.svg)](https://modsforclaude.com/mods/color-lab/)

← All mods