Skip to Content

What color shades are gold with code?

What color shades are gold with code?

Gold is a versatile color with many different shades and hues that can be described using color codes. In HTML and CSS, gold colors can be specified using hexadecimal, RGB, or HSL color values. The specific code used depends on the exact shade of gold desired.

Hexadecimal Codes for Gold Colors

Hexadecimal color codes are 6 digit codes that represent the amount of red, green, and blue that makes up a particular color. Hex codes always start with a hash (#) symbol.

Some common hex codes for gold shades are:

Hex Code Color Name
#FFD700 Gold
#D4AF37 Gold (Metallic)
#F5BF23 Goldenrod
#E6BE8A Light Goldenrod
#FFC125 Golden Poppy
#CCAF70 Cashmere
#B87333 Copper
#D4A017 Golden Brown
#FFDF00 Golden Yellow
#FCC200 Golden Dream

The hex code #FFD700 represents a rich, metallic gold. #D4AF37 is also a metallic gold shade but slightly muted. #F5BF23 is a bright golden yellow while #E6BE8A is softer and more pastel.

There are many more shades of gold that can be specified with hex codes. The numbers and letters in the code represent different levels of red, green and blue light that make up the final color.

RGB Codes for Gold Tones

RGB color codes use decimal values to represent the red, green, and blue components of a color. RGB codes are written in this format:

rgb(red, green, blue)

The red, green and blue values are numbers between 0 and 255 that indicate the intensity of those color components.

Some RGB values for popular gold tones are:

RGB Code Color Name
rgb(255, 215, 0) Gold
rgb(212, 175, 55) Metallic Gold
rgb(245, 191, 35) Goldenrod
rgb(230, 190, 138) Light Goldenrod
rgb(252, 193, 37) Golden Poppy
rgb(204, 175, 112) Cashmere
rgb(184, 115, 51) Copper

As with hex codes, the specific RGB values determine the exact hue and brightness of the gold color produced. Higher values yield more intense shades.

HSL Codes for Gold

The HSL color mode defines colors using hue, saturation, and lightness values. Hue represents the color tone, saturation is the intensity, and lightness sets the brightness.

HSL codes look like:

hsl(hue, saturation%, lightness%)

Hue values go from 0 to 360, while saturation and lightness are specified as percentages from 0% to 100%.

Some HSL codes for gold hues are:

HSL Code Color Name
hsl(51, 100%, 50%) Gold
hsl(43, 74%, 49%) Metallic Gold
hsl(43, 74%, 41%) Dull Gold
hsl(55, 66%, 59%) Light Gold
hsl(45, 58%, 50%) Bronze

With HSL, adjusting the lightness and saturation values while keeping the hue constant allows you to easily generate different shades and intensities of a gold color.

Using Color Codes for Gold in HTML/CSS

In HTML and CSS code, these color values can be used to set text color, background color, borders, and other elements.

Some examples:

“`html

Heading

Content

Text

“`

This allows you to easily incorporate different gold shades into the design of a website.

The color codes can also be defined as CSS classes or rules to reuse colors:

“`css
.golden-text {
color: #FFDF00;
}

.golden-bg {
background-color: hsl(43, 74%, 49%);
}
“`

Then apply the classes to HTML elements:

“`html

Text

Content

“`

This makes it easy to maintain consistent design with gold accents.

Gold Color Codes in Design

When selecting gold tones for graphic design, consider:

– Brightness – Metallic/shiny golds have higher lightness. Duller antique golds have lower lightness.

– Saturation – Gold colors with more saturation appear richer and more intense. Desaturate for softer, more muted golds.

– Context – Bright shiny golds pop against black. Soft antique golds complement light browns. Metallic golds fit with neutral grays.

– Accessibility – Dark text on light gold backgrounds provides enough contrast for accessibility. Light gold text on darker backgrounds can be tricky.

Some examples of using gold shades in design:

– Using metallic gold (#D4AF37) for headings to make them stand out against a clean white background

– Adding a muted vintage gold (#CCAF70) accent border to frame content on a light gray background

– Setting aussie gold (#E6BE8A) as a background color for an elegant, inviting look

– Adding a touch of copper (#B87333) to buttons or icons as an accent color

Conclusion

Gold is a versatile color with many shades that can add elegance and luxury to designs. The specific color code used determines the exact look of the gold tone. Hexadecimal, RGB, and HSL codes provide different ways to specify gold colors in code. These values can be used in HTML, CSS, design tools, and other applications to incorporate gold accents and set the right mood.