Upload any image and HexPickr instantly generates Tailwind theme.extend.colors, CSS variables, JSON exports, and OKLCH/OKLAB formats. Perfect colors, zero guesswork.
No sign-up required · Free forever · Private & Secure
export default {
theme: {
extend: {
colors: {
primary: "#BEA883",
secondary: "#BCC7CA",
accent: "#916E58",
brand: {
light: "#E2D4B7",
DEFAULT: "#BEA883",
dark: "#8F765A",
}
},
},
},
};Extract accurate palettes from real images instead of guessing HEX values.
Drop the generated object straight into your Tailwind theme config.
Get OKLCH/OKLAB and CSS variables alongside classic HEX/RGB/HSL.
HexPickr builds a complete Tailwind color object directly from your image. Paste it into tailwind.config.js and start using utility classes like bg-primary, text-accent, and design-system tokens immediately.
module.exports = {
theme: {
extend: {
colors: {
"ocean": "#0ea5e9",
"sand": "#f59e0b",
"coral": "#f43f5e",
"neutral": {
100: "#f5f5f5",
900: "#171717",
}
},
},
},
};Drop an image, tweak your palette size, and copy the Tailwind config or CSS variables in one click.
Drop an image. Get Tailwind colors instantly.

Generated by HexPickr — hexpickr.com
HexPickr exports extracted image colors as ready-to-use CSS variables, Tailwind color configs, and JSON for direct use in modern frontend projects. Includes OKLCH/OKLAB for modern color workflows
:root{
/* OKLCH */
}theme: { extend: { colors: { } } }{"colors": {
}
}
:root{
}theme: { extend: { colors: { } } }Extract up to 24 colors tuned for real interfaces, not just pretty gradients.
Generate a colors object that matches Tailwind’s conventions and naming structure.
Get OKLCH/OKLAB, CSS variables, and JSON to sync across web, mobile, and design tools.
Built for speed — no clutter, no noise, no unnecessary steps to get your code.
Drop a client image, hero shot, or brand asset directly into the browser.
Adjust palette size and review HEX, RGB, HSL, and modern OKLCH values.
Copy your theme.extend.colors object or CSS variables instantly.
Great design often starts with a single image of inspiration. Whether it's the subtle blue of an ocean sunrise or the vibrant branding of a successful startup, capturing those colors accurately is the first step toward building a beautiful user interface. Our Tailwind Color Extractor is engineered to bridge the gap between visual inspiration and technical implementation, allowing you to transform any image into a structured design system in seconds.
For modern developers, moving fast is non-negotiable. Manually guessing color codes or using slow eyedropper tools integrated into design software creates friction. HexPickr eliminates this bottleneck by using advanced clustering algorithms to identify the most dominant and complementary colors within your image. The result is a palette that isn't just a collection of HEX codes, but a coherent set of design tokens tailored for the Tailwind CSS ecosystem.
Tailwind CSS has revolutionized web development through its utility-first approach, yet the configuration stage remains a hurdle. Our tool automates the creation of your tailwind.config.js color object. By providing "developer-ready" code snippets, we allow you to bypass the manual labor and jump straight into coding your UI with classes like bg-primary or text-accent.
Consistency is the hallmark of professional design. By deriving your design tokens directly from your hero imagery or brand assets, you ensure a level of visual harmony that "boxed" palettes simply cannot provide. This creates a cohesive user experience where the interface feels like a natural extension of the visual content, rather than a separate, disjointed layer.
We believe that modern web development requires modern tools. That's why HexPickr offers more than just traditional color formats. While we provide standard HEX, RGB, and HSL exports, we also support modern, perceptually uniform color spaces like OKLCH and OKLAB.
:root variables to keep your stylesheets clean and maintainable."The goal of HexPickr is to empower developers to create professional-grade color systems without the overhead of traditional design software."
Implementing your new palette is simple. Copy the generated JavaScript object from the export panel and navigate to your tailwind.config.js file. Locate the theme.extend.colors section and paste the code there. This ensures that you can use the extracted colors—labeled color1 through color24—with standard utility classes like bg-color1, border-color2, or text-color3. This method is preferred as it preserves Tailwind's default color palette while adding your custom brand shades.
HexPickr provides maximum flexibility by allowing you to extract between 5 and 24 dominant colors from any image. Use the interactive slider to find the perfect balance for your design system. A smaller palette is ideal for focused brand identities, while a larger selection (up to 24 colors) is perfect for building comprehensive design systems, complex data visualizations, or detailed UI themes that require multiple accent shades.
Yes, we stay ahead of tech trends. The generated design tokens follow standard object structures compatible with Tailwind v3 and are fully forward-compatible with the upcoming Tailwind v4. Whether you use the extend object or the new CSS-variable-first approach in modern Tailwind versions, our export options (including raw CSS variables) ensure your workflow remains future-proof and scalable across different project versions.
Modern web design is moving toward perceptually uniform color spaces. Unlike HEX or RGB, OKLCH and OKLAB make it easier to maintain consistent perceived brightness across different hues. This is crucial for accessibility. By providing these modern tokens alongside standard HEX/RGB/HSL, we empower developers to build sophisticated, accessible, and vibrant user interfaces that look great on any display, from standard monitors to high-end mobile screens.
Absolutely. While our tool provides generic names like color1 for speed, you are encouraged to rename these keys in your local tailwind.config files to match your design system's naming convention. Changing color1 to 'brand-primary' or color2 to 'accent-gold' makes your codebase more readable and maintainable for your entire team. Our output is designed as a starting point for your production-ready design system.
Yes. Our high-performance extraction engine supports all major web image formats, including JPEG, PNG, WebP, AVIF, and even SVG. Whether you're uploading a client's logo, a high-resolution mood board image, or a simple UI screenshot, HexPickr processes the pixels instantly in your browser to deliver the most accurate color representation possible for your development needs.
We prioritize your data security. The color extraction process happens locally within your browser using client-side scripts. We do not store, publish, or share your uploaded images on our servers for this specific tool. This makes HexPickr a safe choice for professional developers and agencies working with sensitive client assets or unreleased branding projects where privacy is a non-negotiable requirement.
Yes, the core extraction features and all export formats (Tailwind config, CSS variables, JSON) are available for free. For power users, we offer a Pro plan that provides even higher usage limits, the ability to save an unlimited palette history, and advanced batch processing features. This allows individual developers to start for free while providing the tools necessary for large-scale professional design work.
Yes! By exporting your palette as a JSON object, you can easily sync your colors with design tokens in tools like Figma, Sketch, or Adobe XD. This creates a single source of truth between your design team and development team, reducing friction and ensuring that the final coded product perfectly matches the intended visual design discovered through the color extraction process.
While we extract the dominant colors from your image, we provide HSL and OKLCH values which are the best tools for adjusting lightness to meet WCAG contrast guidelines. You can use our extracted values as a base and slightly tweak the 'L' (Lightness) value to ensure your text is readable. This workflow ensures your brand colors aren't just beautiful, but also inclusive and accessible to all users.
Access unlimited extractions, history, and batch processing with our full toolset.
Try the full HexPickr experience →