About Ivory
Ivory (ivory) is a very light, vivid yellow with the hex code #fffff0, or rgb(255, 255, 240). In HSL it sits at a hue of 60°, 100% saturation and 97% lightness. It is one of the 148 named colors every browser understands, so you can write color: ivory; instead of the hex value.
Using Ivory for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Ivory text on white | 1.01 : 1 | fails |
| Ivory text on black | 20.81 : 1 | AAA |
On a ivory background, use black text (20.81 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.
CSS
.element {
color: ivory; /* or #fffff0 */
background-color: #fffff0;
border: 1px solid rgb(255 255 240 / 50%);
}
Similar named colors
Floral White (#fffaf0), Sea Shell (#fff5ee), Snow (#fffafa), Mint Cream (#f5fffa), Old Lace (#fdf5e6), Honey Dew (#f0fff0).