prefers‑color‑scheme Live Preview - Online Dark/Light
Toggle between light and dark mode for a demo page. See how to use the media query. Copy the pattern.
UD5 Toolkit
Adjust Lightness & Chroma in OKLCH color space — live preview & CSS code
| L ↓ / C → | C=0.05 | C=0.12 | C=0.20 | C=0.30 | C=0.40 |
|---|
from keyword, you can reference a base color and adjust channels like lightness, chroma, or hue — without manually calculating new color values. Example: oklch(from #6366f1 0.8 c h) takes the base color's chroma (c) and hue (h), but sets lightness to 0.8.
calc() inside relative color functions to adjust channels dynamically. For example, oklch(from var(--base) calc(l + 0.1) c h) increases lightness by 0.1. Or oklch(from var(--base) l calc(c * 0.5) h) halves the chroma, creating a desaturated variant. This is powerful for generating hover states, disabled states, or entire color scales from a single base token.
oklch(from var(--base) l c calc(h + 60)) to shift hue by 60 degrees. This creates harmonious color schemes like analogous or complementary palettes directly in CSS — no preprocessor needed.
Toggle between light and dark mode for a demo page. See how to use the media query. Copy the pattern.
Browse the OKLCH color space with sliders for lightness, chroma, and hue. See the CSS oklch() code. Modern and accessible.
Enter two hex colors and compute the CIE76, CIE94, and CIEDE2000 color difference. Understand how humans perceive color similarity.
Paste a media query and instantly check for syntax errors. See if it's correctly formed. Quick developer tool.
Drag a slider to see wind speed in knots/mph/kmh and the corresponding sea conditions and land effects.
Enter an amount and see a virtual stack of $100 bills with height comparison to everyday objects.
Design a layout where nested grids share track sizes with their parent via subgrid. Copy the complete CSS.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Limit browser gestures on an element: pan‑x, pinch‑zoom, manipulation. Draw on a canvas to test. Mobile dev helper.
Create complex linear gradients with any number of color stops, exact angles, and length units. Live preview and CSS code.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Paste a JSON object and see a dynamic, draggable tree graph representation. Excellent for debugging nested data.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Enter two tire sizes and see a side‑by‑side comparison of diameter, width, and speedometer error. Local math.
Generate a subtle noise/grain texture as a CSS background pattern. Adjust opacity and size. For that film look.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Upload two images and apply CSS blend modes (multiply, screen, overlay, etc.). See the result and copy the filter CSS. Pure frontend.
Upload an audio clip and generate an animated GIF of its waveform dancing. Shareable sound snippet. Canvas magic.
Create a pure CSS countdown timer with a flipping number effect. Adjust duration and style. No JavaScript needed for display.
Create a glowing or rotating border animation around an element. Copy the CSS keyframes. Pure CSS magic.
Create a custom HTML/CSS progress bar with percentage, colors, and animation. Copy the code. Modern UI element.
Design a realistic neon sign text with multiple layers of glow. Copy the CSS and HTML. Perfect for headers.
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
Recreate the target CSS linear gradient by adjusting stops and colors. A unique game for front‑end developers to master gradients.
Browse and search all Font Awesome 6 icons with preview, class name, and unicode. Copy the HTML snippet. Perfect for web developers.
Visualize audio in real time from your microphone or uploaded audio file. See the waveform dance. Uses Web Audio API locally.
Create text with a gradient fill using CSS background-clip. Configure colors and direction. Copy the code. Works in modern browsers.
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.