Short answer
The CSS named color maroon is #800000, listed as sRGB 128, 0, 0. Gold, navy, white, and black are other keywords in that table. Cream is not a keyword. Floralwhite, #fffaf0, is a pale named color for that role. A computed tint, each maroon channel plus 127, is #ff7f7f. Check text pairs against the 4.5:1 minimum.
Last verified against the sources listed below.
Key takeaways
- CSS Color Level 4 and MDN both list maroon as the keyword #800000.
- Gold is #ffd700, navy is #000080, white is #ffffff, and black is #000000.
- There is no CSS keyword cream. Floralwhite, #fffaf0, is a named pale color.
- A computed tint of maroon, channels plus 127, is #ff7f7f and is not a named color.
- WCAG 2.2 success criterion 1.4.3 asks for at least 4.5:1 contrast on normal text.
What color goes with maroon starts from the keyword’s real hex, not from a mood chart. CSS Color Module Level 4 lists the named color maroon as #800000, decimal 128 0 0. The editor’s draft prints that same row. MDN lists maroon as #800000 too.
The spec says the names resolve to colors in sRGB. Sixteen of them, including maroon, black, navy, white, and yellow, came from the VGA palette and then HTML. Gold is not in that list of sixteen. It is still in the named-color table, as #ffd700.
Design elements include color, and a pairing is a choice among defined values. There is no CSS keyword cream. Use a named pale color, or a mix you compute and label.
Which hex values are real keywords?
These pairings use keywords from the CSS table, plus one computed tint. The tint is arithmetic on maroon’s channels. It is not a row in the table.
| Pairing | HEX | Where the value comes from |
|---|---|---|
| Maroon | #800000 |
CSS named color, decimal 128 0 0 |
| Gold | #ffd700 |
CSS named color, decimal 255 215 0 |
| Navy | #000080 |
CSS named color, decimal 0 0 128 |
| White | #ffffff |
CSS named color, decimal 255 255 255 |
| Black | #000000 |
CSS named color, decimal 0 0 0 |
| Floralwhite | #fffaf0 |
CSS named color, decimal 255 250 240 |
| Computed tint | #ff7f7f |
Not a keyword: add 127 to each maroon channel |
The addition is 128 + 127 = 255, 0 + 127 = 127, and 0 + 127 = 127. In hex that is ff, 7f, and 7f. Call it a computed tint of maroon. Do not call it a CSS name.
Antiquewhite, #faebd7, is another pale keyword if floralwhite is too cool for the layout. Whitesmoke, #f5f5f5, is the neutral light keyword. None of them is named cream.
RGB and hex are two ways to write the same sRGB channels. #800000 is the hex form of 128, 0, 0.
How do the pairings work?
Gold is the warm light partner. Maroon is a dark red and gold is a light yellow, so they can share a palette as a dark field and a light accent. That is a contrast of value, dark against light, plus a shared warmth. It is not a measured ratio until you check it.
Navy is the cool partner. #000080 is a dark blue. Next to maroon it reads as a second dark block, not as a light ground.
Use the two as neighboring panels. Put a light strip, white or floralwhite, between them if the boundary is hard to see. Do not set small navy type on maroon, or the reverse, until a contrast check passes.
White and black are the neutrals in the VGA set. White behind maroon text is the usual reading pair. Black behind a lighter red, such as the computed tint, is the reverse idea: light mark on a dark ground.
Floralwhite is the pale warm ground when pure white feels stark. Its channels, 255, 250, 240, sit close to white and a little toward yellow.
The spec says named colors are not encouraged. The names were kept because implementations already used them. Prefer writing the hex when a teammate might misread the word maroon as a different red.
What contrast rule applies?
Normal text needs a contrast ratio of at least 4.5:1. WCAG 2.2 states that in success criterion 1.4.3 Contrast (Minimum), Level AA. Large-scale text needs at least 3:1. Incidental text and text in a logo have no contrast requirement under that criterion.
The understanding page says 4.5:1 and 3:1 are thresholds. Do not round up. A ratio of 4.499:1 fails 4.5:1. WebAIM’s contrast article restates the same 4.5:1 line for 1.4.3 and notes that swapping the two colors does not change the ratio.
This guide does not print a computed ratio for maroon on white or maroon on gold. Measure the pair. A contrast checker compares the two colors you type in.
The palette generator builds a set of swatches you can lock and shuffle. Generate the set, then check any swatch you will use for text.
How do you write the CSS?
Use the keyword or the hex. Both refer to the same sRGB color for maroon.
.band {
background-color: #800000;
color: #ffffff;
}
.accent {
color: gold;
}
color: maroon and color: #800000 are the same named color. color: gold is #ffd700. background-color: floralwhite is #fffaf0. The computed tint has no keyword, so write #ff7f7f.
If the text fails 1.4.3, change the text color or the background. Do not keep a failing pair because the names sound related. Dark maroon and dark navy can still sit side by side as shapes. The words on top of them need their own pair, checked against 4.5:1 for normal text or 3:1 for large-scale text.
A locked maroon swatch keeps #800000 in the palette while the other colors change. Gold and floralwhite are the light partners to try first. Navy stays a second dark block, not a text color on maroon, until a checker says the pair clears 4.5:1 for normal text.
Frequently asked questions
Is maroon the same hex in every browser?
The keyword is standardized. CSS Color Level 4 defines maroon as #800000, channels 128, 0, and 0, in sRGB. The editor's draft prints the same row. MDN lists maroon as #800000 in the basic sixteen colors and again in the long list. The keyword is case-insensitive, so Maroon and maroon match. If a design tool shows a different red, label that color with its own hex.
What should you use instead of a cream keyword?
Do not invent a keyword. The named-color table has no row named cream. It does define floralwhite as #fffaf0, antiquewhite as #faebd7, and whitesmoke as #f5f5f5. Any of those can sit beside maroon as a light ground. A paint sold as cream is not one of these keywords. If you mix a custom pale color, label it as computed and show the arithmetic.
Can maroon text sit on a gold background?
Only if the contrast passes. Maroon is a dark red and gold is a light yellow, and both are warm. That is a reason to share a palette, not proof that small text will pass. Criterion 1.4.3 requires at least 4.5:1 for normal text and 3:1 for large text. Measure the pair. Do not round a result up to 4.5:1.
Why can navy and maroon fail as text on each other?
Both keywords are dark. Navy is #000080, channels 0, 0, 128. Maroon is #800000, channels 128, 0, 0. One is a cool blue and the other is a warm red, so they can work as neighboring blocks. Dark on dark is a weak candidate for body text. The 4.5:1 rule is about luminance, not about warm versus cool. Put text on a lighter ground and check that pair.
Does the spec want you to prefer keywords?
No. CSS Color Level 4 says the names are standardized because they were already widely implemented, not because they are good names, and that their use is not encouraged. Hex is the reliable label. Use the keyword maroon when you want exactly #800000. Use a hex or a computed color when you want a different red. MDN also says the names are essentially artificial.
Sources
- CSS Color Module Level 4, named colors · W3C, 2026
- CSS Color Module Level 4 (draft), named colors · CSS Working Group, 2026
- named-color · MDN, 2026
- WCAG 2.2, Contrast (Minimum) · W3C, 2026
- Understanding SC 1.4.3 Contrast (Minimum) · W3C WAI, 2026
- Contrast and Color Accessibility · WebAIM, 2026