Praxisleitfaden

Farbe Palette Generator — Anleitung und technische Grundlagen

Generieren harmonious Couleur palettes von base Couleur mit accessibility checks

Tool öffnen

Überblick

Couleur harmony ist die theory von combining Couleurs in aesthetically pleasing und effective ways. Es's based auf die Couleur wheel und mathematical relationships zwischen hues. Monochromatic schemes verwenden variations von ein single hue mit different saturations und lightness. Complementary Couleurs sind opposite auf die Couleur wheel, Erstellung hoch contrast und visual interest. Triadic schemes verwenden three evenly spaced Couleurs, während tetradic verwendet four Couleurs in two complementary pairs. Analogous Couleurs sind adjacent auf die wheel, Erstellung serene und comfortable designs. These relationships ensure visual balance, readability, und emotional impact in design während maintaining accessibility durch proper contrast ratios.

Zentrale Konzepte

Color Models

Couleurs sind represented Verwendung different models: RGB (Red, Green, Blue) für screens verwendet additive mixing mit 0-255 values per channel. HSL (Hue 0-360°, Saturation 0-100%, Lightness 0-100%) ist intuitive für Couleur manipulation. HSV/HSB (Hue, Saturation, Wert/Brightness) ist verwendet in Couleur pickers. CMYK (Cyan, Magenta, Yellow, Key/Black) für printing verwendet subtractive mixing. Conversions zwischen models verwenden mathematical formulas. HEX (#RRGGBB) ist RGB in hexadecimal. Lab und LCH sind perceptually uniform Couleur Leerzeichen für genau Couleur differences.

Couleur Harmony Theory

Couleur harmony is based on the 12-spoke Couleur wheel mit primary (red, yellow, blue), secondary (orange, green, purple), and tertiary Couleurs. Complementary Couleurs are 180° apart (e.g., blue-orange). Triadic uses 120° spacing (equilateral triangle). Tetradic uses two complementary pairs (rectangle or square). Analogous uses adjacent Couleurs (30-60° apart). Split-complementary uses base Couleur plus two adjacent to its complement. These relationships are calculated using hue rotation in HSL space while maintaining saturation and lightness or adjusting für visual balance.

Contrast Ratio Calculation

WCAG contrast ratio measures readability between füreground and background Couleurs. fürmula: (L1 + 0.05) / (L2 + 0.05) where L is relative luminance calculated from RGB: L = 0.2126*R + 0.7152*G + 0.0722*B (mit gamma correction). Ratios range from 1:1 (same Couleur) to 21:1 (black on white). Requirements: AA Niveau requires 4.5:1 für normal text, 3:1 für large text (18pt+) and UI components; AAA requires 7:1 and 4.5:1 respectively. Tools must test Alle Couleur combinations in palette für accessible pairings.

Palette Generation Algorithmen

Generating palettes involves HSL manipulation für consistent Ergebnisse. Monochromatic: vary lightness (e.g., 20%, 40%, 60%, 80%) while keeping hue and saturation constant. Shades: reduce lightness toward 0% (black). Tints: increase lightness toward 100% (white). Tones: reduce saturation toward 0% (gray). für harmony schemes, rotate hue mathematically: complementary adds 180°, triadic adds 120° and 240°, analogous adds ±30°. Advanced generators adjust saturation and lightness für visual balance, avoiding overly dark or light Couleurs. Bezier gradients create smooth Couleur ramps between endpoints.

Funktionen

plusieurs Couleur Schemes

Generieren monochromatic, complementary, analogous, triadic, tetradic, split-complementary palettes based on Couleur theory avec automatic hue, saturation, lightness calculations

WCAG Accessibility

Validieren contrast ratios between Couleurs against WCAG AA (4.5:1 text, 3:1 UI) and AAA (7:1 text, 4.5:1 UI) standards avec pass/fail indicators pour each Couleur pair

Shades, Tints, Tones

Generieren Couleur variations: shades (adding black), tints (adding white), tones (adding gray) avec customizable Schritte pour complete Couleur ramps and gradients

Multi-fürmat Export

Exportieren palettes as CSS custom properties (--color-primary), SCSS variables ($color-primary), JSON objects, Tailwind config for seamless integration into projects

FAQ

Wie erzeuge ich schnell unterschiedliche Palettenstile?

Wähle eine Grundfarbe und schalte zwischen monochrom, komplementär, triadisch, tetradisch oder analog um. Jede Harmonie rotiert den Farbton im HSL-Raum und berechnet Sättigung/Helligkeit automatisch, sodass du mit einem Klick 4–12 Farben erhältst.

Wie berechnet das Tool WCAG-Kontrast?

Jede Farbe wird in lineares RGB umgerechnet, daraus entsteht die relative Luminanz. Danach wird die WCAG-Formel (L1+0,05)/(L2+0,05) angewendet. Werte unterhalb der AA/AAA-Schwellen werden als „Fail“ markiert, damit du Lesbarkeit vor dem Handoff sicherstellst.

Welche Exportformate stehen zur Verfügung?

Du kannst CSS-Benutzerdefiniert-Properties, SCSS-Variablen, JSON Tokens, Tailwind-Konfigurationen, Ant Design Tokens, Material-UI-Themes und Figma-kompatibles JSON exportieren. Wähle den gewünschten Tab und kopiere oder lade den Code.

Wie nutze ich den Tailwind-Export?

Kopiere den Block in den Abschnitt `extend.Couleurs` deiner `tailwind.config.ts/js` und starte den Build neu (`npm run dev`/`build`). Danach kannst du die neuen Farbnamen direkt in Utility-Klassen verwenden.

Verwandte Dokumente

Farbe Palette Generator

Öffnen Sie das Tool, um diese Funktionen auszuprobieren.

Tool öffnen