CSS named color
Linen #FAF0E6
Linen (CSS keyword linen) has the hex code #FAF0E6 and the RGB value rgb(250, 240, 230): an off-white with a beige tint.
Named after the natural color of undyed linen fabric: a warm off-white with a faint peach tint. Popular as an alternative to pure white for page backgrounds.
Color codes for Linen
| CSS keyword | linen |
|---|---|
| HEX | #FAF0E6 |
| RGB | rgb(250, 240, 230) |
| HSL | hsl(30, 67%, 94%) |
| HWB | hwb(30 90% 2%) |
| OKLCH | oklch(96% 0.017 67.6) |
| CMYK (naive, no ICC profile) | cmyk(0%, 4%, 8%, 2%) |
| Decimal | 16,445,670 |
| Hue family | Whites and off-whites |
Contrast and accessibility
On linen, black text has a contrast ratio of 18.67:1 and passes AAA at any text size; white text reaches 1.12:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on linen | 18.67:1 | Pass | Pass | Pass | Pass | 98.0 |
| White text on linen | 1.12:1 | Fail | Fail | Fail | Fail | 0.0 |
| Linen text on white | 1.12:1 | Fail | Fail | Fail | Fail | 0.0 |
| Linen text on black | 18.67:1 | Pass | Pass | Pass | Pass | −99.0 |
Tints and shades
Each step mixes linen with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, linen, white 25%) in CSS.
Tints (mixed with white)
- 5%
#faf1e7 - 15%
#fbf2ea - 25%
#fbf4ec - 35%
#fcf5ef - 45%
#fcf7f1 - 55%
#fdf8f4 - 65%
#fdfaf6 - 75%
#fefbf9 - 85%
#fefdfb - 95%
#fffefe
Shades (mixed with black)
- 5%
#eee4db - 15%
#d5ccc4 - 25%
#bcb4ad - 35%
#a39c96 - 45%
#8a847f - 55%
#706c67 - 65%
#585451 - 75%
#3f3c3a - 85%
#262423 - 95%
#0d0c0c
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, linen's complementary color is #E9F3FD (close to aliceblue), its analogous colors are #FDEEEA and #F5F2E5, and its triadic partners are #E6F6F4 and #F5EFFB. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #e9f3fd |
| Analogous | −30°, +30° | #fdeeea#f5f2e5 |
| Triadic | +120°, +240° | #e6f6f4#f5effb |
| Split-complementary | +150°, +210° | #e6f5fa#eff1fe |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Linen is close to neutral: its OKLCH chroma is only 0.017, so its temperature comes from context. The faint 30° hue gives it a slightly warm cast.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
.element {
color: linen;
background-color: #faf0e6;
border-color: rgb(250 240 230);
outline-color: oklch(96% 0.017 67.6);
}<div class="bg-[#faf0e6] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-linen: #faf0e6;
}
/* then use bg-linen, text-linen, border-linen */import SwiftUI
extension Color {
static let linen = Color(red: 0.980, green: 0.941, blue: 0.902)
}import androidx.compose.ui.graphics.Color
val Linen = Color(0xFFFAF0E6)import 'package:flutter/material.dart';
const linen = Color(0xFFFAF0E6);<!-- res/values/colors.xml -->
<color name="linen">#FAF0E6</color>Frequently asked questions
- What is the hex code for linen?
- The hex code for linen is #FAF0E6. The same color is rgb(250, 240, 230), hsl(30, 67%, 94%) and oklch(96% 0.017 67.6), and in CSS you can also write the keyword linen directly.
- Is linen a warm or cool color?
- Linen is close to neutral: its OKLCH chroma is only 0.017, so its temperature comes from context. The faint 30° hue gives it a slightly warm cast.
- What colors go with linen?
- Rotating the hue in OKLCH while keeping lightness and chroma, linen's complementary color is #E9F3FD (close to aliceblue), its analogous colors are #FDEEEA and #F5F2E5, and its triadic partners are #E6F6F4 and #F5EFFB. For text on top, black gives the higher contrast.
- Can you use white text on linen?
- White text on linen has a contrast ratio of 1.12:1, which fails AA even for large text under WCAG 2.2. Black text reaches 18.67:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 98.0 for black.
- What is the RGB value of linen?
- Linen is rgb(250, 240, 230): red 250, green 240 and blue 230 on the 0 to 255 scale, or 98.0%, 94.1% and 90.2%. As a decimal integer it is 16445670.
Last reviewed by Arielton Oberek.