Khaki color (#F0E68C)
#F0E68C (Khaki) is a light yellow colour. It is rgb(240, 230, 140) in RGB and hsl(54, 77%, 75%) in HSL. Text in black reads better on it: the contrast is 16.40:1 against black and 1.28:1 against white.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#F0E68C}:\quad R=\mathrm{F0}_{16}=240,\ G=\mathrm{E6}_{16}=230,\ B=\mathrm{8C}_{16}=140 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
54^\circ + 180^\circ = 234^\circ ;\Rightarrow; \mathrm{#8C96F0} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#F0E68C} = \mathrm{rgb}(240, 230, 140) \]
\[ \mathrm{#F0E68C}:\quad R=\mathrm{F0}_{16}=240,\ G=\mathrm{E6}_{16}=230,\ B=\mathrm{8C}_{16}=140 \]
\[ H=54^\circ,\quad S=77\%,\quad L=75\% \]
\[ 54^\circ + 180^\circ = 234^\circ ;\Rightarrow; \mathrm{#8C96F0} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 1.28:1\ \text{(on white)} \]Khaki in every colour format
| Format | Value |
|---|---|
| HEX | #F0E68C |
| RGB | rgb(240, 230, 140) |
| RGB (percent) | rgb(94.1%, 90.2%, 54.9%) |
| HSL | hsl(54, 77%, 75%) |
| HSV / HSB | hsv(54, 42%, 94%) |
| CMYK | cmyk(0%, 4%, 42%, 6%) |
| Decimal | 15787660 |
| Description | light yellow |
| CSS name | khaki |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 1.28:1 | fail | fail | fail | fail |
| Black text | 16.40:1 | pass | pass | pass | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #282617 #504D2F #787346 #A0995D #C8C075 |
| This colour | #F0E68C |
| Tints (mixed with white) | #F3EA9F #F5EEB2 #F8F3C6 #FAF7D9 #FDFBEC |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #F5E085 | 5 |
| Deuteranopia | #F8E690 | 4 |
| Tritanopia | #FDDBD0 | 40 |
| Grayscale | #E3E3E3 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Pale goldenrod | #EEE8AA |
| Dark khaki | #BDB76B |
| Navajo white | #FFDEAD |
| Moccasin | #FFE4B5 |
Questions
What is the RGB value of #F0E68C?
rgb(240, 230, 140): red 240, green 230, blue 140.
What is the HSL value of #F0E68C?
hsl(54, 77%, 75%): a hue of 54°, 77% saturation and 75% lightness.
What is the complementary colour of #F0E68C?
#8C96F0, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #0F1973.
Should I use white or black text on #F0E68C?
Black. White gives 1.28:1 and black 16.40:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #F0E68C?
cmyk(0%, 4%, 42%, 6%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #F0E68C a named colour?
Yes: it is the CSS colour name "khaki".