Gold Color Code: Hex #FFD700
The hex code for Gold is #FFD700 (the CSS keyword gold). Gold RGB code: rgb(255, 215, 0). The xkcd color survey gives #DBB40C instead, which looks slightly different; both codes are below with their source.
#FFD700Top: the code browsers use#DBB40CBelow: compare edge to edgeGold color codes: each Gold hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look slightly different
- Family
- yellow
- Contrast
- 1.40:1 with white, 14.97:1 with black
- CSS keyword
- gold
- Character
- light, vivid
- Readable text on it
- black (AA)
The X11 file gives gold three darker numbered variants, and the printer media color standard PWG 5101.1 keeps gold at the same value while adding a dark and a light gold of its own.
A light, vivid yellow with a warm cast. In code, gold gives exactly this web value. If you mean the color as people usually picture the name, the survey value #DBB40C is closer: it is darker and more muted.
Black text reads best on it; white text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Mustard Yellow, its closest named neighbour, it looks lighter, more vivid and warmer; beside Yellow it looks darker, more muted and warmer.
Colors that go with Gold
Complementary: the opposite of Gold
#FFD700Black text 14.97:1#CFD8FFBlack text 14.92:1#FFEB9CBlack text 17.62:1#7F859EBlack text 5.75:1
Analogous
#FFD0A2Black text 14.80:1#FFD700Black text 14.97:1#BEEE59Black text 15.56:1#FFF0B9Black text 18.42:1
Triadic
#FFD700Black text 14.97:1#91E9FFBlack text 15.30:1#FFC4F1Black text 14.42:1#FFF6D4Black text 19.39:1
Monochrome
#483B00White text 11.05:1#9E8500Black text 5.81:1#FFD700Black text 14.97:1#FFE47CBlack text 16.64:1#FFF0B9Black text 18.42:1
With neutrals
#FFD700Black text 14.97:1#FFF6D4Black text 19.39:1#221A00White text 17.27:1#A49A74Black text 7.45:1
Preview
Heading on Gold
Body text on this color, 14.97:1.
ButtonHeading in Gold
Text in this color on white, 1.40:1.
ButtonTints and shades
#FFF6D4#FFF0B9#FFEB9C#FFE47C#FFDE56#FFD700#CEAD00#9E8500#715E00#483B00#221A00
WhiteGoldBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 1 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: