CSS named color
Beige #F5F5DC
Beige (CSS keyword beige) has the hex code #F5F5DC and the RGB value rgb(245, 245, 220): an off-white with a yellow tint.
Beige comes from the French word for undyed, natural wool. The CSS value is a pale yellowish off-white, lighter than most things people call beige in interiors or fashion.
Color codes for Beige
| CSS keyword | beige |
|---|---|
| HEX | #F5F5DC |
| RGB | rgb(245, 245, 220) |
| HSL | hsl(60, 56%, 91%) |
| HWB | hwb(60 86% 4%) |
| OKLCH | oklch(96.4% 0.033 107) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 10%, 4%) |
| Decimal | 16,119,260 |
| Hue family | Whites and off-whites |
Contrast and accessibility
On beige, black text has a contrast ratio of 18.97:1 and passes AAA at any text size; white text reaches 1.10: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 beige | 18.97:1 | Pass | Pass | Pass | Pass | 99.1 |
| White text on beige | 1.10:1 | Fail | Fail | Fail | Fail | 0.0 |
| Beige text on white | 1.10:1 | Fail | Fail | Fail | Fail | 0.0 |
| Beige text on black | 18.97:1 | Pass | Pass | Pass | Pass | −100.2 |
Tints and shades
Each step mixes beige with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, beige, white 25%) in CSS.
Tints (mixed with white)
- 5%
#f6f6de - 15%
#f7f7e1 - 25%
#f8f8e5 - 35%
#f9f9e8 - 45%
#fafaec - 55%
#fbfbef - 65%
#fcfcf3 - 75%
#fdfdf6 - 85%
#fefefa - 95%
#fffffd
Shades (mixed with black)
- 5%
#e9e9d1 - 15%
#d0d0bb - 25%
#b8b8a5 - 35%
#9f9f8f - 45%
#878779 - 55%
#6e6e63 - 65%
#56564d - 75%
#3d3d37 - 85%
#252521 - 95%
#0c0c0b
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, beige's complementary color is #F1F0FF (close to aliceblue), its analogous colors are #FFF1DB and #E9F9E3, and its triadic partners are #DDF8FF and #FFEBF7. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #f1f0ff |
| Analogous | −30°, +30° | #fff1db#e9f9e3 |
| Triadic | +120°, +240° | #ddf8ff#ffebf7 |
| Split-complementary | +150°, +210° | #e5f4ff#fcedff |
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?
Beige is a warm color: its hue is 60° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
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
| Color | HEX | ΔE OK |
|---|---|---|
| cornsilk | #fff8dc | 1.6 |
| oldlace | #fdf5e6 | 1.8 |
| papayawhip | #ffefd5 | 1.8 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| orange-100 | #ffedd4 | 2.2 |
| lime-50 | #f7fee7 | 2.4 |
| yellow-50 | #fefce8 | 2.5 |
Code snippets
.element {
color: beige;
background-color: #f5f5dc;
border-color: rgb(245 245 220);
outline-color: oklch(96.4% 0.033 107);
}<div class="bg-[#f5f5dc] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-beige: #f5f5dc;
}
/* then use bg-beige, text-beige, border-beige */import SwiftUI
extension Color {
static let beige = Color(red: 0.961, green: 0.961, blue: 0.863)
}import androidx.compose.ui.graphics.Color
val Beige = Color(0xFFF5F5DC)import 'package:flutter/material.dart';
const beige = Color(0xFFF5F5DC);<!-- res/values/colors.xml -->
<color name="beige">#F5F5DC</color>Frequently asked questions
- What is the hex code for beige?
- The hex code for beige is #F5F5DC. The same color is rgb(245, 245, 220), hsl(60, 56%, 91%) and oklch(96.4% 0.033 107), and in CSS you can also write the keyword beige directly.
- Is beige a warm or cool color?
- Beige is a warm color: its hue is 60° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
- What colors go with beige?
- Rotating the hue in OKLCH while keeping lightness and chroma, beige's complementary color is #F1F0FF (close to aliceblue), its analogous colors are #FFF1DB and #E9F9E3, and its triadic partners are #DDF8FF and #FFEBF7. For text on top, black gives the higher contrast.
- Can you use white text on beige?
- White text on beige has a contrast ratio of 1.10:1, which fails AA even for large text under WCAG 2.2. Black text reaches 18.97:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 99.1 for black.
- What is the RGB value of beige?
- Beige is rgb(245, 245, 220): red 245, green 245 and blue 220 on the 0 to 255 scale, or 96.1%, 96.1% and 86.3%. As a decimal integer it is 16119260.
Last reviewed by Arielton Oberek.