Hash → 12 brand-family hues. Stable per-agent.
Deterministic color assignment for any agent / human principal. Hashes a stable identifier (agent ID, email) into one of 12 brand-family hues so the same person reads the same color across every surface forever.
import { principalColor } from "@/components/ui/principal-color";
const color = principalColor({ id: "agent_abc", name: "Scout" });
// → "#0A84FF"components/ui/ folder. You own the code.