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.
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
| CSS keyword | ivory |
|---|---|
| HEX | #FFFFF0 |
| RGB | rgb(255, 255, 240) |
| HSL | hsl(60, 100%, 97%) |
| HWB | hwb(60 94% 0%) |
| OKLCH | oklch(99.6% 0.02 106.8) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 6%, 0%) |
| Decimal | 16,777,200 |
| Hue family | Whites 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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on ivory | 20.81:1 | Pass | Pass | Pass | Pass | 105.4 |
| White text on ivory | 1.00:1 | Fail | Fail | Fail | Fail | 0.0 |
| Ivory text on white | 1.00:1 | Fail | Fail | Fail | Fail | 0.0 |
| Ivory text on black | 20.81:1 | Pass | Pass | Pass | Pass | −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)
- 5%
#fffff1 - 15%
#fffff2 - 25%
#fffff4 - 35%
#fffff5 - 45%
#fffff7 - 55%
#fffff8 - 65%
#fffffa - 75%
#fffffb - 85%
#fffffd - 95%
#fffffe
Shades (mixed with black)
- 5%
#f2f2e4 - 15%
#d9d9cc - 25%
#bfbfb4 - 35%
#a6a69c - 45%
#8c8c84 - 55%
#73736c - 65%
#595954 - 75%
#40403c - 85%
#262624 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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.
Code snippets
.element {
color: ivory;
background-color: #fffff0;
border-color: rgb(255 255 240);
outline-color: oklch(99.6% 0.02 106.8);
}<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 */import SwiftUI
extension Color {
static let ivory = Color(red: 1.000, green: 1.000, blue: 0.941)
}import androidx.compose.ui.graphics.Color
val Ivory = Color(0xFFFFFFF0)import 'package:flutter/material.dart';
const ivory = Color(0xFFFFFFF0);<!-- 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.