Ivory Hex Code #FFFFF0
Ivory is a very light off-white with the hex code #FFFFF0. In RGB it is 255, 255, 240, and in HSL it is 60°, 100%, 97%. It is one of the 148 named colors in CSS, so you can write “ivory” instead of the hex code.
- HEX
- #FFFFF0
- RGB
- rgb(255, 255, 240)
- HSL
- hsl(60, 100%, 97%)
- HSV
- hsv(60°, 6%, 100%)
- CMYK
- cmyk(0%, 0%, 6%, 0%)
- CSS name
- ivory
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Ivory
On a white background Ivory has a contrast ratio of 1.01:1 (Fail), and on black 20.81:1 (AAA). Black text is the better choice on top of it.
It has almost no hue of its own, so it pairs comfortably with almost any accent color.
Near-white colors work well as backgrounds and surfaces. Their slight tint feels softer than pure white, which can look harsh across a large screen.
Good to know: Ivory (#fffff0) differs from pure white only in the blue channel, which drops from 255 to 240. It is a good choice for a softer page background.
Shades and tints of Ivory
Tints mix Ivory with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Pairing Ivory with an accent color
Ivory has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with Ivory.
- Crimson #DC143C 4.95:1 against Ivory (WCAG AA)
- Dark Orange #FF8C00 2.31:1 against Ivory (WCAG Fail)
- Gold #FFD700 1.39:1 against Ivory (WCAG Fail)
- Sea Green #2E8B57 4.21:1 against Ivory (WCAG AA Large)
- Royal Blue #4169E1 4.80:1 against Ivory (WCAG AA)
- Dark Orchid #9932CC 5.65:1 against Ivory (WCAG AA)
Ivory contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Ivory scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.01:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 20.81:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Ivory and color blindness
These are approximate previews of how Ivory can look with the main types of color vision deficiency.
Ivory looks almost the same.
Ivory looks almost the same.
Ivory shifts slightly.
Ivory shifts slightly.
Gradients with Ivory
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Ivory to a lighter tint
background: linear-gradient(135deg, #fffff0 0%, #fffff9 100%); Ivory to a darker shade
background: linear-gradient(135deg, #fffff0 0%, #666660 100%); Ivory to Dark Orchid
background: linear-gradient(135deg, #fffff0 0%, #9932cc 100%); Colors similar to Ivory
How each close match differs from Ivory.
- Floral White #FFFAF0 Very close in lightness, saturation and hue.
- Old Lace #FDF5E6 Very close in lightness, saturation and hue.
- Honeydew #F0FFF0 Very close in lightness, saturation and hue.
- Seashell #FFF5EE Very close in lightness, saturation and hue.
- Mint Cream #F5FFFA Very close in lightness, saturation and hue.
- Linen #FAF0E6 Slightly darker.
Use Ivory in code
.element {
color: #fffff0;
background-color: #fffff0;
border-color: ivory; /* ivory is a valid CSS color name */
} :root {
--color-ivory: #fffff0;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#fffff0] text-[#fffff0] border-[#fffff0]"></div>
/* Tailwind v4 theme color */
@theme {
--color-ivory: #fffff0;
} Ivory questions
What is the hex code for Ivory?
The hex code for Ivory is #FFFFF0. In RGB that is rgb(255, 255, 240), and in HSL it is hsl(60, 100%, 97%).
Which colors go well with Ivory?
Ivory is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Dark Orchid (5.65:1), Crimson (4.95:1), Royal Blue (4.80:1).
Should I use white or black text on Ivory?
Black text. It has a contrast ratio of 20.81:1 against Ivory, which is WCAG AAA. The other option scores 1.01:1.
Is Ivory accessible as a text color on white?
No. Ivory on white scores 1.01:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Ivory?
Mixing Ivory with black gives #CCCCC0, #999990, #666660, #333330 (20% to 80% black). Mixing it with white gives #FFFFF3, #FFFFF6, #FFFFF9, #FFFFFC (20% to 80% white).