Beige color (#F5F5DC)
#F5F5DC (Beige) is a very light yellow colour. It is rgb(245, 245, 220) in RGB and hsl(60, 56%, 91%) in HSL. Text in black reads better on it: the contrast is 18.98:1 against black and 1.11: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{#F5F5DC}:\quad R=\mathrm{F5}_{16}=245,\ G=\mathrm{F5}_{16}=245,\ B=\mathrm{DC}_{16}=220 - 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.
60^\circ + 180^\circ = 240^\circ ;\Rightarrow; \mathrm{#DCDCF5} - 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{#F5F5DC} = \mathrm{rgb}(245, 245, 220) \]
\[ \mathrm{#F5F5DC}:\quad R=\mathrm{F5}_{16}=245,\ G=\mathrm{F5}_{16}=245,\ B=\mathrm{DC}_{16}=220 \]
\[ H=60^\circ,\quad S=56\%,\quad L=91\% \]
\[ 60^\circ + 180^\circ = 240^\circ ;\Rightarrow; \mathrm{#DCDCF5} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 1.11:1\ \text{(on white)} \]Beige in every colour format
| Format | Value |
|---|---|
| HEX | #F5F5DC |
| RGB | rgb(245, 245, 220) |
| RGB (percent) | rgb(96.1%, 96.1%, 86.3%) |
| HSL | hsl(60, 56%, 91%) |
| HSV / HSB | hsv(60, 10%, 96%) |
| CMYK | cmyk(0%, 0%, 10%, 4%) |
| Decimal | 16119260 |
| Description | very light yellow |
| CSS name | beige |
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.11:1 | fail | fail | fail | fail |
| Black text | 18.98:1 | pass | pass | pass | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #292925 #525249 #7B7B6E #A3A393 #CCCCB7 |
| This colour | #F5F5DC |
| Tints (mixed with white) | #F7F7E2 #F8F8E8 #FAFAEE #FCFCF3 #FDFDF9 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #FAF3DB | 3 |
| Deuteranopia | #FAF4DD | 3 |
| Tritanopia | #F9F2EE | 11 |
| Grayscale | #F3F3F3 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Cornsilk | #FFF8DC |
| Light yellow | #FFFFE0 |
| Old lace | #FDF5E6 |
| Papaya whip | #FFEFD5 |
Questions
What is the RGB value of #F5F5DC?
rgb(245, 245, 220): red 245, green 245, blue 220.
What is the HSL value of #F5F5DC?
hsl(60, 56%, 91%): a hue of 60°, 56% saturation and 91% lightness.
What is the complementary colour of #F5F5DC?
#DCDCF5, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #0A0A23.
Should I use white or black text on #F5F5DC?
Black. White gives 1.11:1 and black 18.98:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #F5F5DC?
cmyk(0%, 0%, 10%, 4%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #F5F5DC a named colour?
Yes: it is the CSS colour name "beige".