Skip to content

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.

Linen#FAF0E6

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

Color codes for Linen
CSS keywordlinen
HEX#FAF0E6
RGBrgb(250, 240, 230)
HSLhsl(30, 67%, 94%)
HWBhwb(30 90% 2%)
OKLCHoklch(96% 0.017 67.6)
CMYK (naive, no ICC profile)cmyk(0%, 4%, 8%, 2%)
Decimal16,445,670
Hue familyWhites 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on linen18.67:1PassPassPassPass98.0
White text on linen1.12:1FailFailFailFail0.0
Linen text on white1.12:1FailFailFailFail0.0
Linen text on black18.67:1PassPassPassPass−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)

  1. 5%
    #faf1e7
  2. 15%
    #fbf2ea
  3. 25%
    #fbf4ec
  4. 35%
    #fcf5ef
  5. 45%
    #fcf7f1
  6. 55%
    #fdf8f4
  7. 65%
    #fdfaf6
  8. 75%
    #fefbf9
  9. 85%
    #fefdfb
  10. 95%
    #fffefe

Shades (mixed with black)

  1. 5%
    #eee4db
  2. 15%
    #d5ccc4
  3. 25%
    #bcb4ad
  4. 35%
    #a39c96
  5. 45%
    #8a847f
  6. 55%
    #706c67
  7. 65%
    #585451
  8. 75%
    #3f3c3a
  9. 85%
    #262423
  10. 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.

Color harmonies
HarmonyRotationColor
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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
oldlace#fdf5e61.4
seashell#fff5ee1.6
antiquewhite#faebd72.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
olive-100#f4f4f01.5
taupe-100#f3f1f11.6
red-50#fef2f21.7

Code snippets

CSS
.element {
  color: linen;
  background-color: #faf0e6;
  border-color: rgb(250 240 230);
  outline-color: oklch(96% 0.017 67.6);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let linen = Color(red: 0.980, green: 0.941, blue: 0.902)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Linen = Color(0xFFFAF0E6)
Flutter
import 'package:flutter/material.dart';

const linen = Color(0xFFFAF0E6);
Android XML
<!-- 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.