Free Accessible CSS Gradient Generator

← All Colors
#F5F5DC Beige

Beige Hex Code #F5F5DC

Beige is a very light, muted off-white with the hex code #F5F5DC. In RGB it is 245, 245, 220, and in HSL it is 60°, 56%, 91%. It is one of the 148 named colors in CSS, so you can write “beige” instead of the hex code.

HEX
#F5F5DC
RGB
rgb(245, 245, 220)
HSL
hsl(60, 56%, 91%)
HSV
hsv(60°, 10%, 96%)
CMYK
cmyk(0%, 0%, 10%, 4%)
CSS name
beige

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Beige

On a white background Beige has a contrast ratio of 1.11:1 (Fail), and on black 18.98:1 (AAA). Black text is the better choice on top of it.

It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.

Near-white colors work well as backgrounds and surfaces. Their slight tint feels softer than pure white, which can look harsh across a large screen.

Shades and tints of Beige

Tints mix Beige with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Beige

These schemes are calculated from Beige on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Beige is #EBDCF5, close to the named color Lavender.

Beige contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Beige scores against white and black.

Contrast of Beige with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 1.11:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 18.98:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Beige1.11:1
Aa Black text on Beige18.98:1

Beige and color blindness

These are approximate previews of how Beige can look with the main types of color vision deficiency.

Protanopia #FAF3DB

Beige looks almost the same.

Deuteranopia #FAF4DD

Beige looks almost the same.

Tritanopia #F9F2EE

Beige shifts slightly.

Achromatopsia #F3F3F3

Beige shifts slightly.

Gradients with Beige

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Beige to a lighter tint

background: linear-gradient(135deg, #f5f5dc 0%, #fbfbf1 100%);

Beige to its analogous neighbour

background: linear-gradient(135deg, #f5f5dc 0%, #e9f5dc 100%);

Beige to its complement

background: linear-gradient(135deg, #f5f5dc 0%, #dcdcf5 100%);

Colors similar to Beige

How each close match differs from Beige.

More white & cream colors →

Use Beige in code

CSS
.element {
  color: #f5f5dc;
  background-color: #f5f5dc;
  border-color: beige;   /* beige is a valid CSS color name */
}
CSS variable
:root {
  --color-beige: #f5f5dc;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#f5f5dc] text-[#f5f5dc] border-[#f5f5dc]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-beige: #f5f5dc;
}

Beige questions

What is the hex code for Beige?

The hex code for Beige is #F5F5DC. In RGB that is rgb(245, 245, 220), and in HSL it is hsl(60, 56%, 91%).

What is the complementary color of Beige?

On the RGB (screen) color wheel, the complement of Beige is #DCDCF5, which is close to Lavender. On the artist’s RYB wheel it is #EBDCF5, close to Lavender.

Should I use white or black text on Beige?

Black text. It has a contrast ratio of 18.98:1 against Beige, which is WCAG AAA. The other option scores 1.11:1.

Is Beige accessible as a text color on white?

No. Beige on white scores 1.11:1, which is below the WCAG minimum of 3:1 even for large text.

What are darker and lighter shades of Beige?

Mixing Beige with black gives #C4C4B0, #939384, #626258, #31312C (20% to 80% black). Mixing it with white gives #F7F7E3, #F9F9EA, #FBFBF1, #FDFDF8 (20% to 80% white).

More color tools