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.
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
| CSS keyword | darkgoldenrod |
|---|---|
| HEX | #B8860B |
| RGB | rgb(184, 134, 11) |
| HSL | hsl(43, 89%, 38%) |
| HWB | hwb(43 4% 28%) |
| OKLCH | oklch(65.2% 0.132 81.6) |
| CMYK (naive, no ICC profile) | cmyk(0%, 27%, 94%, 28%) |
| Decimal | 12,092,939 |
| Hue family | Browns 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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on darkgoldenrod | 6.45:1 | Pass | Pass | Fail | Pass | 44.5 |
| White text on darkgoldenrod | 3.25:1 | Fail | Pass | Fail | Fail | −65.0 |
| Darkgoldenrod text on white | 3.25:1 | Fail | Pass | Fail | Fail | 59.6 |
| Darkgoldenrod text on black | 6.45:1 | Pass | Pass | Fail | Pass | −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)
- 5%
#bc8c17 - 15%
#c39830 - 25%
#caa448 - 35%
#d1b060 - 45%
#d8bc79 - 55%
#dfc991 - 65%
#e6d5aa - 75%
#ede1c2 - 85%
#f4edda - 95%
#fbf9f3
Shades (mixed with black)
- 5%
#af7f0a - 15%
#9c7209 - 25%
#8a6508 - 35%
#785707 - 45%
#654a06 - 55%
#533c05 - 65%
#402f04 - 75%
#2e2203 - 85%
#1c1402 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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 Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| yellow-600 | #d08700 | 4.4 |
| amber-600 | #e17100 | 7.9 |
| yellow-700 | #a65f00 | 10.4 |
Code snippets
.element {
color: darkgoldenrod;
background-color: #b8860b;
border-color: rgb(184 134 11);
outline-color: oklch(65.2% 0.132 81.6);
}<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 */import SwiftUI
extension Color {
static let darkgoldenrod = Color(red: 0.722, green: 0.525, blue: 0.043)
}import androidx.compose.ui.graphics.Color
val Darkgoldenrod = Color(0xFFB8860B)import 'package:flutter/material.dart';
const darkgoldenrod = Color(0xFFB8860B);<!-- 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.