2026-09 · Colors on the code
Store colors on a QR code — with a contrast check
api print
2026-09 · Colors on the code
Until now, colors applied to a single download only: ?fg=1F4E79 on the
image URL. Now a code can remember its colors.
curl -X PATCH https://qr3.app/v1/codes/qr_a1b2c3d4 \
-H "Authorization: Bearer qr3_sk_..." \
-H "Content-Type: application/json" \
-d '{"appearance": {"foreground_color": "#1F4E79"}}'
foreground_color and background_color (#RRGGBB, the
background also transparent). SVG and PNG draw them from now on without
any parameter; PDF and EPS follow with one of the next releases.?fg=000000 still returns the black print
file of the same code.?ecc=) and is never
stored on the code.The API checks every color pair before it stores it:
422.#F7901E on white.Nothing. Without stored colors every code returns the same bytes as before. The MCP server knows the new fields; the color picker in the dashboard follows.
If you embed an image: as long as a code had no colors, its image URL was
immutable for 24 hours. After the first coloring, an embedded URL without a
parameter of your own can therefore show the old image for up to 24 hours. A
parameter such as ?v=2 helps right away.
All details: Store colors on the code.