
The beige hex code is #F5F5DC, the official CSS color named beige. It is a very pale, slightly yellow neutral, closer to a warm off-white than the sandy beige many people picture.
That gap between the name and the expectation is why this guide covers the whole beige family: the official CSS beiges, light and sandy beiges, tans, and gray-brown taupes. Every shade includes its hex and RGB values, and the palettes show which text colors stay readable on beige.
Beige color codes
| Format | Value |
|---|---|
| HEX | #F5F5DC |
| RGB | rgb(245, 245, 220) |
| HSL | hsl(60, 56%, 91%) |
| CMYK (approx.) | 0, 0, 10, 4 |
| CSS name | beige |
CSS beige has a yellow hue (60°). If you want the warmer, sandier beige used in fashion and interiors, look at Wheat, Tan or the sand shades below.
25 shades of beige
Every shade here carries dark text well (contrast with #111111 shown or noted). Only the darkest taupe is dark enough for white text.
Official CSS beiges and tans
| Name | Hex | RGB |
|---|---|---|
| Beige | #F5F5DC | 245, 245, 220 |
| BlanchedAlmond | #FFEBCD | 255, 235, 205 |
| Bisque | #FFE4C4 | 255, 228, 196 |
| Moccasin | #FFE4B5 | 255, 228, 181 |
| NavajoWhite | #FFDEAD | 255, 222, 173 |
| Wheat | #F5DEB3 | 245, 222, 179 |
| BurlyWood | #DEB887 | 222, 184, 135 |
| Tan | #D2B48C | 210, 180, 140 |
Light beiges
| Hex | RGB | Dark text contrast |
|---|---|---|
| #F1E9DA | 241, 233, 218 | 15.65:1 |
| #EBE6D6 | 235, 230, 214 | 15.13:1 |
| #EADFCD | 234, 223, 205 | 14.33:1 |
| #E4D9CD | 228, 217, 205 | 13.58:1 |
| #E3D6C4 | 227, 214, 196 | 13.20:1 |
Sand and tan
| Hex | RGB | Dark text contrast |
|---|---|---|
| #D9C3A6 | 217, 195, 166 | 11.07:1 |
| #D8BE97 | 216, 190, 151 | 10.55:1 |
| #D0B595 | 208, 181, 149 | 9.64:1 |
| #C5A687 | 197, 166, 135 | 8.25:1 |
| #BB9777 | 187, 151, 119 | 7.02:1 |
| #AF8F6A | 175, 143, 106 | 6.26:1 |
Taupe and greige
| Hex | RGB | Text contrast |
|---|---|---|
| #C3C1BB | 195, 193, 187 | Dark 10.49:1 |
| #BCB2A9 | 188, 178, 169 | Dark 9.06:1 |
| #ADA79F | 173, 167, 159 | Dark 7.92:1 |
| #A3998F | 163, 153, 143 | Dark 6.75:1 |
| #8F7D70 | 143, 125, 112 | Dark 4.80:1 |
| #7E6F67 | 126, 111, 103 | White 4.82:1 |
“Greige” is a blend of gray and beige; the lightest taupes above fit that description.
Beige vs tan vs taupe
| Beige | Tan | Taupe | |
|---|---|---|---|
| Typical look | Pale, warm neutral | Light brown, sandy | Gray-brown |
| CSS example | #F5F5DC | #D2B48C | No CSS name |
| Undertone | Yellow | Orange-brown | Gray |
| Best for | Backgrounds | Panels, accents | Sophisticated neutrals, text-friendly bases |
For true whites and creams, such as ivory, eggshell and linen, see our off-white guide; this article covers the tan family instead.
Beige palettes for websites
Beige makes a warm, calm website background. These palettes were checked for text contrast.
1. Warm minimal
| Role | Hex |
|---|---|
| Background | #F5F5DC |
| Panels | #EADFCD |
| Text | #3E2F1C (dark brown) |
Dark brown on beige scores 11.66:1.
2. Earthy natural
| Role | Hex |
|---|---|
| Background | #F5F5DC |
| Accent (icons, borders) | #6B8E23 (olive) |
| Text, buttons | #5C4033 (cocoa brown) |
Cocoa text scores 8.49:1. The olive accent scores only 3.44:1, so use it for icons and large headings, not body text.
3. Coastal neutral
| Role | Hex |
|---|---|
| Background | #F1E9DA |
| Cards | #D9C3A6 |
| Text | #2F4F4F (dark slate gray) |
Dark slate gray scores 7.40:1 on #F1E9DA and 5.23:1 on the #D9C3A6 cards, so text stays readable on both.
4. Sand and copper
| Role | Hex |
|---|---|
| Background | #F5F5DC |
| Panels | #D2B48C (tan) |
| Links, buttons | #8B5A2B (copper brown) |
Copper on beige scores 5.28:1. On tan panels, use dark brown #3E2F1C text (6.54:1) instead.
Text on beige
Beige is light, so use dark text. White text fails on every beige in this guide except the darkest taupe; even Tan (#D2B48C) scores only 1.97:1 with white. Warm dark browns and slate grays look more natural on beige than pure black.
Beige pairs naturally with grays, too. Our gray combinations guide includes greige-friendly options.
Common mistakes with beige
- Expecting CSS beige to look sandy. #F5F5DC is very pale and slightly yellow. Fix: use Wheat, Tan or a sand shade for a sandier look.
- White text on beige or tan. It fails contrast. Fix: use dark brown, charcoal or slate.
- Too many similar neutrals. Three beiges that are almost the same look like a mistake. Fix: use one background beige and one clearly darker panel shade.
- Mid-tone accents for body text. Olive and copper can look readable but sit near the limit. Fix: check every text pair.
- Beige that turns yellow on screens. Some displays exaggerate yellow. Fix: test on more than one device, or choose a grayer beige.
FAQ
What is the hex code for beige?
The CSS color beige is #F5F5DC, which is rgb(245, 245, 220).
What is the hex code for tan?
The CSS color tan is #D2B48C, which is rgb(210, 180, 140).
Is beige warm or cool?
Beige is generally warm because of its yellow or orange undertone. Taupe and greige are cooler.
What text color works on beige?
Dark browns, charcoal and slate gray. Dark brown #3E2F1C scores 11.66:1 on #F5F5DC.
Is beige the same as cream?
No. Cream is lighter and closer to white; beige is a little darker and warmer. Creams are covered in our off-white guide.
Choose your beige
Use #F5F5DC for the official beige, Wheat or Tan for a sandier feel, or a taupe for a modern neutral. Keep text dark and warm, and check contrast before you publish.