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.
Upload a gradient or enter a palette and simulate how it appears with different types of color vision deficiency. Ensure inclusive data visualization.
Enter foreground and background colors to instantly see the contrast ratio and pass/fail for AA and AAA. Simple and fast.
Interactively apply CSS filter functions (blur, brightness, contrast, etc.) to an image and copy the resulting filter property. No coding required.
Enter foreground and background colors and see a matrix of how each pair works for normal, protanopia, deuteranopia, and tritanopia.
Generate the <meta name='color‑scheme'> tag and CSS property to enable native dark/light rendering. Quick copy.
Experiment with the CSS color-mix() function. Pick two colors and mix them in different color spaces (srgb, oklch). Copy the CSS.
Upload any picture and instantly get a 5‑color palette. Useful for UI design themes. Canvas‑based extraction.
Increase or decrease the color saturation of your photo with a slider. Preview instantly. Download the edited image. Canvas‑based.
Add a dramatic night‑vision green tint with grain and scanlines to any image. Fun horror/military aesthetic.
Convert hex or RGB to CIELAB L*a*b* values. Understand perceptual lightness and color opponents. Local math.
Given an RGB value, pick the matching color square. Multiple difficulty levels. Improve your color perception. Fun for designers.
Build a CSS media query by selecting feature, operator, and value. Copy the exact syntax for your stylesheet.
An interactive color wheel that teaches primary, secondary, tertiary colors, and harmonies. Pick and mix like a pro.
Write a compute shader in WGSL and run it in the browser. See the output on a canvas. Learn WebGPU. Real‑time compilation.
Convert RGB and hex colors to CIELAB L*a*b* values. Understand perceptual lightness and chromaticity. All local math.
Select two paint colors and see approximate mixed result. Visual blending for artists.
Enter a website URL and apply a protanopia/deuteranopia/tritanopia filter. Test full page accessibility.
Enter an image URL and extract its dominant color palette. No download needed. Fast visual analysis.
Upload a photo and remap its tones to any gradient. Apply stunning color grading. Download result.
Enter the URL of any online image and extract its dominant colors or pick colors with a magnifier. No upload, cross‑origin friendly.
A dedicated color picker with common retro gaming palettes (NES, Gameboy). Pick and copy hex codes. For pixel art creators.
Upload an image and extract its dominant colors or full color palette. Download as a CSS snippet or color swatch. Entirely client-side, your images stay private.
Apply a soft watercolor painting effect to your photo. Adjust brush size and color intensity. Download the result. Local canvas.
Drag a virtual ruler across your screen to measure pixel distances. Horizontal and vertical guides. Useful for UI designers checking alignment.
Extract a color palette from an image using CIELAB k‑means quantization. Results are perceptually more accurate than RGB methods.
Keep one selected color and turn the rest of the image to grayscale. Eye‑catching selective color effect. Pure canvas.