LEDGERMACHINE

LM-COLOR-001

Find near-duplicate colors in CSS

A rare color sits very close to a more established color in perceptual color space.

What Ledgermachine reports

Colors may look indistinguishable

Decision, not automatic repair

Keep both only if the subtle distinction communicates a state, layer, brand role, or accessibility requirement.

Source example

What this finding can look like

The exact candidate comes from the project’s own tokens and repeated values. This example shows the shape of the issue, not a universal replacement.

Flagged source
.title { color: #1a1a1a; }
.card { color: #1b1b1b; }
One possible resolution
:root { --ink: #1a1a1a; }
.title, .card { color: var(--ink); }

Resolution workflow

Fix the source without erasing intent

  1. Inspect

    Review every reported occurrence and the established candidates Ledgermachine found in the same project.

  2. Decide

    Keep both only if the subtle distinction communicates a state, layer, brand role, or accessibility requirement.

  3. Verify

    Make the change in your editor or coding agent, then rescan. Ledgermachine stays read-only and records whether the finding cleared.

Run it on your source

See the evidence behind this rule.

Open a folder locally, inspect the exact occurrences, and decide whether to repair or preserve the difference.

Open Ledgermachine