About Floral White
Floral White (floralwhite) is a very light, vivid orange with the hex code #fffaf0, or rgb(255, 250, 240). In HSL it sits at a hue of 40°, 100% saturation and 97% lightness. It is one of the 148 named colors every browser understands, so you can write color: floralwhite; instead of the hex value.
Using Floral White for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Floral White text on white | 1.04 : 1 | fails |
| Floral White text on black | 20.18 : 1 | AAA |
On a floral white background, use black text (20.18 : 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: floralwhite; /* or #fffaf0 */
background-color: #fffaf0;
border: 1px solid rgb(255 250 240 / 50%);
}
Similar named colors
Ivory (#fffff0), Sea Shell (#fff5ee), Snow (#fffafa), Lavender Blush (#fff0f5), Old Lace (#fdf5e6), White Smoke (#f5f5f5).