#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 |
|---|---|
| RGB | rgb(240, 230, 140) |
| HSL | hsl(54, 77%, 75%) |
| HSV | hsv(54, 42%, 94%) |
| CMYK | cmyk(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.
| Background | Ratio | Normal text | Large text |
|---|---|---|---|
| White | 1.28:1 | Fail | Fail |
| Black | 16.4:1 | AAA | AAA |
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
| CSS | color: #F0E68C; |
|---|---|
| CSS rgb() | color: rgb(240 230 140); |
| Tailwind | bg-[#f0e68c] |
| SwiftUI | Color(red: 0.941, green: 0.902, blue: 0.549) |
| Android | Color.parseColor("#F0E68C") |