# Gold Color Code: #FFD700 Hex, RGB & Palettes

The CSS gold reference is #FFD700, rgb(255, 215, 0), or hsl(50.59, 100%, 50%). Brand shades may differ. HEX and RGB encode the same sRGB reference; HSL is rounded to two decimals. These are screen values, not a CMYK print specification.

## Tints and shades

Illustrative mixes with white or black in encoded sRGB channels, not a perceptually uniform scale.

| Shade | HEX | RGB | HSL | Black text contrast | White text contrast |
| --- | --- | --- | --- | --- | --- |
| Tint 80% | #FFF7CC | rgb(255, 247, 204) | hsl(50.59, 100%, 90%) | 19.43:1 | 1.08:1 |
| Tint 40% | #FFE766 | rgb(255, 231, 102) | hsl(50.59, 100%, 70%) | 16.87:1 | 1.24:1 |
| Reference | #FFD700 | rgb(255, 215, 0) | hsl(50.59, 100%, 50%) | 14.97:1 | 1.40:1 |
| Shade 25% | #BFA100 | rgb(191, 161, 0) | hsl(50.58, 100%, 37.45%) | 8.31:1 | 2.53:1 |
| Shade 50% | #806C00 | rgb(128, 108, 0) | hsl(50.63, 100%, 25.1%) | 4.06:1 | 5.17:1 |

## Text contrast

AA ordinary text requires at least 4.5:1; large text requires at least 3:1. Large text is at least 18pt, or 14pt bold. Use unrounded ratios for decisions. Color pairs alone cannot certify accessibility; review criteria, states, context, and exceptions.

CSS gold is a flat sRGB color, not a metallic finish. White labels on a gold fill need particular attention; dark text is a more useful starting point.

## How to use gold in product design

Gold can emphasize a premium tier, milestone, or featured item when that meaning is also written out. Avoid using it simultaneously for a reward and an urgent warning in the same view.

### A UI example to try

A plan comparison can mark a featured tier with a gold badge reading “Recommended.” Explain the recommendation in text and keep purchase actions consistent with the rest of the interface.

### Work through a real screen

Test gold as a small highlight or a clearly labeled premium category, with dark readable content. A flat screen color cannot reproduce metallic material by itself. If a decorative gradient is used to suggest that effect, keep important text on a predictable surface and review the actual pair.

### Compare nearby colors by purpose

Compare gold with yellow for a brighter attention treatment and brown for a darker related accent. Avoid using the same gold badge for unrelated meanings such as premium access and pending approval unless the surrounding labels make the distinction explicit.

1. Choose a foreground, surface, accent, or status role and name a semantic token after its purpose.
2. Test the actual pair, text size, interaction states, and themes.
3. Document the approved value and companion colors. Keep labels and non-color cues for states.

## CSS palette

Illustrative numeric tokens; connect tested pairs to semantic roles.

```css
:root {
  --gold-100: #FFF7CC;
  --gold-300: #FFE766;
  --gold-500: #FFD700;
  --gold-700: #BFA100;
  --gold-900: #806C00;
}
```

## What is the HEX code for gold?

The CSS named color gold is #FFD700. Use a documented brand token when you mean another shade.

## Is gold accessible?

A color alone cannot pass or fail accessibility. Evaluate the pair, content size, interaction state, and meaning in the complete interface.

## Related colors

- [yellow color codes](https://designproject.io/resources/colors/yellow/)

- [beige color codes](https://designproject.io/resources/colors/beige/)

- [orange color codes](https://designproject.io/resources/colors/orange/)

## Sources and next steps

By The Design Project. UI examples and generated scales are illustrative.

- [MDN CSS named colors](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/named-color)
- [W3C contrast guidance](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html)
- [UI color palette guide](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Semantic color tokens](https://designproject.io/resources/guides/create-semantic-color-tokens/)
- [Color contrast checker](https://designproject.io/resources/guides/check-color-contrast/)
- [Design glossary](https://designproject.io/resources/glossary/)

Canonical: https://designproject.io/resources/colors/gold/

## Keep learning

- [How to create a UI color palette, step by step](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Product design glossary: 44 terms explained](https://designproject.io/resources/glossary/)
- [How to create semantic color tokens for UI](https://designproject.io/resources/guides/create-semantic-color-tokens/)
