Free Accessible CSS Gradient Generator

← All Colors
#B8860B Dark Goldenrod

Dark Goldenrod Hex Code #B8860B

Dark Goldenrod is a medium, strong yellow with the hex code #B8860B. In RGB it is 184, 134, 11, and in HSL it is 43°, 89%, 38%. It is one of the 148 named colors in CSS, so you can write “darkgoldenrod” instead of the hex code.

HEX
#B8860B
RGB
rgb(184, 134, 11)
HSL
hsl(43, 89%, 38%)
HSV
hsv(43°, 94%, 72%)
CMYK
cmyk(0%, 27%, 94%, 28%)
CSS name
darkgoldenrod

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

About Dark Goldenrod

On a white background Dark Goldenrod has a contrast ratio of 3.25:1 (AA Large), and on black 6.45:1 (AA). 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 Dark Goldenrod

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

Color harmonies for Dark Goldenrod

These schemes are calculated from Dark 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 Dark Goldenrod is #1D0BB8, close to the named color Medium Blue.

Dark 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 Dark Goldenrod scores against white and black.

Contrast of Dark Goldenrod with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 3.25:1 ✕ Fail ✓ Pass ✕ Fail ✕ Fail
Black (#000000) 6.45:1 ✓ Pass ✓ Pass ✕ Fail ✓ Pass
Aa White text on Dark Goldenrod3.25:1
Aa Black text on Dark Goldenrod6.45:1

Dark Goldenrod and color blindness

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

Protanopia #9A8700

Dark Goldenrod shifts slightly.

Deuteranopia #A69416

Dark Goldenrod shifts slightly.

Tritanopia #C97772

Dark Goldenrod changes noticeably.

Achromatopsia #8F8F8F

Dark Goldenrod changes noticeably.

Gradients with Dark Goldenrod

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

Dark Goldenrod to a lighter tint

background: linear-gradient(135deg, #b8860b 0%, #e3cf9d 100%);

Dark Goldenrod to its analogous neighbour

background: linear-gradient(135deg, #b8860b 0%, #94b80b 100%);

Dark Goldenrod to its complement

background: linear-gradient(135deg, #b8860b 0%, #0b3db8 100%);

Colors similar to Dark Goldenrod

How each close match differs from Dark Goldenrod.

More yellow colors →

Use Dark Goldenrod in code

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

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

Dark Goldenrod questions

What is the hex code for Dark Goldenrod?

The hex code for Dark Goldenrod is #B8860B. In RGB that is rgb(184, 134, 11), and in HSL it is hsl(43, 89%, 38%).

What is the complementary color of Dark Goldenrod?

On the RGB (screen) color wheel, the complement of Dark Goldenrod is #0B3DB8, which is close to Slate Blue. On the artist’s RYB wheel it is #1D0BB8, close to Medium Blue.

Should I use white or black text on Dark Goldenrod?

Black text. It has a contrast ratio of 6.45:1 against Dark Goldenrod, which is WCAG AA. The other option scores 3.25:1.

Is Dark Goldenrod accessible as a text color on white?

Only for large text. Dark Goldenrod on white scores 3.25:1, which passes WCAG AA for large text (3:1) but not for normal text (4.5:1).

What are darker and lighter shades of Dark Goldenrod?

Mixing Dark Goldenrod with black gives #936B09, #6E5007, #4A3604, #251B02 (20% to 80% black). Mixing it with white gives #C69E3C, #D4B66D, #E3CF9D, #F1E7CE (20% to 80% white).

More color tools