WordGPT

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.

#F0E68C
Khaki: #F0E68C
Complementary#F0E68C#8C96F0Analogous#F0B48C#F0E68C#C8F08CTriadic#F0E68C#8CF0E6#E68CF0Tetradic (square)#F0E68C#8CF0B4#8C96F0#F08CC8Split complementary#F0E68C#8CC8F0#B48CF0
Complementary, analogous, triadic, tetradic and split-complementary palettes made from this colour
282617504d2f787346a0995dc8c075f0e68cf3ea9ff5eeb2f8f3c6faf7d9fdfbec
From dark shades (left, mixed with black) to light tints (right, mixed with white)

How to work it out

  1. 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. 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.

    H=54∘,S=77%,L=75%H=54^\circ,\quad S=77\%,\quad L=75\%
  3. 3

    The complementary colour sits opposite on the wheel: add 180° to the hue.

    54^\circ + 180^\circ = 234^\circ ;\Rightarrow; \mathrm{#8C96F0}
  4. 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).

    contrast=L1+0.05L2+0.05=1.28:1 (on white)\text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 1.28:1\ \text{(on white)}
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

FormatValue
HEX#F0E68C
RGBrgb(240, 230, 140)
RGB (percent)rgb(94.1%, 90.2%, 54.9%)
HSLhsl(54, 77%, 75%)
HSV / HSBhsv(54, 42%, 94%)
CMYKcmyk(0%, 4%, 42%, 6%)
Decimal15787660
Descriptionlight yellow
CSS namekhaki

Text contrast (WCAG)

Background of this colour with…ContrastAA normal (4.5)AA large (3)AAA normal (7)AAA large (4.5)
White text1.28:1failfailfailfail
Black text16.40:1passpasspasspass

Shades and tints

KindHex 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

TypeHexDistance from the original
Protanopia#F5E0855
Deuteranopia#F8E6904
Tritanopia#FDDBD040
Grayscale#E3E3E3-

Nearest named colours

NameHex
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".

Matching colours

A little darker, a little lighter

Make a palette

    Khaki (#F0E68C): color code, RGB, HSL, shades and palettes | WordGPT