Free Accessible CSS Gradient Generator

← All Colors
#F5DEB3 Wheat

Wheat Hex Code #F5DEB3

Wheat is a very light, moderate brown with the hex code #F5DEB3. In RGB it is 245, 222, 179, and in HSL it is 39°, 77%, 83%. It is one of the 148 named colors in CSS, so you can write “wheat” instead of the hex code.

HEX
#F5DEB3
RGB
rgb(245, 222, 179)
HSL
hsl(39, 77%, 83%)
HSV
hsv(39°, 27%, 96%)
CMYK
cmyk(0%, 9%, 27%, 4%)
CSS name
wheat

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

About Wheat

On a white background Wheat has a contrast ratio of 1.31:1 (Fail), and on black 15.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.

Brown is earthy and warm. It suits natural, rustic and food-related designs, and works as a softer, more grounded alternative to black.

Shades and tints of Wheat

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

Color harmonies for Wheat

These schemes are calculated from Wheat 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 Wheat is #B3B3F5, close to the named color Plum.

Wheat 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 Wheat scores against white and black.

Contrast of Wheat with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 1.31:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 15.98:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Wheat1.31:1
Aa Black text on Wheat15.98:1

Wheat and color blindness

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

Protanopia #E9DDB0

Wheat looks almost the same.

Deuteranopia #EFE3B4

Wheat looks almost the same.

Tritanopia #FFD6D2

Wheat changes noticeably.

Achromatopsia #E0E0E0

Wheat changes noticeably.

Gradients with Wheat

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

Wheat to a lighter tint

background: linear-gradient(135deg, #f5deb3 0%, #fbf2e1 100%);

Wheat to its analogous neighbour

background: linear-gradient(135deg, #f5deb3 0%, #ebf5b3 100%);

Wheat to its complement

background: linear-gradient(135deg, #f5deb3 0%, #b3caf5 100%);

Colors similar to Wheat

How each close match differs from Wheat.

More brown colors →

Use Wheat in code

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

/* Tailwind v4 theme color */
@theme {
  --color-wheat: #f5deb3;
}

Wheat questions

What is the hex code for Wheat?

The hex code for Wheat is #F5DEB3. In RGB that is rgb(245, 222, 179), and in HSL it is hsl(39, 77%, 83%).

What is the complementary color of Wheat?

On the RGB (screen) color wheel, the complement of Wheat is #B3CAF5, which is close to Light Steel Blue. On the artist’s RYB wheel it is #B3B3F5, close to Plum.

Should I use white or black text on Wheat?

Black text. It has a contrast ratio of 15.98:1 against Wheat, which is WCAG AAA. The other option scores 1.31:1.

Is Wheat accessible as a text color on white?

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

What are darker and lighter shades of Wheat?

Mixing Wheat with black gives #C4B28F, #93856B, #625948, #312C24 (20% to 80% black). Mixing it with white gives #F7E5C2, #F9EBD1, #FBF2E1, #FDF8F0 (20% to 80% white).

More color tools