Skip to content

CSS named color

Ivory #FFFFF0

Ivory (CSS keyword ivory) has the hex code #FFFFF0 and the RGB value rgb(255, 255, 240): an off-white with a yellow tint.

Ivory#FFFFF0

Named after the material of elephant tusks: a white with a light yellow tint. It is a common "paper" background for reading-focused layouts.

Color codes for Ivory

Color codes for Ivory
CSS keywordivory
HEX#FFFFF0
RGBrgb(255, 255, 240)
HSLhsl(60, 100%, 97%)
HWBhwb(60 94% 0%)
OKLCHoklch(99.6% 0.02 106.8)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 6%, 0%)
Decimal16,777,200
Hue familyWhites and off-whites

Contrast and accessibility

On ivory, black text has a contrast ratio of 20.81:1 and passes AAA at any text size; white text reaches 1.00: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 ivory20.81:1PassPassPassPass105.4
White text on ivory1.00:1FailFailFailFail0.0
Ivory text on white1.00:1FailFailFailFail0.0
Ivory text on black20.81:1PassPassPassPass−107.2

Tints and shades

Each step mixes ivory with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, ivory, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #fffff1
  2. 15%
    #fffff2
  3. 25%
    #fffff4
  4. 35%
    #fffff5
  5. 45%
    #fffff7
  6. 55%
    #fffff8
  7. 65%
    #fffffa
  8. 75%
    #fffffb
  9. 85%
    #fffffd
  10. 95%
    #fffffe

Shades (mixed with black)

  1. 5%
    #f2f2e4
  2. 15%
    #d9d9cc
  3. 25%
    #bfbfb4
  4. 35%
    #a6a69c
  5. 45%
    #8c8c84
  6. 55%
    #73736c
  7. 65%
    #595954
  8. 75%
    #40403c
  9. 85%
    #262624
  10. 95%
    #0d0d0c

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, ivory's complementary color is #FCFCFF (close to snow), its analogous colors are #FFFCF0 and #F8FFF4, and its triadic partners are #F1FFFF and #FFF9FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#fcfcff
Analogous−30°, +30°#fffcf0#f8fff4
Triadic+120°, +240°#f1ffff#fff9ff
Split-complementary+150°, +210°#f6ffff#fffaff

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?

Ivory is close to neutral: its OKLCH chroma is only 0.020, so its temperature comes from context. The faint 60° 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
floralwhite#fffaf01.3
mintcream#f5fffa1.7
honeydew#f0fff01.9

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
amber-50#fffbeb1.0
yellow-50#fefce81.1
lime-50#f7fee71.6

Code snippets

CSS
.element {
  color: ivory;
  background-color: #fffff0;
  border-color: rgb(255 255 240);
  outline-color: oklch(99.6% 0.02 106.8);
}
Tailwind CSS
<div class="bg-[#fffff0] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-ivory: #fffff0;
}
/* then use bg-ivory, text-ivory, border-ivory */
SwiftUI
import SwiftUI

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

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

const ivory = Color(0xFFFFFFF0);
Android XML
<!-- res/values/colors.xml -->
<color name="ivory">#FFFFF0</color>

Frequently asked questions

What is the hex code for ivory?
The hex code for ivory is #FFFFF0. The same color is rgb(255, 255, 240), hsl(60, 100%, 97%) and oklch(99.6% 0.02 106.8), and in CSS you can also write the keyword ivory directly.
Is ivory a warm or cool color?
Ivory is close to neutral: its OKLCH chroma is only 0.020, so its temperature comes from context. The faint 60° hue gives it a slightly warm cast.
What colors go with ivory?
Rotating the hue in OKLCH while keeping lightness and chroma, ivory's complementary color is #FCFCFF (close to snow), its analogous colors are #FFFCF0 and #F8FFF4, and its triadic partners are #F1FFFF and #FFF9FF. For text on top, black gives the higher contrast.
Can you use white text on ivory?
White text on ivory has a contrast ratio of 1.00:1, which fails AA even for large text under WCAG 2.2. Black text reaches 20.81:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 105.4 for black.
What is the RGB value of ivory?
Ivory is rgb(255, 255, 240): red 255, green 255 and blue 240 on the 0 to 255 scale, or 100.0%, 100.0% and 94.1%. As a decimal integer it is 16777200.

Last reviewed by Arielton Oberek.