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.
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.
| Format | Value |
|---|---|
| HEX | #F5F5DC |
| RGB | rgb(245, 245, 220) |
| HSL | hsl(60, 56%, 91%) |
| HSV (hue, saturation, value) | 60, 10%, 96% |
| CMYK (simple conversion) | 0%, 0%, 10%, 4% |
| CSS keyword | beige |
| Contrast against white | 1.11:1 |
| Contrast against black | 18.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.
| Style | CSS line |
|---|---|
| Hex | color: #F5F5DC; |
| Hex as a background | background-color: #F5F5DC; |
| RGB | color: rgb(245, 245, 220); |
| HSL | color: hsl(60, 56%, 91%); |
| Keyword | color: 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.
| Variant | Method | HEX | RGB | HSL |
|---|---|---|---|---|
| 1 | CSS named colour: cornsilk | #FFF8DC | rgb(255, 248, 220) | hsl(48, 100%, 93%) |
| 2 | CSS named colour: linen | #FAF0E6 | rgb(250, 240, 230) | hsl(30, 67%, 94%) |
| 3 | CSS named colour: antiquewhite | #FAEBD7 | rgb(250, 235, 215) | hsl(34, 78%, 91%) |
| 4 | CSS named colour: blanchedalmond | #FFEBCD | rgb(255, 235, 205) | hsl(36, 100%, 90%) |
| 5 | CSS named colour: bisque | #FFE4C4 | rgb(255, 228, 196) | hsl(33, 100%, 88%) |
| 6 | CSS named colour: wheat | #F5DEB3 | rgb(245, 222, 179) | hsl(39, 77%, 83%) |
| 7 | CSS named colour: burlywood | #DEB887 | rgb(222, 184, 135) | hsl(34, 57%, 70%) |
| 8 | CSS named colour: tan | #D2B48C | rgb(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.
| Colour | HEX | On white | White text result | On black | Black text result |
|---|---|---|---|---|---|
| Beige (main) | #F5F5DC | 1.11:1 | Fails 3:1 | 18.98:1 | Passes 4.5:1 |
| Cornsilk | #FFF8DC | 1.07:1 | Fails 3:1 | 19.71:1 | Passes 4.5:1 |
| Linen | #FAF0E6 | 1.12:1 | Fails 3:1 | 18.67:1 | Passes 4.5:1 |
| Antiquewhite | #FAEBD7 | 1.17:1 | Fails 3:1 | 17.93:1 | Passes 4.5:1 |
| Blanchedalmond | #FFEBCD | 1.17:1 | Fails 3:1 | 18.02:1 | Passes 4.5:1 |
| Bisque | #FFE4C4 | 1.22:1 | Fails 3:1 | 17.15:1 | Passes 4.5:1 |
| Wheat | #F5DEB3 | 1.31:1 | Fails 3:1 | 15.98:1 | Passes 4.5:1 |
| Burlywood | #DEB887 | 1.86:1 | Fails 3:1 | 11.31:1 | Passes 4.5:1 |
| Tan | #D2B48C | 1.97:1 | Fails 3:1 | 10.65:1 | Passes 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.
| Scheme | Pale code | Dark partner | Dark partner on beige |
|---|---|---|---|
| Complementary, 180 degrees | #DCDCF5 | #222277 | 12.14:1 |
| Analogous, +30 degrees | #E9F5DC | #4D7722 | 4.77:1 |
| Analogous, -30 degrees | #F5E9DC | #774C22 | 6.68:1 |
| Triadic, +120 degrees | #DCF5F5 | #227777 | 4.78:1 |
| Triadic, +240 degrees | #F5DCF5 | #772277 | 8.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
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
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
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

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.