Gold hex code
#FFD700
The hex code for gold is #FFD700, which is RGB 255, 215, 0. It is the color you get when you type gold in CSS. Gold metal looks darker and less yellow than that on a screen, so for a metallic look most designers use #D4AF37 instead.
Click a value to copy it. Move the slider to try a lighter or darker version; the code samples further down follow it.
Runs in your browser. Nothing you type is uploaded.
Gold color codes
These are all the same gold, written for different tools. Web and app design use HEX, RGB and HSL, print uses CMYK, and CIE Lab and LCH describe the color the way the eye sees it. Click any code in the tool above to copy it.
| Format | Value |
|---|---|
| HEX | #FFD700 |
| RGB | rgb(255, 215, 0) |
| HSL | hsl(51, 100%, 50%) |
| HSV | hsv(51, 100%, 100%) |
| CMYK | 0, 16, 100, 0 |
| CIE Lab | 86.9, -1.9, 87.1 |
| LCH | 86.9, 87.2, 91.3 |
| Decimal | 16,766,720 |
| Binary | 11111111 11010111 00000000 |
| CSS color name | gold |

To turn any other code into these values, paste it into the hex to RGB converter.
Which gold hex code should you use?
Different color sites give different codes for gold. These are the four you are most likely to run into, where each one comes from and how they differ.
gold, also used by HTMLColorCodes and WikipediaBright and close to yellow. Good for stars, badges and highlights.No gold is official, but #FFD700 is the only one with a name in the CSS standard, so it is the safe answer when someone asks for the gold hex code. If you are matching a logo or brand file, check which code it uses, because #FFD700 and #D4AF37 are far enough apart to look like two different colors next to each other.
A flat color will never look like polished metal, whether it is gold or metallic silver. Real gold has bright highlights and darker edges, and designers imitate that with a gradient, for example from #F7E7A1 through #D4AF37 to #9C7A1E. The download buttons in the tool above give you a flat swatch you can build on.
Measured as CIE76 color distance from #FFD700, #D4AF37 is 28.2, #EFBF04 is 11.3 and #FFCC00 is 6.5. A distance under about 2.3 is hard to see, so all of these are visibly different from the main code. Codes checked on November 5, 2026.
Shades of gold
These are gold colors with an established name, from the CSS color list and the gold colors Wikipedia lists. The CSS ones work as color names in any stylesheet.
goldgoldenroddarkgoldenrodpalegoldenrodLight gold and dark gold
Each step mixes gold with 10 percent more white (tints) or black (shades), so the hue stays the same. Click a step to copy it.
Colors that go with gold
Gold is bright and warm, so it looks best next to deep, cool colors that let it stand out. Next to white or pale yellow it disappears, because the contrast is too low.
Matches from the color wheel
These come from rotating the hue of #FFD700 (51 degrees) around the color wheel while keeping its saturation and lightness. They fit together in theory, but check them in your design: a wheel match is a starting point, not a rule.
Gold color palettes
Three palettes built around gold, each with a light color for backgrounds and a dark one for text. Click a palette to copy all five codes.
How to make gold
On a screen
Gold is red at full strength, green at about 84 percent and no blue at all. Lower the green and it slides toward orange. Add blue and it turns pale and creamy. Metallic gold #D4AF37 has a little blue (55), and that small amount pulls it toward brown tones like #964B00.
With paint
Start with a warm yellow and add a very small amount of red. A touch of brown or black deepens it into old gold. Mixed paint gives you a gold color but no shine, so for a metal look use metallic or mica paint, or gold leaf.
Is text readable on gold?
WCAG asks for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text, which means 24px, or 19px bold. Black text on #FFD700 is the readable choice.
| Pairing | Contrast | Normal text | Large text |
|---|---|---|---|
| White text on gold | 1.40:1 | Fails | Fails |
| Black text on gold | 14.97:1 | Passes | Passes |
How gold looks with color blindness
Gold holds up well with red-green color blindness and still reads as a strong yellow. Only tritanopia pulls it toward pink, about #FFC4B7. These are approximate simulations using the Machado matrices for full color blindness. Color blindness affects about 1 in 12 men and 1 in 200 women, mostly the red-green types, so do not use gold as the only signal for something like an error or a selected state.
Gold in binary
A hex code is three bytes, one each for red, green and blue. Each pair of hex digits is one byte, and each byte is 8 bits. This is how #FFD700 is stored:
| Channel | Hex | Decimal | Binary | Bits that are on |
|---|---|---|---|---|
| Red | FF | 255 | 11111111 | 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 |
| Green | D7 | 215 | 11010111 | 128 + 64 + 16 + 4 + 2 + 1 |
| Blue | 00 | 0 | 00000000 | 0 |
Joined together that is 111111111101011100000000, a 24-bit number equal to 16,766,720 in decimal. The hex to binary converter does the same for any hex value.
Gold in CSS and code
Copy the version for your stack. The tool above updates these if you change the lightness.
/* CSS */
:root { --gold: #FFD700; }
.button { background: var(--gold); color: #1F1D1A; }
<!-- Tailwind -->
<button class="bg-[#FFD700] text-[#1F1D1A]">Button</button>
// SwiftUI
Color(red: 1.000, green: 0.843, blue: 0.000)
<!-- Android colors.xml -->
<color name="gold">#FFD700</color>
# Python
gold = (255, 215, 0)
Gold color meaning
Gold is tied to the metal, so it usually signals value, winning and celebration: first-place medals, awards, anniversaries and premium packaging. In many cultures it also marks festivals and weddings. In design it works best in small amounts, because large areas of bright #FFD700 can look flat rather than rich.
Where the name comes from
Gold has been used as a color name in English since around 1400, and by 1423 it was being used for blond hair, according to Wikipedia's entry on the color. The web color #FFD700 came much later. It is one of the X Window System color names that browsers picked up in the 1990s and that CSS3 later made standard.
Frequently asked questions
What is the hex code for gold?
The standard gold hex code is #FFD700, RGB 255, 215, 0. It is the CSS named color gold, so color: gold and color: #FFD700 give the same result.
What is the hex code for metallic gold?
#D4AF37, which is RGB 212, 175, 55. It is darker and less saturated than #FFD700 and looks more like the metal. For a shiny effect, use it in a gradient with a lighter gold such as #F7E7A1.
What is the RGB code for gold?
RGB 255, 215, 0 for #FFD700, and RGB 212, 175, 55 for metallic gold #D4AF37.
What is the hex code for 24k gold?
There is no standard code for 24 karat gold. Palette sites use golds between #FFD700 and #D4AF37. For a realistic metal look, metallic gold #D4AF37 is the usual choice.
What is the CMYK code for gold?
For #FFD700 it is 0, 16, 100, 0. Printed gold is often done with a special metallic ink or foil instead of CMYK, because four-color printing cannot produce a metallic shine.
What color text goes on gold?
Dark text. Black on #FFD700 has a contrast ratio of 14.97 to 1, while white on it is only 1.40 to 1, which fails every WCAG level.