Khaki — #f0e68c

Khaki (#f0e68c) is a light, vivid yellow. It is a CSS named color, so you can use it in stylesheets as color: khaki as well as by its hex code. In RGB it is rgb(240, 230, 140); in HSL, hsl(54, 77%, 75%).

#f0e68c

Color conversions

Hex#f0e68c
CSS namekhaki
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
CMYK0%, 4%, 42%, 6%
CSS examplecolor: #f0e68c; background-color: rgb(240, 230, 140);

Tints and shades of #f0e68c

The hue is calculated at seven exact lightness levels for use in backgrounds, borders, text and hover states. These values are not substituted with nearby named colors.

#faf7db
#f2e99c
#eadc5d
#e2ce1d
#a29415
#6c630e
#3f3a08

Color schemes with #f0e68c

Complementary — maximum contrast, from opposite sides of the color wheel:

Analogous — neighbours on the wheel, naturally harmonious:

Triadic — three colors evenly spaced for balanced variety:

Tetradic — four colors at 90° intervals:

Text contrast and accessibility

On a #f0e68c background, black text gives the better contrast. WCAG requires 4.5:1 for normal text and 3:1 for large text (AA), or 7:1 and 4.5:1 for AAA.

Text colorContrast ratioNormal textLarge text
White text (#ffffff)1.28:1FailsFails
Black text (#000000)16.40:1AAAAAA

Similar named colors

The CSS named colors closest to #f0e68c: