Choosing cohesive brand colors and accessible UI theme tokens is fundamental to great digital design. OmniTool Hub generates mathematically balanced color palettes based on classic optical harmony formulas, while calculating real-time WCAG AA and AAA contrast compliance scores for accessible readability.
Tool Configurations & Operational Modes
The Harmonic Color Palette Generator & WCAG Contrast engine provides specialized operating modes designed for maximum precision, low-latency execution, and granular data control:
Process raw strings, streams, or files directly in local memory. Real-time validation syntax highlighting prevents execution mistakes before processing.
Export processed results to formatted text, binary blobs, downloadable files, or clean one-click clipboard copies with zero metadata leaks.
Execute bulk conversions with hardware acceleration. All operations remain strictly inside browser memory with zero network dependencies.
Key Property Parameters & Specifications
| Harmony Rule | Degree Offset on Wheel | Psychological Mood / Usage |
|---|---|---|
| Complementary | Opposite angle (+180°) | High energy, vibrant contrast; great for call-to-action buttons |
| Analogous | Adjacent angles (±30°) | Harmonious, serene, and calming; common in natural UI themes |
| Triadic | Three equidistant angles (0°, 120°, 240°) | Balanced, rich palette; offers diverse UI status colors |
| Split-Complementary | Base + two adjacent opposites (0°, 150°, 210°) | Strong contrast with less tension than pure complementary |
Implementation Guide & Technical Reference
WCAG 2.1 Luminance Contrast Calculation Formula
function getLuminance(r, g, b) {
const [rs, gs, bs] = [r, g, b].map(c => {
c /= 255;
return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
});
return 0.2126 * rs + 0.7152 * gs + 0.0722 * bs;
}
const ratio = (Math.max(l1, l2) + 0.05) / (Math.min(l1, l2) + 0.05);
Standard W3C relative luminance ratio.
Step-by-Step Usage Guide
- Open the live tool viewport above or launch fullscreen in the main workspace.
- Paste your input data or drag and drop your source file into the active workspace.
- Adjust execution settings, formatting parameters, or encoding options to your specifications.
- Copy the generated output to your clipboard or click download to save the result locally.
Frequently Asked Questions (FAQ)
What is a WCAG AA compliant contrast ratio?
WCAG 2.1 Level AA requires a contrast ratio of at least 4.5:1 for regular text and at least 3:1 for large text (18pt+ or 14pt bold).
Can I lock individual colors while randomizing others?
Yes. Click the padlock icon on any color swatch to freeze it while generating complementary matching shades.
What formats can I export my palette in?
You can export in HEX, RGB, HSL, CSS Variables (`--color-primary`), Tailwind config, or PNG swatch image.
Does this tool work completely offline?
Yes. All HSL/RGB math and contrast calculations execute 100% locally in your browser.