color() Display‑P3 Generator - Online Wide Gamut CSS
Pick a color in the Display‑P3 space and get the CSS color() function. See the difference from sRGB. For modern design.
UD5 Toolkit
To style a range slider, first reset the default appearance with -webkit-appearance: none and appearance: none. Then use browser-specific pseudo-elements: ::-webkit-slider-runnable-track and ::-webkit-slider-thumb for Chrome/Safari, and ::-moz-range-track, ::-moz-range-thumb, ::-moz-range-progress for Firefox. This tool generates all the necessary cross-browser CSS automatically.
WebKit (Chrome, Safari, Edge): ::-webkit-slider-runnable-track styles the track, ::-webkit-slider-thumb styles the draggable thumb.
Firefox (Gecko): ::-moz-range-track for the track, ::-moz-range-thumb for the thumb, and ::-moz-range-progress for the filled portion of the track.
IE/ Legacy Edge: ::-ms-track, ::-ms-thumb, ::-ms-fill-lower, ::-ms-fill-upper (legacy support).
For WebKit browsers, use a linear-gradient as the track's background property. Calculate the fill percentage based on the slider's current value. For Firefox, use the ::-moz-range-progress pseudo-element to set the filled portion color and ::-moz-range-track for the unfilled background. Our generator creates both styles automatically and includes a dynamic fill indicator.
Increase the width and height of ::-webkit-slider-thumb / ::-moz-range-thumb. For WebKit, you also need to adjust margin-top to keep the thumb vertically centered on the track (formula: (trackHeight - thumbSize) / 2). Our Thumb Size control handles this alignment automatically.
Yes! Use the :hover and :active pseudo-classes on the range input combined with the thumb pseudo-elements: input[type="range"]::-webkit-slider-thumb:hover and input[type="range"]::-webkit-slider-thumb:active. You can change background colors, box shadows, and even add transform: scale() for a subtle grow/shrink effect. This tool includes dedicated controls for hover and active states.
The CSS generated by this tool covers WebKit-based browsers (Chrome, Safari, Opera, Edge 79+) and Firefox (Gecko). Combined, these represent over 95% of global browser usage. The code uses standard CSS properties and includes vendor-prefixed pseudo-elements for maximum compatibility. For production use, always test across your target browsers.
In WebKit browsers, the thumb doesn't automatically center when you change the track height. You must set margin-top on ::-webkit-slider-thumb equal to (trackHeight - thumbHeight) / 2. Our generator calculates this automatically based on your Track Height and Thumb Size values, ensuring proper alignment.
Yes, CSS custom properties (variables) work well with range slider pseudo-elements. You can define variables for colors, sizes, and shadows, then reuse them across your stylesheet. This makes it easy to theme multiple sliders or implement dark mode. The generated CSS uses hardcoded values for portability, but you can easily adapt it to use variables.
Pick a color in the Display‑P3 space and get the CSS color() function. See the difference from sRGB. For modern design.
Dynamically blend two colors using the CSS color‑mix() function in different color spaces. Copy the exact CSS snippet. No JS required.
Create a pure HTML/CSS accordion using <details> elements. Add custom styling and get the clean code. No JavaScript required.
Pick a base color and generate a full palette of 10 shades (50 to 900) like Tailwind CSS. Copy as hex or hsl.
Design a light and dark theme by picking colors for backgrounds, text, and links. Get the CSS for both themes. Local.
Paste a list of hex colors and generate CSS custom properties for them. Create your design token file instantly.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Set a custom accent color for checkboxes, radios, range, and progress. See the browser’s rendering. Copy the CSS.
Grid of all 148 named CSS colors. Hover to see detail, click to copy the name or hex. Essential frontend reference.
Use <input type='color'> and see its change events and value in hex. Understand the native color picker. Quick demo.
Match gap size around doors/windows to the correct type of weather stripping (foam, V-strip, door sweep). Save energy.
See the Pantone Colors of the Year and popular palettes from past years. Get hex codes. Design inspiration.
Add grid items beyond defined tracks and see how implicit rows/columns expand. Set sizes interactively. Master the grid.
Test the upcoming contrast‑color() CSS function. Get white or black automatically for a given background. See it live.
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.
Paste a stylesheet and extract every unique color (hex, rgb, hsl) into a palette. Swatches displayed. Copy as JSON.
Generate single random colors or full palettes. Displays hex, RGB, and copy on click. Great for design inspiration.
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.
Type a CSS color name like 'tomato' or 'mediumseagreen' and instantly get its hex code and preview. Complete named colors list.
Type a word like 'sunset' or 'calm' and generate a color palette inspired by that mood. Simple associative mapping.
Classic HSV color wheel with sliders. See hex, RGB, and HSL equivalents. Intuitive for artists. No server interaction.
Experiment with CSS container queries in a live editor. Resize the container and see styles change based on its width/height. Learn modern responsive.
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
Test if your display supports HDR colors by rendering a gradient in Rec.2020 space. See what you're missing. Canvas based.
Convert RGB and RGBA color values to their HEX or HEX+alpha representation. Live preview and copy CSS color strings instantly.
Enter a palette of colors and see a grid showing whether each foreground/background pair passes AA or AAA contrast. Must for designers.
Use the light‑dark() CSS function to change colors based on color scheme. Build a simple dark mode toggle with one property.
Browse every Tailwind default color palette side by side. Click any shade to copy the hex or class. For rapid design.
Preview any website inside emulated device viewports (iPhone, iPad, various resolutions). No screenshot, live interaction in an iframe. Local tool.