Skip to content

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.

DarkKhaki#BDB76B

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

Color codes for DarkKhaki
CSS keyworddarkkhaki
HEX#BDB76B
RGBrgb(189, 183, 107)
HSLhsl(56, 38%, 58%)
HWBhwb(56 42% 26%)
OKLCHoklch(76.7% 0.098 104.5)
CMYK (naive, no ICC profile)cmyk(0%, 3%, 43%, 26%)
Decimal12,433,259
Hue familyYellows

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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on darkkhaki10.14:1PassPassPassPass63.6
White text on darkkhaki2.06:1FailFailFailFail−44.9
Darkkhaki text on white2.06:1FailFailFailFail40.4
Darkkhaki text on black10.14:1PassPassPassPass−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)

  1. 5%
    #c0bb72
  2. 15%
    #c7c281
  3. 25%
    #cec990
  4. 35%
    #d4d09f
  5. 45%
    #dbd7ae
  6. 55%
    #e1dfbc
  7. 65%
    #e8e6cb
  8. 75%
    #efedda
  9. 85%
    #f5f4e9
  10. 95%
    #fcfbf8

Shades (mixed with black)

  1. 5%
    #b4ae66
  2. 15%
    #a19c5b
  3. 25%
    #8e8950
  4. 35%
    #7b7746
  5. 45%
    #68653b
  6. 55%
    #555230
  7. 65%
    #424025
  8. 75%
    #2f2e1b
  9. 85%
    #1c1b10
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
tan#d2b48c5.6
burlywood#deb8876.3
darkseagreen#8fbc8f6.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
olive-400#abab9c8.3
yellow-500#efb10010.0
orange-300#ffb86a10.5

Code snippets

CSS
.element {
  color: darkkhaki;
  background-color: #bdb76b;
  border-color: rgb(189 183 107);
  outline-color: oklch(76.7% 0.098 104.5);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let darkkhaki = Color(red: 0.741, green: 0.718, blue: 0.420)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const darkkhaki = Color(0xFFBDB76B);
Android XML
<!-- 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.