| Shade 1 | Shade 2 | Shade 3 | Shade 4 | Shade 5 | Shade 6 | Shade 7 | Shade 8 | Shade 9 | Shade 10 | |
|---|---|---|---|---|---|---|---|---|---|---|
| Primary | ||||||||||
| Secondary | ||||||||||
| Danger | ||||||||||
| Warning | ||||||||||
| Accent | ||||||||||
| Success | ||||||||||
| Info | ||||||||||
| Tertiary |
Theory
Color Horse uses math to create pleasing color palettes from any two colors.
How?
Color Horse breaks the two colors into three properties:
- Hue
- Lightness
- Saturation
If we treat those three numbers like coordinates in 3D space, then all we need to do is evenly distribute our remaining colors around the first two. That’s where the math comes in.
Hue
Classic color theory describes a handful of conventional color harmonies, like complementary (opposites) and analogous (neighbors). These conventions are usually described as fixed positions on a color wheel. But, there’s something most people don’t know: the color wheel itself is subjective. In fact, there is no one definitive color wheel. So, rather than changing the position of colors on the wheel, we can change the shape of the wheel itself.
When you choose two colors, Color Horse warps the standard color wheel to fit your two colors. Then it chooses another ten colors with a smooth distribution around the wheel.
You might want your color wheel to be more yellow or more blue. To shift the emphasis of the wheel, you can change the spread between your two anchor colors.
The twelve points that Color Horse chooses become the twelve hues in your palette.
When you distribute those twelve hues evenly, you get a new color wheel. On this wheel, Color Horse identifies semantic roles, like “Accent” and “Warning”.
With a standard spread, Color Horse can reliably create an eight-color scheme:
- Primary
- Secondary
- Tertiary
- Accent
- Info
- Success
- Warning
- Danger
With a non-standard spread, the resulting wheel might not be able to accommodate certain roles, so Color Horse places as many as it can.
Once you pick out the hues that have specific roles, you have a completely unique color scheme.
Lightness
While hue sits on a circle, lightness sits on a line — from black to white. Color Horse takes the lightness of your two input colors and places them on the line. Then, it places the remaining shades around them to create a “ramp.”
You can change the position of all of the shades in the ramp by adjusting the darkest shade, lightest shade, or contrast.
Saturation
Saturation is what makes a color go from beige to yellow or brown to red.
Typically, the lightest and darkest colors in a color palette will have less saturation. For each of your anchor colors, Color Horse computes a saturation curve.
Now, each shade-ramp is also a saturation-ramp. We can show lightness as height, and saturation as distance from the center of the color wheel, where the center is grey.
Colors appear differently on different surfaces. In particular, a computer screen can display more vibrant colors than a physical print. The range of available colors is called the “gamut.” Color Horse provides an option to restrict the gamut for screen or print.
Palette
With the ramps for your two anchor colors, Color Horse computes unique saturation values at each lightness for each hue, resulting in a full palette.
To see the full palette as a 3D model, open the Space tab.
- Height
- Lightness
- Angle
- Hue
- Radius
- Saturation
De Finibus Bonorum et Malorum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
About
Creator
Hi! My name is Sam. I’m the author of a static blog generator called Vowel. I wanted a way for Vowel users to create unique, beautiful color schemes for their websites. That’s how I got the idea for Color Horse.
Do you have a cool project? I’m currently looking for my next role. I’m a technical writer and full-stack developer. Feel free to shoot me a message on LinkedIn or Bluesky.
Module
Color Horse also exists as a zero-dependency npm package called colorhorse. Install it to generate color schemes in your own code.
npm install colorhorse Pass two colors to getScheme. It returns each role’s shades as hex colors, from darkest to lightest.
import { getScheme } from "colorhorse";
getScheme("#3366cc", "#cc6633");
// { primary: ["#...", ...], secondary: [...], ... } Options match the settings here: wheel, gamut, shadeCount, minLightness, maxLightness, minChroma, contrast, and colorTwoSlot for spread.
Credits
This project is inspired by all of the creativity in the web dev community, especially developers working on color problems, like Lea Verou, Adam Argyle, and David Aerne. It’s also worth mentioning that the branding of this website is not dissimilar to other horse-themed design blogs.
The icons are from Font Awesome, except for the horse icons, which are by Lewen Design via Noun Project.