RandomPalette is a focused suite of browser-based color tools built for UI designers, front-end engineers, illustrators, and makers who want fast, accessible color palettes without sign-up walls or swatch limits.
Why We Built RandomPalette
Many online palette tools lock basic controls behind accounts, cap free exports at five colors, or upload user images to remote servers. RandomPalette takes a simpler, privacy-first approach: every generator, image sampler, contrast calculator, and file exporter runs 100% locally in your web browser using standard JavaScript and HTML5 Canvas APIs.
Whether you need a quick spark of inspiration on a tight deadline or precise CSS tokens for a production design system, you can open a page and start working immediately.
How Our Color Math Works
- Perceptual OKLCH Conversion: Traditional HSL makes yellow look much brighter than blue even at identical lightness percentages. RandomPalette converts your sRGB HEX codes through linear RGB and OKLab into perceptual OKLCH (
oklch(L% C H)), giving developers Tailwind CSS v4@themetokens with predictable visual contrast. - WCAG 2.1 Contrast Ratios: Every swatch calculates relative luminance directly from linearized RGB channels and compares each color against both pure white (
#FFFFFF) and deep slate (#0F172A), surfacingAA(4.5:1) andAAA(7.0:1) indicators right below the swatch. - Color Vision Deficiency Simulation: Our linear RGB transformation matrices let you preview palettes under Protanopia, Deuteranopia, Tritanopia, and Achromatopsia so critical UI states remain distinguishable for more people.
- Zero-Upload Image Clustering: On the image extraction page, uploaded photos and pasted screenshots are drawn onto an off-screen HTML5
<canvas>, quantized client-side, and paired with draggable eyedropper pins—never transmitted over the network.
Core Tools Available Today
- Random Color Palette Generator: Shuffle 2–10 swatches with the Spacebar, lock favorites, reorder columns, inspect a live UI preview card, and export HEX, CSS, Tailwind OKLCH, SVG, or PNG.
- Color Palette Generator from Image: Extract 2–10 dominant colors from photos or screenshots locally and refine shades with draggable canvas pins.
- Color Palette Generator from Hex: Expand any single brand HEX code into analogous, complementary, split-complementary, triadic, tetradic, or monochromatic harmonies.
Have an idea for a specialized palette tool—such as Tailwind shade scales, marker sets, or game-specific palettes? Send us a note on the Contact page. You can also review our Privacy Policy and Terms of Service anytime.