Beige hex code

The hex code for beige is #F5F5DC, or rgb(245, 245, 220). CSS also accepts the keyword beige.

#F5F5DC
HEX#F5F5DC
RGBrgb(245, 245, 220)
HSLhsl(60, 56%, 91%)
HSV / HSBhsv(60, 10%, 96%)
OKLCHoklch(96.36% 0.0328 107)
CMYKcmyk(0%, 0%, 10%, 4%)
HEX, 50% opacity#F5F5DC80
RGB, 50% opacityrgb(245 245 220 / 50%)
CSS namebeige
Defined inCSS Color 3 (from the X11 color names)

About beige

CSS beige (#F5F5DC) is a very pale, slightly yellow off-white.

Warmer pale tones that people often call beige are wheat (#F5DEB3), bisque (#FFE4C4), antiquewhite (#FAEBD7) and linen (#FAF0E6).

Shades and tints of beige

Beige lands on the 100 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For beige mixed with white, black or gray in even steps, use the tint and shade generator.

50#F9F9E9100#F5F5DC200#E6E496300#D5CF32400#BBB200500#A79F00600#898200700#716B00800#5D5800900#4E4900950#2E2A00

Colors that go with beige

Beige is a neutral color, so hue-based harmonies do not apply: it goes with any hue. Pair it with one accent color, or build a palette in the palette generator.

Text on beige

Black text on beige: 18.98:1
TextRatioAA normalAA largeAAA normal
White1.11:1FailFailFail
Black18.98:1PassPassPass

Check other pairs in the color contrast checker.

Similar named colors

The CSS named colors closest to beige, by deltaE OK distance.

cornsilk #FFF8DColdlace #FDF5E6papayawhip #FFEFD5lightgoldenrodyellow #FAFAD2linen #FAF0E6antiquewhite #FAEBD7

See all 148 on the color names page.

Closest Tailwind CSS colors

orange-100 v4: orange-100, #FFEDD4, deltaE OK 0.022

orange-100 v3: orange-100, #FFEDD5, deltaE OK 0.022

In Tailwind CSS v4 it is orange-100 (#FFEDD4), and in v3 orange-100 (#FFEDD5). For the exact color, use an arbitrary value such as bg-[#f5f5dc]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.

Beige with color vision deficiency

Beige has almost no hue, so it looks the same with any type of color vision deficiency. What matters is its lightness contrast with the colors next to it.

Test a whole palette or image in the color blindness simulator.

Using beige in code

.example {
  color: beige;                 /* named color */
  background-color: #f5f5dc;  /* hex */
  border-color: rgb(245, 245, 220);
}

Frequently asked questions

What is the hex code for beige?
#F5F5DC. CSS also accepts the keyword beige, which means the same color.
What is beige in RGB?
rgb(245, 245, 220). In HSL it is hsl(60, 56%, 91%), and in OKLCH oklch(96.36% 0.0328 107).
What text color goes on beige?
Black text has the higher contrast on #F5F5DC: 18.98:1, which meets AAA for all text. White text reaches 1.11:1.
What is the closest Tailwind color to beige?
In Tailwind CSS v4 it is orange-100 (#FFEDD4), and in v3 orange-100 (#FFEDD5). For the exact color, use an arbitrary value such as bg-[#f5f5dc].
How do I make beige transparent?
Add an alpha value. Half-transparent beige is #F5F5DC80 as 8-digit HEX (80 is 128 out of 255) or rgb(245 245 220 / 50%).