Dark Khaki
Hex #BDB76B, rgb(189 183 107). A yellow CSS named color.
Open in palette generatorDark Khaki color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Dark Khaki
Dark Khaki is a light moderately saturated yellow with the hex code #BDB76B. In RGB it is made of 189 red, 183 green and 107 blue; in HSL its hue is 56°, with 38% saturation and 58% lightness. Its perceptual lightness (OKLCH L) is 76.7%.
It is a CSS named color, so you can write "darkkhaki" anywhere CSS accepts a color. Against white it has a contrast ratio of 2.07:1 and against black 10.15:1, so black text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Dark Khaki mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Dark Khaki 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Dark Khaki
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Analogous
Triadic
Split complementary
Contrast and readability
WCAG 2 contrast of Dark Khaki with white and black. The readable text color on Dark Khaki is black.
On white2.07:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc 40
On black10.15:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc -62
Test any pair in the contrast checker.
Color blindness preview
How Dark Khaki appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#C3B265
- Deuteranopia#C5B66E
- Tritanopia#C8AEA5
- Protanomaly#C2B468
- Deuteranomaly#C3B66D
- Tritanomaly#C1B389
- Achromatopsia#B4B4B4
Colors similar to Dark Khaki
The closest named colors by perceptual difference (OKLab).
Use Dark Khaki in CSS and Tailwind
.dark-khaki {
color: darkkhaki; /* #BDB76B */
background-color: rgb(189 183 107);
border-color: oklch(76.7% 0.098 104.5);
}/* Tailwind CSS v4: bg-dark-khaki-500, text-dark-khaki-700... */
@theme {
--color-dark-khaki-50: #FBFBF1;
--color-dark-khaki-100: #EDECD6;
--color-dark-khaki-200: #D9D7AF;
--color-dark-khaki-300: #BDB76B;
--color-dark-khaki-400: #A09600;
--color-dark-khaki-500: #8A8100;
--color-dark-khaki-600: #766E00;
--color-dark-khaki-700: #5F5900;
--color-dark-khaki-800: #4D4700;
--color-dark-khaki-900: #3F3A00;
--color-dark-khaki-950: #191700;
}
<!-- or the exact color, no config -->
<div class="bg-[#BDB76B] text-[#000000]">…</div>