Skip to content

CSS named color

DarkGoldenrod #B8860B

DarkGoldenrod (CSS keyword darkgoldenrod) has the hex code #B8860B and the RGB value rgb(184, 134, 11): a medium, moderately saturated amber.

DarkGoldenrod#B8860B

A deep mustard-gold, the darkest of the goldenrod family. It gives enough contrast for large text on white where plain goldenrod does not.

Color codes for DarkGoldenrod

Color codes for DarkGoldenrod
CSS keyworddarkgoldenrod
HEX#B8860B
RGBrgb(184, 134, 11)
HSLhsl(43, 89%, 38%)
HWBhwb(43 4% 28%)
OKLCHoklch(65.2% 0.132 81.6)
CMYK (naive, no ICC profile)cmyk(0%, 27%, 94%, 28%)
Decimal12,092,939
Hue familyBrowns and tans

Contrast and accessibility

On darkgoldenrod, black text has a contrast ratio of 6.45:1 and passes AA for normal text; white text reaches 3.25:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on darkgoldenrod6.45:1PassPassFailPass44.5
White text on darkgoldenrod3.25:1FailPassFailFail−65.0
Darkgoldenrod text on white3.25:1FailPassFailFail59.6
Darkgoldenrod text on black6.45:1PassPassFailPass−42.1

Tints and shades

Each step mixes darkgoldenrod with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, darkgoldenrod, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #bc8c17
  2. 15%
    #c39830
  3. 25%
    #caa448
  4. 35%
    #d1b060
  5. 45%
    #d8bc79
  6. 55%
    #dfc991
  7. 65%
    #e6d5aa
  8. 75%
    #ede1c2
  9. 85%
    #f4edda
  10. 95%
    #fbf9f3

Shades (mixed with black)

  1. 5%
    #af7f0a
  2. 15%
    #9c7209
  3. 25%
    #8a6508
  4. 35%
    #785707
  5. 45%
    #654a06
  6. 55%
    #533c05
  7. 65%
    #402f04
  8. 75%
    #2e2203
  9. 85%
    #1c1402
  10. 95%
    #090701

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, darkgoldenrod's complementary color is #618EE0 (close to cornflowerblue), its analogous colors are #CE763C and #939723, and its triadic partners are #00A6B1 and #B573C0. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#618ee0
Analogous−30°, +30°#ce763c#939723
Triadic+120°, +240°#00a6b1#b573c0
Split-complementary+150°, +210°#019dd2#927fd9

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

DarkGoldenrod is a warm color: its hue is 43° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
peru#cd853f5.1
chocolate#d2691e8.2
olive#8080009.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
yellow-600#d087004.4
amber-600#e171007.9
yellow-700#a65f0010.4

Code snippets

CSS
.element {
  color: darkgoldenrod;
  background-color: #b8860b;
  border-color: rgb(184 134 11);
  outline-color: oklch(65.2% 0.132 81.6);
}
Tailwind CSS
<div class="bg-[#b8860b] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-darkgoldenrod: #b8860b;
}
/* then use bg-darkgoldenrod, text-darkgoldenrod, border-darkgoldenrod */
SwiftUI
import SwiftUI

extension Color {
  static let darkgoldenrod = Color(red: 0.722, green: 0.525, blue: 0.043)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Darkgoldenrod = Color(0xFFB8860B)
Flutter
import 'package:flutter/material.dart';

const darkgoldenrod = Color(0xFFB8860B);
Android XML
<!-- res/values/colors.xml -->
<color name="darkgoldenrod">#B8860B</color>

Frequently asked questions

What is the hex code for darkgoldenrod?
The hex code for darkgoldenrod is #B8860B. The same color is rgb(184, 134, 11), hsl(43, 89%, 38%) and oklch(65.2% 0.132 81.6), and in CSS you can also write the keyword darkgoldenrod directly.
Is darkgoldenrod a warm or cool color?
DarkGoldenrod is a warm color: its hue is 43° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
What colors go with darkgoldenrod?
Rotating the hue in OKLCH while keeping lightness and chroma, darkgoldenrod's complementary color is #618EE0 (close to cornflowerblue), its analogous colors are #CE763C and #939723, and its triadic partners are #00A6B1 and #B573C0. For text on top, black gives the higher contrast.
Can you use white text on darkgoldenrod?
White text on darkgoldenrod has a contrast ratio of 3.25:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 6.45:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −65.0 for white and Lc 44.5 for black.
What is the RGB value of darkgoldenrod?
DarkGoldenrod is rgb(184, 134, 11): red 184, green 134 and blue 11 on the 0 to 255 scale, or 72.2%, 52.5% and 4.3%. As a decimal integer it is 12092939.

Last reviewed by Arielton Oberek.