Beige color code and hex code: #F5F5DC

The beige color code is #F5F5DC, also called the beige hex code, which is rgb(245, 245, 220). It is the CSS named colour 'beige', a very pale cream. Copy it in any format below. If you want a darker beige, the table of eight shades further down runs from cornsilk to tan.

Open HEX to RGB converterFree. Nothing uploaded.

Reference

Beige color code in HEX, RGB, HSL, HSV and CMYK

Pick the row your tool asks for and copy it. Every number comes from the single code #F5F5DC, worked out by a script, so the rows always agree with each other.

CMYK here is a plain maths conversion from RGB. A print shop that uses its own colour profile will give slightly different numbers, so ask for a proof before a big print run.

Beige color code in HEX, RGB, HSL, HSV and CMYK
FormatValue
HEX#F5F5DC
RGBrgb(245, 245, 220)
HSLhsl(60, 56%, 91%)
HSV (hue, saturation, value)60, 10%, 96%
CMYK (simple conversion)0%, 0%, 10%, 4%
CSS keywordbeige
Contrast against white1.11:1
Contrast against black18.98:1

In depth

Beige RGB: rgb(245, 245, 220)

Beige in RGB is red 245, green 245 and blue 220, each on the 0 to 255 scale. Red and green are equal and blue is a little lower. That small gap in blue is the only reason beige looks cream and not plain white.

Some graphics code wants the same colour as fractions from 0 to 1. For beige that is 0.961, 0.961, 0.863.

Need to go the other way, from three numbers back to hex? The HEX to RGB converter does it in both directions.

Reference

Copy-ready CSS lines for beige

Paste any line straight into a stylesheet. All four give the same colour in a browser.

Copy-ready CSS lines for beige
StyleCSS line
Hexcolor: #F5F5DC;
Hex as a backgroundbackground-color: #F5F5DC;
RGBcolor: rgb(245, 245, 220);
HSLcolor: hsl(60, 56%, 91%);
Keywordcolor: beige;

In depth

Is #F5F5DC the only beige?

It is the only beige with a formal code. The CSS Color Module Level 4 defines the word beige as #F5F5DC, and we read that list on 17 November 2026. Write color: beige and a browser gives you this exact cream.

In daily speech, beige covers a wide family: creamy, sandy, pinkish and tan shades. Paint makers and brands each pick their own. No standard sits behind the word, other than the CSS keyword.

So if a client says beige and sends a swatch that looks warmer or darker, ask for the code. Do not guess from the name. The next table gives you eight real, named alternatives to try first.

Reference

Eight darker and warmer beiges, with hex codes

Hex #F5F5DC is very light, with a faint yellow lean. If you want a warmer or deeper beige, these eight codes are CSS named colours that sit in the same family. They go from lightest to darkest. We read each code in the W3C list on 17 November 2026 and computed the RGB and HSL values from it.

Eight darker and warmer beiges, with hex codes
VariantMethodHEXRGBHSL
1CSS named colour: cornsilk#FFF8DCrgb(255, 248, 220)hsl(48, 100%, 93%)
2CSS named colour: linen#FAF0E6rgb(250, 240, 230)hsl(30, 67%, 94%)
3CSS named colour: antiquewhite#FAEBD7rgb(250, 235, 215)hsl(34, 78%, 91%)
4CSS named colour: blanchedalmond#FFEBCDrgb(255, 235, 205)hsl(36, 100%, 90%)
5CSS named colour: bisque#FFE4C4rgb(255, 228, 196)hsl(33, 100%, 88%)
6CSS named colour: wheat#F5DEB3rgb(245, 222, 179)hsl(39, 77%, 83%)
7CSS named colour: burlywood#DEB887rgb(222, 184, 135)hsl(34, 57%, 70%)
8CSS named colour: tan#D2B48Crgb(210, 180, 140)hsl(34, 44%, 69%)

Reference

Text on beige: which pairs are readable

WCAG 2.1 asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text and for parts of an interface such as icons and input borders. The table checks beige and each of the eight shades against white and black.

The pattern is simple. Black text passes on every beige here, from 18.98:1 on the main code down to 10.65:1 on tan. White text fails on all of them, and even tan only reaches 1.97:1.

Text on beige: which pairs are readable
ColourHEXOn whiteWhite text resultOn blackBlack text result
Beige (main)#F5F5DC1.11:1Fails 3:118.98:1Passes 4.5:1
Cornsilk#FFF8DC1.07:1Fails 3:119.71:1Passes 4.5:1
Linen#FAF0E61.12:1Fails 3:118.67:1Passes 4.5:1
Antiquewhite#FAEBD71.17:1Fails 3:117.93:1Passes 4.5:1
Blanchedalmond#FFEBCD1.17:1Fails 3:118.02:1Passes 4.5:1
Bisque#FFE4C41.22:1Fails 3:117.15:1Passes 4.5:1
Wheat#F5DEB31.31:1Fails 3:115.98:1Passes 4.5:1
Burlywood#DEB8871.86:1Fails 3:111.31:1Passes 4.5:1
Tan#D2B48C1.97:1Fails 3:110.65:1Passes 4.5:1

Checklist

What the beige numbers mean for a page

  • Beige as a page background with black text gives 18.98:1, far above 4.5:1. You can use any text size.
  • Beige text on a white page gives 1.11:1. Do not use beige for type, thin icons or hairline borders on white.
  • A beige card on a white page is hard to see by colour alone. Add a border or a soft shadow, or put the card on a tan section.
  • A displayed ratio of 4.49:1 does not meet 4.5:1. Never round up when you check.

Reference

Dark partners for a beige background

Beige is too light to carry text or buttons, so pair it with something dark. Each row below turns the hue of #F5F5DC by the angle shown. The pale code keeps beige's saturation (56%) and lightness (91%). The dark partner keeps the saturation but drops lightness to 30%. The last column is the dark partner measured against beige as the background.

Dark partners for a beige background
SchemePale codeDark partnerDark partner on beige
Complementary, 180 degrees#DCDCF5#22227712.14:1
Analogous, +30 degrees#E9F5DC#4D77224.77:1
Analogous, -30 degrees#F5E9DC#774C226.68:1
Triadic, +120 degrees#DCF5F5#2277774.78:1
Triadic, +240 degrees#F5DCF5#7722778.32:1

Checklist

Where designers use beige

  • Page and section backgrounds that feel softer than pure white.
  • Editorial layouts, menus and invitations that want a paper look.
  • Slides and one-page documents with one strong accent colour.
  • Packaging mock-ups. Screen beige and printed beige differ, so print a test.
  • Interior mood boards, as a calm neutral to hold other colours against.

Step by step

Try it now: check a beige or pull one from a photo

Two free EditXo tools fit this page. Neither uploads your picture.

  1. 1

    Open the HEX to RGB converter and type #F5F5DC, or paste any code from the tables above. You can type 3 or 6 digit hex, rgb() or hsl(), or use the colour picker. It shows HEX, RGB and HSL together with the contrast on white and black.

  2. 2

    Open the colour palette from image tool and load a photo of a room, a fabric or a product. It finds the dominant colours with a median-cut method. You choose how many to keep, from 2 to 12, and you can click one pixel for an exact sample. Copy the result as CSS variables.

  3. 3

    A photo rarely holds the exact CSS value. Paste a sampled colour into the converter and compare its numbers with #F5F5DC. Then check whether dark text on it passes 4.5:1.

  • Limit: a sampled beige reflects the light in the photo and the screen you view it on. It will not match a real wall or fabric exactly.

In depth

How this guide was made

The code for beige was read from the W3C CSS Color Module Level 4 list of named colours on 17 November 2026, together with the eight CSS named neighbours in the variants table. Every other number on this page, which means the formats, the contrast ratios and the palettes, was computed from those codes by a short Python script, not copied from another site.

The text was drafted with AI assistance and reviewed before publishing. Very light colours look different from screen to screen and on paper, so test on the device or print you will really use.

In pictures

See it

Beige colour swatch showing the hex code #F5F5DC and rgb(245, 245, 220)
Beige, #F5F5DC, as a flat swatch. The same colour is rgb(245, 245, 220) in RGB.
Nine colour tiles: beige #F5F5DC and the eight computed variants from the table, each labelled with its hex code and how it was computed
The main colour and the eight variants from the table above. Each tile carries its hex code and the method that produced it.
The EditXo HEX to RGB and HSL converter with #F5F5DC typed in, showing its RGB and HSL values and its contrast on white and on black
The HEX to RGB and HSL converter with #F5F5DC entered. It returns the other formats and the contrast against white and black.

FAQ

Frequently asked questions

Short answers to what people ask most about this topic.

All guides

What is the beige color code?

The beige color code is #F5F5DC, which is rgb(245, 245, 220) and hsl(60, 56%, 91%). It is the value of the CSS named colour beige. Print and paint beiges use other numbers, so a swatch can differ from this code.

What is the beige hex code?

The beige hex code is #F5F5DC. In short form people write beige hex #F5F5DC. It is a very pale cream, so if you expected a sandy or tan beige, look at the darker shades in the table above.

Which hex code is beige in CSS?

The beige color hex code in CSS is #F5F5DC, and the keyword beige gives the same colour. If your project writes every colour as hex, use the hex form so all colours share one format.

How do I write beige as RGB?

The beige rgb code is rgb(245, 245, 220). That means red 245, green 245 and blue 220. In CSS you can write it exactly like that, or add a fourth value for transparency with rgba.

Which text colour is readable on beige?

Black or any dark colour. Black on #F5F5DC measures 18.98:1, well above the 4.5:1 WCAG minimum. White on beige is only 1.11:1, so it is unreadable.

What is a darker beige hex code?

Try tan, #D2B48C, or burlywood, #DEB887. Both are CSS named colours. Wheat, #F5DEB3, sits in between. The variants table above lists the RGB and HSL values and the contrast for each.

Do it yourself

Tools used in this guide

Check the numbers

Sources and further reading

Ready to try it?

Use the free tool or the full photo editor. Everything stays on your device.

Open HEX to RGB converterOpen the photo editor