Khaki Hex Code — #F0E68C

RGB, HSL, and CMYK values for Khaki.

Last updated: April 6, 2026

Khaki Color Values

FormatValue
HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
CMYKcmyk(0%, 4%, 42%, 6%)
Want to explore more shades? Use our Color Converter

About Khaki

Color psychology: Reliability, nature.

Khaki (#F0E68C) is a light shade of yellow with a hue angle of 54° on the color wheel, 77% saturation, and 75% lightness. It's commonly used in web design, graphic design, and branding where reliability, nature are desired associations.

In color theory, Khaki sits in the warm section of the spectrum. Its high saturation makes it vivid and attention-grabbing — ideal for CTAs, headings, and brand accents.

When to Use Khaki in Design

Web Design

Use Khaki as a background color with dark text overlay. Light colors like this create open, airy layouts that reduce visual fatigue for content-heavy pages.

Branding & Logo

Khaki conveys reliability, nature — consider it for brands that want to project these qualities. Test it at small sizes (favicon, social avatar) to ensure it remains recognizable.

Print Design

Use the CMYK values (C:0% M:4% Y:42% K:6%) for accurate print reproduction in brochures, business cards, and packaging. Request a physical proof — screen colors often appear more vibrant than their printed equivalents.

UI / UX Design

Light colors like Khaki work well for card backgrounds, section dividers, and hover states. Pair with a darker variant for active/selected states.

How to Use Khaki in CSS

/* Using HEX */
color: #F0E68C;
background-color: #F0E68C;

/* Using RGB */
color: rgb(240, 230, 140);

/* Using HSL — best for creating variations */
color: hsl(54, 77%, 75%);

/* Transparent overlay (50% opacity) */
background-color: rgba(240, 230, 140, 0.5);

/* Lighter variant for hover states */
background-color: hsl(54, 77%, 85%);

/* Darker variant for active states */
background-color: hsl(54, 77%, 65%);

HSL is the most flexible format for creating color systems. By adjusting the lightness value, you can generate an entire shade scale from Khaki without changing its core hue or saturation.

Colors That Go With Khaki

Complementary

Analogous

Triadic

Similar Shades of Yellow

Frequently Asked Questions

What is the hex code for Khaki?
The hex color code for Khaki is #F0E68C. In CSS, apply it as text color with color: #F0E68C;, as a background with background-color: #F0E68C;, or as a border with border-color: #F0E68C;. Hex is the most widely used color notation on the web because it is compact, supported by every browser, and easy to copy between design tools like Figma, Photoshop, and code editors.
What is Khaki in RGB and when should I use RGB?
Khaki in RGB is rgb(240, 230, 140), where Red=240, Green=230, and Blue=140 on a 0-255 scale. Use RGB when you need transparency — rgba(240, 230, 140, 0.5) creates a 50% transparent version. RGB is also the native format for HTML canvas, WebGL, and JavaScript image manipulation, since each channel represents the intensity of that primary light color on screen displays.
How to use Khaki in CSS with different color formats?
Khaki can be applied in CSS using multiple formats: (1) Hex: color: #F0E68C; — most compact and widely used. (2) RGB: color: rgb(240, 230, 140); — useful when calculating colors dynamically in JavaScript. (3) HSL: color: hsl(54, 77%, 75%); — best for creating variations, since adjusting lightness produces lighter or darker shades while keeping the same hue. (4) With transparency: rgba(240, 230, 140, 0.8); or hsla(54, 77%, 75%, 0.8); for 80% opacity overlays.
What is the HSL value of Khaki and why is HSL useful for designers?
Khaki in HSL is hsl(54, 77%, 75%). HSL stands for Hue (54 degrees on the color wheel), Saturation (77% color intensity), and Lightness (75% brightness). HSL is the most intuitive format for designers because you can create harmonious palettes by rotating the hue, generate hover effects by increasing lightness by 10%, and desaturate colors by reducing the S value. This makes Khaki a light, vivid warm-toned color.
What is the CMYK value of Khaki for print design?
Khaki in CMYK is C:0% M:4% Y:42% K:6%. CMYK (Cyan, Magenta, Yellow, Key/Black) is the standard color model for professional printing — business cards, brochures, merchandise, and packaging. When designing for print in Adobe InDesign or Illustrator, use these exact CMYK values to ensure accurate color reproduction. Screen colors (RGB) often appear more vibrant than their printed CMYK equivalents, so always request a physical proof for brand-critical materials.
What colors pair well with Khaki in design projects?
Yellow works best as an accent paired with dark backgrounds (charcoal, navy). For warnings and notifications, combine yellow backgrounds with black text for maximum readability.
Is Khaki (#F0E68C) accessible for web design and WCAG compliant?
Pure yellow on white is nearly invisible. Yellow backgrounds need dark text (black or very dark gray) to be readable. For yellow accents, ensure a minimum 3:1 contrast ratio against the surrounding background. For Khaki specifically: as a light shade (lightness: 75%), it works best as a background color with dark text overlaid, or as a decorative accent. Avoid using it as text color on white backgrounds since the contrast ratio is likely insufficient. WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (18px+ bold or 24px+ regular).

Was this page helpful?

Written by

Tamanna Tasnim

Senior Full Stack Developer

ToolsContainerDhaka, Bangladesh5+ years experiencetasnim@toolscontainer.comwww.toolscontainer.com

Full-stack developer with deep expertise in data formats, APIs, and developer tooling. Writes in-depth technical comparisons and conversion guides backed by hands-on engineering experience across modern web stacks.