Browse the most popular flat UI color palettes and copy the code you need. Search a color by name, filter by palette, or enter any HEX code to find the closest flat color. For each color the tool shows the HEX, RGB and HSL values, a CSS variable and a Sass variable, and the text color that reads best on top. Everything runs in your browser, and nothing you enter is sent to a server.
Flat design uses solid colors, clean shapes and no gradients or shadows. A good flat palette does most of the work for you.
How to use the flat UI colors tool
- Search by name: type a color name such as
Emeraldto filter the list. Press Enter to open the first result. - Find the closest color: type a HEX code and press Enter, or click the swatch to pick a color, and the tool picks the nearest flat color.
- Choose a palette: show all colors, or only the classic Flat UI or the American palette.
- Sort the list: order the colors by palette order, by name, or by hue to group similar colors together.
- Copy a value: click any row in the results to copy it, including the CSS and Sass variables.
- Copy a palette: press Copy palette to copy every color of the selected color's palette as CSS custom properties.
- Pick from your screen: in browsers that support it, such as Chrome and Edge, press Pick from screen and click any pixel.
The palettes in this tool
The tool includes two popular sets of flat colors, each with 20 colors.
| Palette | Colors | What it looks like |
|---|---|---|
| Flat UI (classic) | 20 | Rich, solid colors in light and dark pairs, such as Emerald and Nephritis |
| American palette | 20 | Brighter, softer colors with a pop feel, such as Mint Leaf and Electron Blue |
How the closest color is found
When you enter a HEX code, the tool compares it with all 40 colors in the CIE Lab color space, which is built to match how people see differences between colors. The color with the smallest distance wins. The distance is shown as a Delta E value, where 0 is an exact match and a value under about 2.3 is hard to notice.
What this tool does and does not do
The tool lists two flat color palettes, with one HEX value per color. It does not include every flat palette on the web, and color names can differ between sites. The CSS and Sass variable names are suggestions based on each color name, not official names. Flat UI is a style, not a standard, and these palettes are not affiliated with this site. Screens also differ, so a color can look slightly different on another display.
Tips for using flat colors
- Pick one main color: flat design works best with one strong color, a few neutrals and one accent.
- Use the light and dark pairs: in the classic palette, use the lighter color for the default state and its darker partner for hover and pressed states.
- Use the grays for structure: Clouds, Silver, Concrete, Asbestos and Wet Asphalt work well for backgrounds, borders and text.
- Check contrast: many flat colors fail WCAG as text on white. Use the best text color shown for each color and check the pair before you use it.
- Keep it flat: use solid fills and avoid gradients and heavy shadows, so the colors stay clean.
Find the color, copy the code and keep going. A solid palette gives you a consistent look before you write any custom colors.
Common flat color problems
- The HEX field will not accept my code: use three or six letters and numbers from 0 to 9 and A to F, such as #3AF or #33AAFF.
- Nothing happens when I type a HEX code: the list filters as you type. Press Enter to jump to the closest flat color.
- The closest color does not look right: the palettes have 40 colors, so a color between two names gets the nearer one. Check the other colors in the list.
- A color name does not match another site: sites sometimes use different names for the same HEX code. The HEX code is the exact value.
- Pick from screen is missing: the screen picker needs a browser that supports it, such as a current Chrome or Edge. Use the swatch or type the code instead.
- My color disappeared: the last color and filters are saved in your browser. Clearing site data or using a private window removes them.
Frequently asked questions
Is this flat UI colors tool free?
Yes. There is no sign-up and no limit on how many colors you look up.
What are flat UI colors?
They are solid, bright colors used in flat design, a style with clean shapes and no gradients or heavy shadows. The classic Flat UI palette is one of the best known.
Which palettes are included?
The classic Flat UI palette and the American palette, each with 20 colors.
Can I find the flat color closest to my HEX code?
Yes. Type a HEX code and press Enter, or pick a color with the swatch, and the tool selects the nearest flat color and shows how far apart the two are.
What is Delta E?
Delta E is a number for how different two colors look. A value of 0 means the colors are identical, and a value under about 2.3 is hard to notice.
What does Copy palette do?
It copies every color of the selected color's palette as CSS custom properties, such as --flat-turquoise: #1abc9c;, ready to paste into your stylesheet.
Are my colors sent anywhere?
No. All calculations run in your browser, and your last color and filters are saved only on this device.