Material Design Color Lookup

Find the closest Material Design 3 color token to any hex value

Ad placeholder (leaderboard)

Designers and developers constantly need to map an arbitrary color — from a logo, a screenshot, or a stakeholder’s PDF — onto the nearest token in a Material Design palette. This tool does that perceptually, so the suggested token is the one that genuinely looks closest, not merely the one with similar hex digits.

How it works

Color difference is measured in CIE Lab space rather than raw RGB, because Lab approximates human vision. The steps are:

1. Parse the hex into 8-bit R, G, B
2. Linearize sRGB (gamma decode)
3. Convert linear RGB to CIE XYZ (D65 white point)
4. Convert XYZ to Lab (L*, a*, b*)
5. For each palette token, compute ΔE = sqrt(dL² + da² + db²)
6. Sort tokens by ΔE; the smallest is the closest match

The reported ΔE lets you judge confidence: a small value means the token is a near-perfect substitute, while a large value warns that no palette color is really close.

Example and tips

Pasting #4287f5 returns Blue 500 (#2196F3) as the nearest token with a small ΔE, confirming it is essentially a Material blue. When ΔE is large for every result, your color sits between palette families — consider whether a custom token is warranted rather than forcing the nearest match. Three-digit hex such as #f80 is automatically expanded to #ff8800 before comparison.

Ad placeholder (rectangle)