About Beige
Beige (beige) is a very light, moderately saturated yellow with the hex code #f5f5dc, or rgb(245, 245, 220). In HSL it sits at a hue of 60°, 56% saturation and 91% lightness. It is one of the 148 named colors every browser understands, so you can write color: beige; instead of the hex value.
Using Beige for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Beige text on white | 1.11 : 1 | fails |
| Beige text on black | 18.98 : 1 | AAA |
On a beige background, use black text (18.98 : 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: beige; /* or #f5f5dc */
background-color: #f5f5dc;
border: 1px solid rgb(245 245 220 / 50%);
}
Similar named colors
Corn Silk (#fff8dc), Antique White (#faebd7), Light Goldenrod Yellow (#fafad2), Linen (#faf0e6), Old Lace (#fdf5e6), Papaya Whip (#ffefd5).