Notification
Go to Home All Tools Compare Glossary Blog Contact

Khaki Color Code: HEX, RGB, HSL and CMYK

Khaki is #f0e68c in hex, rgb(240, 230, 140) in RGB and hsl(54, 77%, 75%) in HSL. Copy any format, check contrast and see shades and matching colours.

Client-Side (Private)
HEX #f0e68c
RGB rgb(240, 230, 140)
HSL hsl(54, 77%, 75%)
HSV hsv(54, 42%, 94%)
CMYK cmyk(0%, 4%, 42%, 6%)
Contrast on white 1.28:1
Live Preview
#f0e68c Khaki
e.g. khaki
Quick try:
Converted Result (ALL)

How to use khaki in CSS

Step-by-step mathematical method you can verify by hand

  1. Use the colour name: color: khaki; or background: khaki;
  2. Or use the hex code: color: #f0e68c;
  3. Or use RGB: color: rgb(240, 230, 140); and add transparency with rgba or rgb(... / 50%).
  4. Or use HSL to adjust it: hsl(54, 77%, 75%). Raise the last number to lighten, lower it to darken.

Khaki in every format

Worked Hand Example
FormatValue
HEX#f0e68c
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
HSVhsv(54, 42%, 94%)
CMYKcmyk(0%, 4%, 42%, 6%)
Decimal15787660
khaki = #f0e68c.

Shades and tints of khaki

The hue and saturation of khaki stay the same and only the HSL lightness changes, so every row is the same colour family.

ShadeHEXHSL lightness
Lightest #f9f5d2 90%
Lighter #f0e68e 75%
Light #e7d84b 60%
Khaki #f0e68e 75%
Dark #b4a518 40%
Darker #71670f 25%
Darkest #363107 12%

Colours that go with khaki

Colour-wheel harmonies calculated by rotating the hue.

HarmonyHEXRGB
Complementary #8c96f0 rgb(140, 150, 240)
Analogous (+30°) #c8f08c rgb(200, 240, 140)
Analogous (−30°) #f0b48c rgb(240, 180, 140)
Triadic (+120°) #8cf0e6 rgb(140, 240, 230)
Triadic (+240°) #e68cf0 rgb(230, 140, 240)
Split-complementary (+150°) #8cc8f0 rgb(140, 200, 240)
Split-complementary (+210°) #b48cf0 rgb(180, 140, 240)

Contrast of khaki with black and white text

WCAG 2.x contrast ratios.

Text colourRatioAA normal (4.5)AA large (3)
White 1.28:1 Fail Fail
Black 16.4:1 Pass Pass

More colour codes

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Khaki is #f0e68c in hex, rgb(240, 230, 140) in RGB and hsl(54, 77%, 75%) in HSL. Copy any format, check contrast and see shades and matching colours. The worked example and tables on this page are calculated from the numbers themselves, so you can check the result by hand.

02

Privacy

The conversion runs in your browser. Nothing you type is sent to a server.

Good to know

Questions, answered

Quick answers about how this tool works.

khaki is #f0e68c in hex, rgb(240, 230, 140) in RGB and hsl(54, 77%, 75%) in HSL.

khaki is rgb(240, 230, 140). In the simple CMYK formula it is cmyk(0%, 4%, 42%, 6%) (a screen conversion, not a print profile).

Yes. You can write color: khaki; in CSS and it means exactly #f0e68c.

Black text has a contrast ratio of 16.4:1 and white text 1.28:1 on this colour. Black is the better choice. WCAG AA needs 4.5:1 for normal text.

Was this tool helpful?

★ 5.0 • 2 user ratings

Tap a star to rate instantly

What do you need to work out next?

Search 278+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Developer Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI