#F0E68C

khaki

#F0E68C is a yellow colour. In RGB it is 240 red, 230 green and 140 blue, which converts to a hue of 54 degrees, 77% saturation and 75% lightness. It is one of the named CSS colours, written as khaki in stylesheets.

Color values

HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
HSVhsv(54, 42%, 94%)
CMYKcmyk(0%, 4%, 42%, 6%)

Contrast and accessibility

Against white the contrast ratio is 1.28:1, and against black it is 16.4:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

BackgroundRatioNormal textLarge text
White1.28:1FailFail
Black16.4:1AAAAAA

Tints and shades

Lighter tints move #F0E68C toward white, and darker shades move it toward black.

Tints

Shades

Color harmonies

Complementary

Analogous

Triadic

Split complementary

Code

CSScolor: #F0E68C;
CSS rgb()color: rgb(240 230 140);
Tailwindbg-[#f0e68c]
SwiftUIColor(red: 0.941, green: 0.902, blue: 0.549)
AndroidColor.parseColor("#F0E68C")

Related tools