CSS named color
FloralWhite #FFFAF0
FloralWhite (CSS keyword floralwhite) has the hex code #FFFAF0 and the RGB value rgb(255, 250, 240): an off-white with a beige tint.
A warm white with a faint yellow tint, close to ivory and oldlace. The X11 list does not record what flower, if any, the name refers to.
Color codes for FloralWhite
| CSS keyword | floralwhite |
|---|---|
| HEX | #FFFAF0 |
| RGB | rgb(255, 250, 240) |
| HSL | hsl(40, 100%, 97%) |
| HWB | hwb(40 94% 0%) |
| OKLCH | oklch(98.6% 0.014 84.6) |
| CMYK (naive, no ICC profile) | cmyk(0%, 2%, 6%, 0%) |
| Decimal | 16,775,920 |
| Hue family | Whites and off-whites |
Contrast and accessibility
On floralwhite, black text has a contrast ratio of 20.18:1 and passes AAA at any text size; white text reaches 1.04:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on floralwhite | 20.18:1 | Pass | Pass | Pass | Pass | 103.3 |
| White text on floralwhite | 1.04:1 | Fail | Fail | Fail | Fail | 0.0 |
| Floralwhite text on white | 1.04:1 | Fail | Fail | Fail | Fail | 0.0 |
| Floralwhite text on black | 20.18:1 | Pass | Pass | Pass | Pass | −104.8 |
Tints and shades
Each step mixes floralwhite with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, floralwhite, white 25%) in CSS.
Tints (mixed with white)
- 5%
#fffaf1 - 15%
#fffbf2 - 25%
#fffbf4 - 35%
#fffcf5 - 45%
#fffcf7 - 55%
#fffdf8 - 65%
#fffdfa - 75%
#fffefb - 85%
#fffefd - 95%
#fffffe
Shades (mixed with black)
- 5%
#f2eee4 - 15%
#d9d5cc - 25%
#bfbcb4 - 35%
#a6a39c - 45%
#8c8a84 - 55%
#73706c - 65%
#595854 - 75%
#403f3c - 85%
#262624 - 95%
#0d0d0c
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, floralwhite's complementary color is #F6FBFF (close to ghostwhite), its analogous colors are #FFF8F2 and #FAFCF1, and its triadic partners are #F0FEFF and #FFF7FF. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #f6fbff |
| Analogous | −30°, +30° | #fff8f2#fafcf1 |
| Triadic | +120°, +240° | #f0feff#fff7ff |
| Split-complementary | +150°, +210° | #f2fcff#fbf9ff |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
FloralWhite is close to neutral: its OKLCH chroma is only 0.014, so its temperature comes from context. The faint 40° hue gives it a slightly warm cast.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
.element {
color: floralwhite;
background-color: #fffaf0;
border-color: rgb(255 250 240);
outline-color: oklch(98.6% 0.014 84.6);
}<div class="bg-[#fffaf0] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-floralwhite: #fffaf0;
}
/* then use bg-floralwhite, text-floralwhite, border-floralwhite */import SwiftUI
extension Color {
static let floralwhite = Color(red: 1.000, green: 0.980, blue: 0.941)
}import androidx.compose.ui.graphics.Color
val Floralwhite = Color(0xFFFFFAF0)import 'package:flutter/material.dart';
const floralwhite = Color(0xFFFFFAF0);<!-- res/values/colors.xml -->
<color name="floralwhite">#FFFAF0</color>Frequently asked questions
- What is the hex code for floralwhite?
- The hex code for floralwhite is #FFFAF0. The same color is rgb(255, 250, 240), hsl(40, 100%, 97%) and oklch(98.6% 0.014 84.6), and in CSS you can also write the keyword floralwhite directly.
- Is floralwhite a warm or cool color?
- FloralWhite is close to neutral: its OKLCH chroma is only 0.014, so its temperature comes from context. The faint 40° hue gives it a slightly warm cast.
- What colors go with floralwhite?
- Rotating the hue in OKLCH while keeping lightness and chroma, floralwhite's complementary color is #F6FBFF (close to ghostwhite), its analogous colors are #FFF8F2 and #FAFCF1, and its triadic partners are #F0FEFF and #FFF7FF. For text on top, black gives the higher contrast.
- Can you use white text on floralwhite?
- White text on floralwhite has a contrast ratio of 1.04:1, which fails AA even for large text under WCAG 2.2. Black text reaches 20.18:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 103.3 for black.
- What is the RGB value of floralwhite?
- FloralWhite is rgb(255, 250, 240): red 255, green 250 and blue 240 on the 0 to 255 scale, or 100.0%, 98.0% and 94.1%. As a decimal integer it is 16775920.
Last reviewed by Arielton Oberek.