Free Accessible CSS Gradient Generator

← All Colors
#BDB76B Dark Khaki

Dark Khaki Hex Code #BDB76B

Dark Khaki is a light, moderate yellow with the hex code #BDB76B. In RGB it is 189, 183, 107, and in HSL it is 56°, 38%, 58%. It is one of the 148 named colors in CSS, so you can write “darkkhaki” instead of the hex code.

HEX
#BDB76B
RGB
rgb(189, 183, 107)
HSL
hsl(56, 38%, 58%)
HSV
hsv(56°, 43%, 74%)
CMYK
cmyk(0%, 3%, 43%, 26%)
CSS name
darkkhaki

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

About Dark Khaki

On a white background Dark Khaki has a contrast ratio of 2.07:1 (Fail), and on black 10.15:1 (AAA). 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 Khaki

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

Color harmonies for Dark Khaki

These schemes are calculated from Dark Khaki 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 Khaki is #916BBD, close to the named color Medium Purple.

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

Contrast of Dark Khaki with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 2.07:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 10.15:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Dark Khaki2.07:1
Aa Black text on Dark Khaki10.15:1

Dark Khaki and color blindness

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

Protanopia #C3B265

Dark Khaki looks almost the same.

Deuteranopia #C5B66E

Dark Khaki looks almost the same.

Tritanopia #C8AEA5

Dark Khaki changes noticeably.

Achromatopsia #B4B4B4

Dark Khaki changes noticeably.

Gradients with Dark Khaki

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

Dark Khaki to a lighter tint

background: linear-gradient(135deg, #bdb76b 0%, #e5e2c4 100%);

Dark Khaki to its analogous neighbour

background: linear-gradient(135deg, #bdb76b 0%, #9abd6b 100%);

Dark Khaki to its complement

background: linear-gradient(135deg, #bdb76b 0%, #6b71bd 100%);

Colors similar to Dark Khaki

How each close match differs from Dark Khaki.

More yellow colors →

Use Dark Khaki in code

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

/* Tailwind v4 theme color */
@theme {
  --color-dark-khaki: #bdb76b;
}

Dark Khaki questions

What is the hex code for Dark Khaki?

The hex code for Dark Khaki is #BDB76B. In RGB that is rgb(189, 183, 107), and in HSL it is hsl(56, 38%, 58%).

What is the complementary color of Dark Khaki?

On the RGB (screen) color wheel, the complement of Dark Khaki is #6B71BD, which is close to Cornflower Blue. On the artist’s RYB wheel it is #916BBD, close to Medium Purple.

Should I use white or black text on Dark Khaki?

Black text. It has a contrast ratio of 10.15:1 against Dark Khaki, which is WCAG AAA. The other option scores 2.07:1.

Is Dark Khaki accessible as a text color on white?

No. Dark Khaki on white scores 2.07:1, which is below the WCAG minimum of 3:1 even for large text.

What are darker and lighter shades of Dark Khaki?

Mixing Dark Khaki with black gives #979256, #716E40, #4C492B, #262515 (20% to 80% black). Mixing it with white gives #CAC589, #D7D4A6, #E5E2C4, #F2F1E1 (20% to 80% white).

More color tools