Free Accessible CSS Gradient Generator

← All Colors
#DAA520 Goldenrod

Goldenrod Hex Code #DAA520

Goldenrod is a light, vivid yellow with the hex code #DAA520. In RGB it is 218, 165, 32, and in HSL it is 43°, 74%, 49%. It is one of the 148 named colors in CSS, so you can write “goldenrod” instead of the hex code.

HEX
#DAA520
RGB
rgb(218, 165, 32)
HSL
hsl(43, 74%, 49%)
HSV
hsv(43°, 85%, 85%)
CMYK
cmyk(0%, 24%, 85%, 15%)
CSS name
goldenrod

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Goldenrod

On a white background Goldenrod has a contrast ratio of 2.24:1 (Fail), and on black 9.38:1 (AAA). Black text is the better choice on top of it.

It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.

Yellow is the brightest hue, so it is excellent for highlights but difficult to read as text on a white background. Pair it with dark text rather than white.

Shades and tints of Goldenrod

Tints mix Goldenrod with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Goldenrod

These schemes are calculated from Goldenrod on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Goldenrod is #3420DA, close to the named color Medium Blue.

Goldenrod contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Goldenrod scores against white and black.

Contrast of Goldenrod with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 2.24:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 9.38:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Goldenrod2.24:1
Aa Black text on Goldenrod9.38:1

Goldenrod and color blindness

These are approximate previews of how Goldenrod can look with the main types of color vision deficiency.

Protanopia #BBA500

Goldenrod shifts slightly.

Deuteranopia #C8B329

Goldenrod shifts slightly.

Tritanopia #ED948D

Goldenrod changes noticeably.

Achromatopsia #ADADAD

Goldenrod changes noticeably.

Gradients with Goldenrod

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Goldenrod to a lighter tint

background: linear-gradient(135deg, #daa520 0%, #f0dba6 100%);

Goldenrod to its analogous neighbour

background: linear-gradient(135deg, #daa520 0%, #b2da20 100%);

Goldenrod to its complement

background: linear-gradient(135deg, #daa520 0%, #2055da 100%);

Colors similar to Goldenrod

How each close match differs from Goldenrod.

More yellow colors →

Use Goldenrod in code

CSS
.element {
  color: #daa520;
  background-color: #daa520;
  border-color: goldenrod;   /* goldenrod is a valid CSS color name */
}
CSS variable
:root {
  --color-goldenrod: #daa520;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#daa520] text-[#daa520] border-[#daa520]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-goldenrod: #daa520;
}

Goldenrod questions

What is the hex code for Goldenrod?

The hex code for Goldenrod is #DAA520. In RGB that is rgb(218, 165, 32), and in HSL it is hsl(43, 74%, 49%).

What is the complementary color of Goldenrod?

On the RGB (screen) color wheel, the complement of Goldenrod is #2055DA, which is close to Royal Blue. On the artist’s RYB wheel it is #3420DA, close to Medium Blue.

Should I use white or black text on Goldenrod?

Black text. It has a contrast ratio of 9.38:1 against Goldenrod, which is WCAG AAA. The other option scores 2.24:1.

Is Goldenrod accessible as a text color on white?

No. Goldenrod on white scores 2.24:1, which is below the WCAG minimum of 3:1 even for large text.

What are darker and lighter shades of Goldenrod?

Mixing Goldenrod with black gives #AE841A, #836313, #57420D, #2C2106 (20% to 80% black). Mixing it with white gives #E1B74D, #E9C979, #F0DBA6, #F8EDD2 (20% to 80% white).

More color tools