Toolman

Khaki — #F0E68C

#F0E68C#F0E68C

#F0E68C is a light, vivid yellow. It is the CSS named color khaki.

Color values

HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
CMYKcmyk(0%, 4%, 42%, 6%)
Decimal15787660
CSScolor: #F0E68C;
Android0xFFF0E68C
SwiftUIColor(red: 0.941, green: 0.902, blue: 0.549, alpha: 1)

Accessibility and contrast

White text on #F0E68C1.28:1 — AA fail · AA large fail · AAA fail
Black text on #F0E68C16.40:1 — AA pass · AA large pass · AAA pass
Recommended text colorblack

WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).

Tints and shades of #F0E68C

Each swatch keeps the hue and saturation of #F0E68C and varies only lightness — the quickest way to build a usable scale from a single brand color.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #F0E68C

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

Using #F0E68C in code

/* CSS */
.element { color: #F0E68C; background-color: #F0E68C; }
.element { color: rgb(240 230 140); }
.element { color: hsl(54 77% 75%); }

/* Tailwind arbitrary value */
<div class="bg-[#F0E68C] text-black">

/* SCSS variable */
$brand: #F0E68C;

Frequently asked questions

What color is #F0E68C?

#F0E68C is a light, vivid yellow, which CSS calls khaki. Its hue sits at 54° on the color wheel, with 77% saturation and 75% lightness.

What is #F0E68C in RGB?

#F0E68C converts to rgb(240, 230, 140) — 240 red, 230 green and 140 blue.

What is #F0E68C in CMYK?

Approximately cmyk(0%, 4%, 42%, 6%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.

Should text on #F0E68C be white or black?

Black gives the better contrast ratio (16.40:1 versus 1.28:1).

What is the complementary color of #F0E68C?

#8E98F0 — the hue directly opposite #F0E68C on the color wheel.

Convert any color → · Browse all colors