Skip to content

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.

FloralWhite#FFFAF0

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

Color codes for FloralWhite
CSS keywordfloralwhite
HEX#FFFAF0
RGBrgb(255, 250, 240)
HSLhsl(40, 100%, 97%)
HWBhwb(40 94% 0%)
OKLCHoklch(98.6% 0.014 84.6)
CMYK (naive, no ICC profile)cmyk(0%, 2%, 6%, 0%)
Decimal16,775,920
Hue familyWhites 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on floralwhite20.18:1PassPassPassPass103.3
White text on floralwhite1.04:1FailFailFailFail0.0
Floralwhite text on white1.04:1FailFailFailFail0.0
Floralwhite text on black20.18:1PassPassPassPass−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)

  1. 5%
    #fffaf1
  2. 15%
    #fffbf2
  3. 25%
    #fffbf4
  4. 35%
    #fffcf5
  5. 45%
    #fffcf7
  6. 55%
    #fffdf8
  7. 65%
    #fffdfa
  8. 75%
    #fffefb
  9. 85%
    #fffefd
  10. 95%
    #fffffe

Shades (mixed with black)

  1. 5%
    #f2eee4
  2. 15%
    #d9d5cc
  3. 25%
    #bfbcb4
  4. 35%
    #a6a39c
  5. 45%
    #8c8a84
  6. 55%
    #73706c
  7. 65%
    #595854
  8. 75%
    #403f3c
  9. 85%
    #262624
  10. 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.

Color harmonies
HarmonyRotationColor
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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
seashell#fff5ee1.2
ivory#fffff01.3
snow#fffafa1.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-50#fff7ed0.7
amber-50#fffbeb0.8
olive-50#fbfbf91.2

Code snippets

CSS
.element {
  color: floralwhite;
  background-color: #fffaf0;
  border-color: rgb(255 250 240);
  outline-color: oklch(98.6% 0.014 84.6);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let floralwhite = Color(red: 1.000, green: 0.980, blue: 0.941)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Floralwhite = Color(0xFFFFFAF0)
Flutter
import 'package:flutter/material.dart';

const floralwhite = Color(0xFFFFFAF0);
Android XML
<!-- 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.