🍋
Menu
Generator

Color Palette Generator

Automatic Color Palette Generator

A tool that creates harmonious color schemes using color theory rules like complementary, analogous, or triadic relationships.

Chi tiết kỹ thuật

Color Palette Generator uses algorithmic approaches to produce content deterministically or pseudo-randomly based on input parameters. In-browser generation uses the JavaScript runtime's PRNG for non-security tasks and the Web Crypto API (crypto.getRandomValues, crypto.subtle) for cryptographic applications. Generated output quality depends on input entropy and the algorithm's distribution properties. Client-side generation ensures no generated data leaves the user's device, which is critical for password and key generation.

Ví dụ

```javascript
// Generate harmonious color palette
function generatePalette(baseHue, count = 5) {
  return Array.from({ length: count }, (_, i) => {
    const hue = (baseHue + i * (360 / count)) % 360;
    return `hsl(${hue}, 70%, 55%)`;
  });
}
generatePalette(220, 5);
// → ['hsl(220,...)', 'hsl(292,...)', 'hsl(4,...)', ...]
```

Công cụ liên quan

Thuật ngữ liên quan