CSS named color
DarkKhaki #BDB76B
DarkKhaki (CSS keyword darkkhaki) has the hex code #BDB76B and the RGB value rgb(189, 183, 107): a light, moderately saturated yellow.
A muted olive-tan, darker and greener than khaki. It is common in maps and data visualisations as a neutral earth tone.
Color codes for DarkKhaki
| CSS keyword | darkkhaki |
|---|---|
| HEX | #BDB76B |
| RGB | rgb(189, 183, 107) |
| HSL | hsl(56, 38%, 58%) |
| HWB | hwb(56 42% 26%) |
| OKLCH | oklch(76.7% 0.098 104.5) |
| CMYK (naive, no ICC profile) | cmyk(0%, 3%, 43%, 26%) |
| Decimal | 12,433,259 |
| Hue family | Yellows |
Contrast and accessibility
On darkkhaki, black text has a contrast ratio of 10.14:1 and passes AAA at any text size; white text reaches 2.06: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 darkkhaki | 10.14:1 | Pass | Pass | Pass | Pass | 63.6 |
| White text on darkkhaki | 2.06:1 | Fail | Fail | Fail | Fail | −44.9 |
| Darkkhaki text on white | 2.06:1 | Fail | Fail | Fail | Fail | 40.4 |
| Darkkhaki text on black | 10.14:1 | Pass | Pass | Pass | Pass | −61.9 |
Tints and shades
Each step mixes darkkhaki with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, darkkhaki, white 25%) in CSS.
Tints (mixed with white)
- 5%
#c0bb72 - 15%
#c7c281 - 25%
#cec990 - 35%
#d4d09f - 45%
#dbd7ae - 55%
#e1dfbc - 65%
#e8e6cb - 75%
#efedda - 85%
#f5f4e9 - 95%
#fcfbf8
Shades (mixed with black)
- 5%
#b4ae66 - 15%
#a19c5b - 25%
#8e8950 - 35%
#7b7746 - 45%
#68653b - 55%
#555230 - 65%
#424025 - 75%
#2f2e1b - 85%
#1c1b10 - 95%
#090905
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, darkkhaki's complementary color is #ACABF0 (close to plum), its analogous colors are #D9AA6A and #99C282, and its triadic partners are #67C1E2 and #E19AC2. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #acabf0 |
| Analogous | −30°, +30° | #d9aa6a#99c282 |
| Triadic | +120°, +240° | #67c1e2#e19ac2 |
| Split-complementary | +150°, +210° | #88b7f1#cba1df |
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?
DarkKhaki is a warm color: its hue is 56° 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
| Color | HEX | ΔE OK |
|---|---|---|
| tan | #d2b48c | 5.6 |
| burlywood | #deb887 | 6.3 |
| darkseagreen | #8fbc8f | 6.6 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| olive-400 | #abab9c | 8.3 |
| yellow-500 | #efb100 | 10.0 |
| orange-300 | #ffb86a | 10.5 |
Code snippets
.element {
color: darkkhaki;
background-color: #bdb76b;
border-color: rgb(189 183 107);
outline-color: oklch(76.7% 0.098 104.5);
}<div class="bg-[#bdb76b] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-darkkhaki: #bdb76b;
}
/* then use bg-darkkhaki, text-darkkhaki, border-darkkhaki */import SwiftUI
extension Color {
static let darkkhaki = Color(red: 0.741, green: 0.718, blue: 0.420)
}import androidx.compose.ui.graphics.Color
val Darkkhaki = Color(0xFFBDB76B)import 'package:flutter/material.dart';
const darkkhaki = Color(0xFFBDB76B);<!-- res/values/colors.xml -->
<color name="darkkhaki">#BDB76B</color>Frequently asked questions
- What is the hex code for darkkhaki?
- The hex code for darkkhaki is #BDB76B. The same color is rgb(189, 183, 107), hsl(56, 38%, 58%) and oklch(76.7% 0.098 104.5), and in CSS you can also write the keyword darkkhaki directly.
- Is darkkhaki a warm or cool color?
- DarkKhaki is a warm color: its hue is 56° 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 darkkhaki?
- Rotating the hue in OKLCH while keeping lightness and chroma, darkkhaki's complementary color is #ACABF0 (close to plum), its analogous colors are #D9AA6A and #99C282, and its triadic partners are #67C1E2 and #E19AC2. For text on top, black gives the higher contrast.
- Can you use white text on darkkhaki?
- White text on darkkhaki has a contrast ratio of 2.06:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.14:1 and passes both AA and AAA. In APCA terms that is Lc −44.9 for white and Lc 63.6 for black.
- What is the RGB value of darkkhaki?
- DarkKhaki is rgb(189, 183, 107): red 189, green 183 and blue 107 on the 0 to 255 scale, or 74.1%, 71.8% and 42.0%. As a decimal integer it is 12433259.
Last reviewed by Arielton Oberek.