Colour Palette Generator Widget
Add a colour palette generator to your design or art page. Readers choose one base colour and get six colour-wheel harmonies at once; each swatch copies its hex code, and the whole set copies as CSS variables.
Live preview
Exactly what your visitors will seeUnder the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/color-palette-generator" title="Colour Palette Generator by A2Z Tools" width="100%" height="780" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="color-palette-generator" data-height="780"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
The base colour is converted to HSL and its hue is rotated around the colour wheel for each harmony, keeping saturation and lightness, then converted back to hex. The monochromatic row keeps hue and saturation and steps lightness from 15% to 85%. HSL is a simple geometric model rather than a perceptual one, so a rotated yellow can look much lighter than a blue of the same HSL lightness; the note under the palette reminds readers to check contrast before pairing colours for text.
Method
- Complementary: h + 180
- Analogous: h - 30, h, h + 30
- Triadic: h, h + 120, h + 240; split-complementary: h, h + 150, h + 210
- Tetradic (square): h, h + 90, h + 180, h + 270
- Monochromatic: same h and s, lightness 15%, 29%, 43%, 57%, 71%, 85%
- HSL <-> RGB per CSS Color 4; hue taken mod 360; hex rounded to 8-bit channels
Limitations
- Harmonies are geometric rotations on the screen (RGB) wheel. They are conventions, not rules, and differ from the painters' RYB wheel.
- HSL is not perceptually uniform: equal lightness numbers do not look equally light, so a palette is not automatically accessible.
- Greys and near-greys have no meaningful hue, so their harmonies are the same grey.
- The generator does not check text contrast between swatches; use the contrast checker for any pair you set text in.
Where publishers use it
- Colour-theory lessons in art and design courses
- Branding blogs that show options built around a logo colour
- Website theme documentation offering accent-colour ideas
- Craft, interior and fashion sites suggesting matching colours
Questions
Which colour wheel is used?
The RGB/HSL wheel used on screens, where red's complement is cyan. The traditional painters' RYB wheel (red opposite green) gives different pairs.
Why do some generated colours look brighter than others?
HSL keeps the same numeric lightness, but the eye sees yellows and greens as brighter than blues and purples at that value. Adjust by eye, and check text contrast.
How do I copy the colours?
Click any swatch to copy its hex code, or use Copy all as CSS variables to get a :root block with every palette.
Can I set the starting colour?
Yes, with v_color=2a9d8f in the embed URL.
Sources
- CSS Color Module Level 4 - HSL colours and the HSL-to-RGB conversion - W3C . the colour model the hue rotation is done in; the harmony angles themselves are design conventions, not a standard
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools Colour Palette Generator https://a2z.tools/embed/color-palette-generator
<a href="https://a2z.tools/embed/color-palette-generator">A2Z Tools Colour Palette Generator</a>
[A2Z Tools Colour Palette Generator](https://a2z.tools/embed/color-palette-generator)
Colour Palette Generator by A2Z Tools - https://a2z.tools/embed/color-palette-generator
Related widgets
-
Convert any colour between HEX, RGB, HSL, HSV and CMYK, with a swatch and copy buttons.
-
Build a linear or radial CSS gradient with 2-5 colour stops and copy the code.
-
WCAG 2.x contrast ratio of two colours, AA/AAA results and the nearest passing shade.
-
Simplify width x height to a ratio and resize to a new width or height without distortion.
-
Convert pixels to rem (and back) for any root font size, with a table of common sizes.