Khaki — #F0E68C
#F0E68C is a light, vivid yellow. It is the CSS named color khaki.
Color values
| HEX | #F0E68C |
| RGB | rgb(240, 230, 140) |
| HSL | hsl(54, 77%, 75%) |
| CMYK | cmyk(0%, 4%, 42%, 6%) |
| Decimal | 15787660 |
| CSS | color: #F0E68C; |
| Android | 0xFFF0E68C |
| Swift | UIColor(red: 0.941, green: 0.902, blue: 0.549, alpha: 1) |
Accessibility and contrast
| White text on #F0E68C | 1.28:1 — AA fail · AA large fail · AAA fail |
| Black text on #F0E68C | 16.40:1 — AA pass · AA large pass · AAA pass |
| Recommended text color | black |
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.
Colors that go with #F0E68C
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
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.