Complementary
Two colors from opposite sides of the wheel. They make each other look more vivid, which is why the pairing is used for anything that needs to stand out.
Khaki is the hex color #F0E68C, with RGB values 240, 230, 140. It is a CSS color keyword, so browsers render it from the name alone, and its value is fixed by the CSS Color Module.
Quick colors, then fill the screen
Or a gradient
Or let it move
Every value for #F0E68C, ready to paste. Click any code to copy it.
| Channel | Decimal | Share | Hex | Octal | Binary |
|---|---|---|---|---|---|
| Red | 240 | 94.12% | F0 | 360 | 11110000 |
| Green | 230 | 90.2% | E6 | 346 | 11100110 |
| Blue | 140 | 54.9% | 8C | 214 | 10001100 |
The nearest web-safe color is #FFFF99, from the 216-color palette browsers agreed on before displays could be trusted with more.
The CSS keyword is a pale sandy yellow, noticeably lighter than the military fabric the name comes from. The word is Urdu for dust-coloured.
Every step is generated from #F0E68C. Click a swatch to copy its hex.
A shade is the base color with black mixed in. Shades read as deeper and more dramatic, and they are what you reach for when a color needs to recede or carry weight.
A tint is the base color with white mixed in. Tints turn pastel as they lighten, which makes them useful for backgrounds and for anything that has to sit behind text.
A tone is the base color with grey mixed in. Tones lose the shout without losing the hue, and they are usually what separates a considered palette from a loud one.
The same color as the 50 to 950 ladder every CSS framework uses, with #F0E68C at 500. Click a step to copy its hex, or take the whole scale as variables for a design system.
Harmonies are positions on the color wheel rather than matters of taste, which is why they keep working across very different designs.
Two colors from opposite sides of the wheel. They make each other look more vivid, which is why the pairing is used for anything that needs to stand out.
Three neighbours on the wheel. Nothing competes, so the result reads calm and settled, closer to how colour behaves in nature.
The base plus the two colors either side of its complement. It keeps most of the contrast while being much easier to balance.
Three colors spaced evenly around the wheel. Strong and lively, and usually best with one dominant color and two accents.
Two complementary pairs, forming a rectangle on the wheel. The richest scheme available, and the hardest to keep from shouting.
One hue at different lightness levels. Effortlessly cohesive, and the safest way to build a palette around a brand color.
Near neighbours, for when this color is almost right. Each one shifts hue, saturation or lightness by a small step.
Five-color palettes built around #F0E68C, each following a different scheme. Click any swatch to copy it, or open the generator to build your own.
Open the palette generator to lock the colors you like and regenerate the rest.
Whether khaki works as text, and what to put on top of it when it is the background. Ratios follow WCAG 2.1, where 4.5 is the bar for body text and 3 for large text.
Large text at 24 pixels
Body text at 16 pixels. A flat field of color removes every variable, which is what makes it useful for judging a display.
Large text at 24 pixels
Body text at 16 pixels. A flat field of color removes every variable, which is what makes it useful for judging a display.
Used the other way round, #F0E68C as a background takes #000000 text. That is the higher-contrast of the two, and it is what the tool picks automatically for any chrome sitting on your color.
Khaki reads better on a black background of the two. Contrast is a property of the pair, not of one color, so a color that fails here can still be perfectly usable against a different partner.
Khaki sits in the yellow family. Every named yellow in the library, with khaki first.
| Swatch | Name | Hex | RGB | HSL |
|---|---|---|---|---|
| is a CSS keyword is the color on this page | #F0E68C | 240, 230, 140 | 54, 77%, 75% | |
| Yellow is a CSS keyword | #FFFF00 | 255, 255, 0 | 60, 100%, 50% | |
| Gold is a CSS keyword | #FFD700 | 255, 215, 0 | 51, 100%, 50% | |
| Mustard | #FFDB58 | 255, 219, 88 | 47, 100%, 67% | |
| Champagne | #F7E7CE | 247, 231, 206 | 37, 72%, 89% | |
| Cream | #FFFDD0 | 255, 253, 208 | 57, 100%, 91% | |
| Ivory is a CSS keyword | #FFFFF0 | 255, 255, 240 | 60, 100%, 97% | |
| Lemon | #FFF700 | 255, 247, 0 | 58, 100%, 50% | |
| Sand | #C2B280 | 194, 178, 128 | 45, 35%, 63% | |
| Wheat is a CSS keyword | #F5DEB3 | 245, 222, 179 | 39, 77%, 83% | |
| Goldenrod is a CSS keyword | #DAA520 | 218, 165, 32 | 43, 74%, 49% |