Free Accessible CSS Gradient Generator

← All Colors
#FAF0E6 Linen

Linen Hex Code #FAF0E6

Linen is a very light, muted off-white with the hex code #FAF0E6. In RGB it is 250, 240, 230, and in HSL it is 30°, 67%, 94%. It is one of the 148 named colors in CSS, so you can write “linen” instead of the hex code.

HEX
#FAF0E6
RGB
rgb(250, 240, 230)
HSL
hsl(30, 67%, 94%)
HSV
hsv(30°, 8%, 98%)
CMYK
cmyk(0%, 4%, 8%, 2%)
CSS name
linen

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

About Linen

On a white background Linen has a contrast ratio of 1.12:1 (Fail), and on black 18.67: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 Linen

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

Color harmonies for Linen

These schemes are calculated from Linen 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 Linen is #E6EBFA, close to the named color Lavender.

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

Contrast of Linen with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 1.12:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 18.67:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Linen1.12:1
Aa Black text on Linen18.67:1

Linen and color blindness

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

Protanopia #F4F0E5

Linen looks almost the same.

Deuteranopia #F6F2E6

Linen looks almost the same.

Tritanopia #FEEEED

Linen looks almost the same.

Achromatopsia #F1F1F1

Linen shifts slightly.

Gradients with Linen

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

Linen to a lighter tint

background: linear-gradient(135deg, #faf0e6 0%, #fdf9f5 100%);

Linen to its analogous neighbour

background: linear-gradient(135deg, #faf0e6 0%, #fafae6 100%);

Linen to its complement

background: linear-gradient(135deg, #faf0e6 0%, #e6f0fa 100%);

Colors similar to Linen

How each close match differs from Linen.

More white & cream colors →

Use Linen in code

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

/* Tailwind v4 theme color */
@theme {
  --color-linen: #faf0e6;
}

Linen questions

What is the hex code for Linen?

The hex code for Linen is #FAF0E6. In RGB that is rgb(250, 240, 230), and in HSL it is hsl(30, 67%, 94%).

What is the complementary color of Linen?

On the RGB (screen) color wheel, the complement of Linen is #E6F0FA, which is close to Alice Blue. On the artist’s RYB wheel it is #E6EBFA, close to Lavender.

Should I use white or black text on Linen?

Black text. It has a contrast ratio of 18.67:1 against Linen, which is WCAG AAA. The other option scores 1.12:1.

Is Linen accessible as a text color on white?

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

What are darker and lighter shades of Linen?

Mixing Linen with black gives #C8C0B8, #96908A, #64605C, #32302E (20% to 80% black). Mixing it with white gives #FBF3EB, #FCF6F0, #FDF9F5, #FEFCFA (20% to 80% white).

More color tools