CSS Color Function Explorer - Online Write Modern Colors
Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
UD5 Toolkit
Instantly calculate and compare CSS selector specificity. See exact (0,0,1,0) scores and understand which rule wins.
:not() and :is() contribute the specificity of their most specific argument. This tool gives them a single class‑level weight for simplicity — good enough for most everyday selectors. :where() adds zero specificity.!important overrides normal specificity. Inline styles have the highest specificity (a=1,0,0,0) unless !important is used. This calculator focuses on selector-based specificity only..class, #id) contains independent selectors. Each has its own specificity — they aren’t combined. Enter one selector chain at a time to get a meaningful result.Write modern CSS color functions like oklch(), lab(), hwb() and see the rendered color with fallback. Copy compatible code.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Style an `<input type='range'>` with custom track and thumb. Cross‑browser CSS. Preview and copy the code.
Use the light‑dark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.
Pick a color in the Display‑P3 space and get the CSS color() function. See the difference from sRGB. For modern design.
Set a custom accent color for checkboxes, radios, range, and progress. See the browser’s rendering. Copy the CSS.
Paste a stylesheet and extract every unique color (hex, rgb, hsl) into a palette. Swatches displayed. Copy as JSON.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Interactively create colors in HWB space and get the CSS hwb() function. Simplifies tint/shade workflows. Live preview.
Design a light and dark theme by picking colors for backgrounds, text, and links. Get the CSS for both themes. Local.
Grid of all 148 named CSS colors. Hover to see detail, click to copy the name or hex. Essential frontend reference.
Style the <progress> and <meter> elements with cross‑browser CSS. Adjust colors and sizes. Copy the final styles.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Test the upcoming contrast‑color() CSS function. Get white or black automatically for a given background. See it live.
Paste your CSS and get a sorted list of all custom properties defined under :root with their values. Quick audit.
Paste a list of hex colors and generate CSS custom properties for them. Create your design token file instantly.
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.
Use <input type='color'> and see its change events and value in hex. Understand the native color picker. Quick demo.
Pick colors using the HWB (Hue‑Whiteness‑Blackness) model. Get the CSS hwb() function code. Simpler than HSL for some.
Use the browser's native eyedropper tool to pick any color from the screen. Shows zoomed preview. Quick and easy.
Design custom radio buttons and checkboxes using pure CSS. Choose sizes, colors, and animation. Copy the code.
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.
Enter color in any CSS format and see all other representations. Live preview. Swatch history.
Add grid items beyond defined tracks and see how implicit rows/columns expand. Set sizes interactively. Master the grid.
Paste hex colors, generate a contrast matrix against each other. Identify failing pairs for WCAG.
Choose fabric type and weight to see the ideal needle size and point style. Prevent skipped stitches and snags.
Build the same layout with both Grid and Flexbox side by side. See the code differences and visual results.
Experiment with CSS container queries. Resize a container and see the styles change according to its size, not the viewport. Learn the new spec.
Paste body text and test different font/background combos. See an actual passage rendered, not just a ratio. True feel for legibility.