Skip to content

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#F5F5DC

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

Color codes for Beige
CSS keywordbeige
HEX#F5F5DC
RGBrgb(245, 245, 220)
HSLhsl(60, 56%, 91%)
HWBhwb(60 86% 4%)
OKLCHoklch(96.4% 0.033 107)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 10%, 4%)
Decimal16,119,260
Hue familyWhites 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on beige18.97:1PassPassPassPass99.1
White text on beige1.10:1FailFailFailFail0.0
Beige text on white1.10:1FailFailFailFail0.0
Beige text on black18.97:1PassPassPassPass−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)

  1. 5%
    #f6f6de
  2. 15%
    #f7f7e1
  3. 25%
    #f8f8e5
  4. 35%
    #f9f9e8
  5. 45%
    #fafaec
  6. 55%
    #fbfbef
  7. 65%
    #fcfcf3
  8. 75%
    #fdfdf6
  9. 85%
    #fefefa
  10. 95%
    #fffffd

Shades (mixed with black)

  1. 5%
    #e9e9d1
  2. 15%
    #d0d0bb
  3. 25%
    #b8b8a5
  4. 35%
    #9f9f8f
  5. 45%
    #878779
  6. 55%
    #6e6e63
  7. 65%
    #56564d
  8. 75%
    #3d3d37
  9. 85%
    #252521
  10. 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.

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

Nearest CSS named colors
ColorHEXΔE OK
cornsilk#fff8dc1.6
oldlace#fdf5e61.8
papayawhip#ffefd51.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-100#ffedd42.2
lime-50#f7fee72.4
yellow-50#fefce82.5

Code snippets

CSS
.element {
  color: beige;
  background-color: #f5f5dc;
  border-color: rgb(245 245 220);
  outline-color: oklch(96.4% 0.033 107);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let beige = Color(red: 0.961, green: 0.961, blue: 0.863)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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