Color codes

Gold hex code #FFD700

#FFD700 is gold as CSS names it: a bright, sunny yellow. It is the code you get when you type gold in a web page or a design app.

Gold #FFD700 CSS named color: gold

Gold color codes

HEX#FFD700
RGBrgb(255, 215, 0)
HSLhsl(51, 100%, 50%)
CMYKcmyk(0%, 16%, 100%, 0%)
More formats and code
HSV / HSBhsv(51, 100%, 100%)
OKLCHoklch(0.887 0.182 95.3)
RGB numbers255, 215, 0
CSScolor: #ffd700;
Tailwindbg-[#ffd700]
SwiftUIColor(red: 1.000, green: 0.843, blue: 0.000)
AndroidColor.parseColor("#FFD700")

CMYK here is a plain formula. Ask your print shop for the numbers their press uses.

Open in a tool: ConverterShade generatorContrast checkerColor wheelPalette generatorColor blindness simulator

Lighter and darker gold

Each step mixes in more white or black, in even steps for the eye. Tap a swatch to copy its code.

Lighter

Darker

Colors that go with gold

Complementary

Across the color wheel. Strong contrast, good for one button or one word.

Analogous

Its neighbors on the wheel. Calm, easy to use together.

Triadic

Three colors evenly spread. Lively, best with one in charge.

Pairs well in a brand

Gold and text

Black text reads best on gold: 14.97:1. The same numbers hold for gold text on a white or a black page. Body text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.

TextContrastWCAG
AaWhite text on gold1.40:1Fails
AaBlack text on gold14.97:1AAA
Text in the sample post
How gold looks with color blindness

Other gold hex codes

Most people picture something duller when they say gold, closer to a metal than a lemon. That shade is often written as metallic gold, #D4AF37. A screen cannot shine like metal, so a gold logo on screen is a flat color, and a gradient from dark to light gold is the usual way to suggest shine.

  • GoldCSS named color: gold. The code on this page#FFD700
  • Metallic goldCommon variant#D4AF37
  • GoldenrodCSS named color: goldenrod#DAA520
  • Dark goldenrodCSS named color: darkgoldenrod#B8860B
  • Old goldCommon variant#CFB53B
  • Vegas goldCommon variant#C5B358

Gold in a small business brand

Gold says premium and celebration: jewelers, salons, wedding planners, a bar with a good cocktail list. It works best as an accent on a dark ground, such as gold on navy or black, where it reads like foil on a card. On white, bright gold fades: put text on it in black, never in white, and use dark goldenrod #B8860B when gold words must be read on white, in large type only.

FAQ

What is the hex code for gold?

Gold is #FFD700 as the CSS named color gold. In RGB that is rgb(255, 215, 0), and in CMYK cmyk(0%, 16%, 100%, 0%).

What text color goes on gold?

Black text, at a contrast of 14.97:1, which passes WCAG AAA. White text reaches 1.40:1, too low for any text.

What is the hex code for metallic gold?

Metallic gold is often written as #D4AF37, which is rgb(212, 175, 55). It is duller and browner than the CSS gold #FFD700, and closer to what people picture as gold.

How do I make gold look shiny on screen?

Use a gradient from a darker gold to a lighter one, for example #B8860B to #FFD700, with the light part near the top. A flat gold reads as yellow.

More color codes

All color codes

Keep your brand colors in one place

Add your brand colors once in Postfjord's design editor, under Settings, Brand, and every template can use them. Try it free.

Start free