Website Color Theme Extractor - Online Grab Palette from CSS
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
UD5 Toolkit
/* Add colors to generate CSS variables */
CSS custom properties, commonly called CSS variables, are entities defined with a -- prefix (e.g., --primary-color: #4f46e5;). They allow you to store values and reuse them throughout your stylesheet, making theme management, color consistency, and responsive design much easier. Unlike SCSS/LESS variables, CSS variables are dynamic and can be updated at runtime via JavaScript or media queries.
CSS Variables (--name) work natively in browsers, support runtime changes, and cascade like regular CSS properties. SCSS variables ($name) and LESS variables (@name) are preprocessor features — they're compiled at build time and don't exist in the final CSS. Use CSS variables when you need dynamic theming; use preprocessor variables for static design tokens during development. Many modern projects use both: preprocessor variables that compile to CSS custom properties.
Use this tool! Simply add your colors via the color picker, bulk paste, or choose a preset palette. Edit variable names to match your design system (e.g., --color-primary, --color-accent), select your preferred format (CSS/SCSS/LESS), and copy the generated code directly into your stylesheet. The tool automatically saves your palette locally, so you won't lose your work.
A good naming convention avoids describing the actual color (e.g., avoid --color-red) and instead describes the purpose or role of the color. Common patterns: --color-primary, --color-secondary, --color-accent, --color-surface, --color-text, --color-border. For design systems with multiple shades, use numeric scales: --color-primary-50 through --color-primary-900. This makes your palette flexible and semantic.
Absolutely! CSS variables accept any valid CSS color value: HEX (#ff6b6b), RGB (rgb(255,107,107)), HSL (hsl(0,100%,71%)), named colors, and even color functions like oklch(). This tool normalizes all inputs to HEX for consistency, but you can manually edit the output if you prefer a different format. Using HSL with CSS variables is particularly powerful for creating color variations with hsl(var(--h), var(--s), calc(var(--l) + 10%)).
When building a color palette, check contrast ratios between text and background colors. WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text. Tools like the WebAIM Contrast Checker can help. A good practice is to include both light and dark variants of each color in your palette, and to define separate --color-text-on-primary variables that ensure readable text on colored backgrounds.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Mix and save colors using a color picker. Drag to reorder. Export as CSS variables or hex list.
Pick a source color and generate a complete M3 tonal palette with light/dark schemes. Export as CSS custom properties.
Generate a range of tints and shades from a single hex color. Ideal for data visualization, UI design systems, and Tailwind custom palette creation. Local tool.
Discover beautiful color palettes for your projects. Generate random, complementary, or trendy schemes and copy hex codes. Useful for designers and developers.
Pick a base color and generate a full palette of 10 shades (50 to 900) like Tailwind CSS. Copy as hex or hsl.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Build a palette and simulate how it appears to various color deficiencies. Also generate pre-vetted accessible palettes. Local processing.
Enter a color palette and see how it looks for different types of color vision deficiency. Get warnings on conflicting colors.
Start with a base color and generate an extended palette where every shade contrasts properly with white and black. Export tokens.
Paste a stylesheet and extract every unique color (hex, rgb, hsl) into a palette. Swatches displayed. Copy as JSON.
Select emotions (calm, energetic, sad) and generate a harmonious color palette that reflects the mood.
Generate single random colors or full palettes. Displays hex, RGB, and copy on click. Great for design inspiration.
Grid of all 148 named CSS colors. Hover to see detail, click to copy the name or hex. Essential frontend reference.
Get a beautiful, hand‑picked color combination instead of purely random. Each palette has a name and copyable hex codes.
Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
Customize Bootstrap 5 variables visually. See the live preview. Download the generated SCSS or CSS file.
Design a light and dark theme by picking colors for backgrounds, text, and links. Get the CSS for both themes. Local.
Paste your CSS and get a sorted list of all custom properties defined under :root with their values. Quick audit.
See the Pantone Colors of the Year and popular palettes from past years. Get hex codes. Design inspiration.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Generate a random 5‑color palette where every adjacent pair passes WCAG AA contrast. Safe for inclusive designs.
Upload an image and instantly get a 6‑color palette with the most dominant shades. Click to copy hex codes. Canvas‑based.
Pick a color in the Display‑P3 space and get the CSS color() function. See the difference from sRGB. For modern design.
Paste hex colors, generate a contrast matrix against each other. Identify failing pairs for WCAG.
Interactively create colors in HWB space and get the CSS hwb() function. Simplifies tint/shade workflows. Live preview.
Convert RGB and RGBA color values to their HEX or HEX+alpha representation. Live preview and copy CSS color strings instantly.
Find the official name of any hex color from the extended color dictionary. Search by name to get the hex code. Handy for CSS and design language.
Use the light‑dark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.