Khaki
Online color picker to view shades, tints, color codes, and complementary colors

Khaki is a light, sunny shade with distinct green undertones that prevents it from feeling too sterile. This pale yellow works well as a background color for spring themes, as it pairs beautifully with slate gray or soft terracotta. Because #f0e68c provides high contrast for black text, it remains legible in small sizes. Avoid using it as a dominant color in large layouts to prevent eye strain.
Questions about Khaki
What is the hex code for Khaki?
Khaki is #f0e68c. In RGB that is rgb(240, 230, 140), in HSL hsl(54, 77%, 75%) and in CMYK 0%, 4%, 42%, 6%.
Is #f0e68c a good choice for web backgrounds?
Using Khaki #f0e68c as a background color offers excellent contrast when paired with black or dark text. Because it has enough saturation to stand out, it serves as a crisp, legible choice for web interfaces and UI backgrounds that require subtle warmth.
What colors pair best with #f0e68c?
This shade pairs best with cool, grounded tones to balance its sunny nature. It looks particularly effective when combined with slate gray or warm terracotta for a balanced, natural palette that avoids appearing too sterile in professional designs.
Is Khaki readable on white or black?
Khaki has a 1.28:1 contrast ratio on white and 16.40:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it is too faint for text and on black it works for body text. Try other pairs in the contrast checker.