Photo in the color Buff
Pictured: Buff
rgb(240, 220, 130)
#F0DC82

Buff #F0DC82 RGB Color Code

Buff (#F0DC82) is a moderately saturated, very light yellow. In RGB it is made of 94% red, 86% green and 51% blue (R 240, G 220, B 130). The red channel is the strongest. In HSL it has a hue of 49°, 79% saturation and 73% lightness. Its relative luminance is 0.713, so black text is easier to read on top of it. For print, a rough CMYK match is 0% cyan, 8% magenta, 46% yellow and 6% black. Check it against your printer's ICC profile before you print. It is a warm color. It goes well with cool blues and greens for contrast. For a matching look, use nearby warm tones.

Open in color picker

Buff color codes

#F0DC82 in every common color format. Click a value to copy it.

FormatValueNotesCopy
HEX #F0DC82 Valid CSS
RGB rgb(240, 220, 130) Valid CSS
HSL hsl(49, 79%, 73%) Valid CSS
HSV / HSB hsv(49, 46%, 94%) Not a CSS format
HWB hwb(49 51% 6%) Valid CSS
CMYK cmyk(0%, 8%, 46%, 6%) Approximate (no ICC profile)
OKLCH oklch(89.18% 0.1129 97.15) Valid CSS
OKLab oklab(89.18% -0.0141 0.112) Valid CSS
CIELAB lab(87.99% -1.55 46.59) D50, as in CSS
CIELCH lch(87.99% 46.62 91.91) Valid CSS
Display P3 color(display-p3 0.9279 0.8655 0.5563) Valid CSS
XYZ (D65) color(xyz-d65 0.6556 0.7132 0.3143) Valid CSS
Decimal 15785090 Integer (0xRRGGBB)

CMYK here is a rough screen match without an ICC profile. See CMYK and print. Relative luminance: 0.7132. Nearest web-safe color: #FFCC99.

Mix Buff with other colors

See what #F0DC82 makes with red paint, under a green light, printed with cyan ink and in a digital blend with blue. Click a picture to change the colors and amounts in the color mixer.

Use Buff in your code

Ready to paste into CSS, Sass, Tailwind, iOS, Android and Flutter. Click the icon to copy a line.

WhereCodeCopy
CSS variable--buff: #F0DC82;
Sass variable$buff: #F0DC82;
Tailwind CSS v4@theme { --color-buff: #F0DC82; }
Tailwind CSS v3 configcolors: { 'buff': '#F0DC82' }
SwiftUIColor(red: 0.941, green: 0.863, blue: 0.51)
UIKitUIColor(red: 0.941, green: 0.863, blue: 0.51, alpha: 1)
Android XML<color name="buff">#FFF0DC82</color>
Flutter and Jetpack ComposeColor(0xFFF0DC82)

Accessibility and contrast

Black text works best on #F0DC82 (15.26:1, AAA). Here is how #F0DC82 does as a text color:

Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
1.38:1 on white
APCA Lc 18
Fails AATry #89760F
Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
15.26:1 on black
APCA Lc -85
AAA

Check this color against any background in the contrast checker. WCAG ratios and APCA Lc values measure different things, so one can't stand in for the other. Learn more.

How people with color blindness see Buff

#F0DC82 next to its complement and its two triadic colors, as seen with each type of color blindness.

  • Normal visionhow most people see it
  • Protanopiano red cones, about 1% of men
  • Deuteranopiano green cones, the most common type
  • Tritanopiano blue cones, very rare
  • Achromatopsiano color at all, very rare

#F0DC82 stays easy to tell apart from its complement and triadic colors for the common types of color blindness. Try your own colors in the color blindness simulator.

About the color Buff

Named after soldiers' leather

Buff takes its name from buff leather, a soft, oiled leather that was first made from buffalo hide. Nobody is sure which animal the word buffalo meant back then. In the 1600s, soldiers wore thick coats of this leather as light armor, and these were called buff coats.

The first known use of buff as a color name in English was in 1686. The London Gazette described a uniform as "a Red Coat with a Buff-colour'd lining."

Buff and blue

George Washington's Continental Army wore blue coats with buff trim. The pair lives on in the state flags of Delaware and New Jersey and in the colors of George Washington University. The word buff for a fan also has a link to the color. It comes from New York volunteer firemen of the 1800s, whose uniforms had buff facings.

Which buff is this one?

Sources give quite different codes for buff. Our #F0DC82 is a pale, yellow version. It is the Buff from PWG 5101.1, a list of paper color names from the Printer Working Group, shown in the Wikipedia article on X11 color names. The Wikipedia article on buff uses a darker, more orange #E0AB76. The buff sample in Maerz and Paul's 1930 color dictionary is #FFC680. Close relatives on this site are ecru and khaki.

Buff in a user interface

A sample app screen with #F0DC82 as the main color, on a light and a dark theme.

Light theme

Dark theme

Buttons and bars use #F0DC82 as it is. On the light theme, #F0DC82 is too hard to read as text (1.38:1), so links, the badge and outline text use #89760F there (4.50:1). Build a full color scheme around it in the UI color preview.

Color harmonies for Buff

These schemes turn the hue of #F0DC82 around the color wheel. Each swatch links to its own page.

Complementary

Two colors on opposite sides of the wheel. This gives the most contrast.

Open palette

Analogous

Hues that sit next to each other and look good together.

Open palette

Triadic

Three hues spaced evenly around the wheel. Bold, but still balanced.

Open palette

Split complementary

A base color plus the two hues on each side of its opposite. Strong contrast that clashes less.

Open palette

Tetradic (rectangle)

Two pairs of opposite colors. Let one color lead and use the others less.

Open palette

Square

Four hues 90° apart, spread evenly around the wheel.

Open palette

Monochromatic

One hue at different levels of lightness and saturation.

Open palette

Gradients with Buff

Four CSS gradients made from #F0DC82. Copy the code, or open one in the gradient generator to change it.

Soft tint

From a pale tint to the full color.

background: linear-gradient(90deg, #FCF8E7, #F0DC82);

Edit in the gradient generator

Deep shade

The color fading into a dark shade.

background: linear-gradient(180deg, #F0DC82, #433C20);

Edit in the gradient generator

Analogous

Its two neighbors on the color wheel.

background: linear-gradient(135deg, #F0A582, #F0DC82, #CDF082);

Edit in the gradient generator

Triadic

A bold blend with a triadic color, through a clean middle.

background: linear-gradient(135deg, #F0DC82, #C1E7B2, #82F0DC);

Edit in the gradient generator

Shades, tints and tones of Buff

Shades are darker, tints are lighter and tones are grayer. We make them in OKLCH so the steps look even. Hover a step to see its code, or click it to open it.

Design system scale (50 to 950)

Buff sits at step 200. Export the full scale as CSS variables or Tailwind tokens from the picker.

  1. 50
    FEF8DA
  2. 100
    F6EEC7
  3. 200
    F0DC82
  4. 300
    D1C27B
  5. 400
    B6A34F
  6. 500
    998628
  7. 600
    7E6B00
  8. 700
    645500
  9. 800
    4E4200
  10. 900
    393000
  11. 950
    221D04

Closest RAL, Tailwind and CSS colors

The nearest match to #F0DC82 in three color systems that designers and builders use.

ΔE is the distance in OKLab: under 2 is hard to see, over 10 is a clearly different color. Browse all RAL colors, the Tailwind palette or the 148 CSS color names. RAL values on screens are only a guide, so check a real color chart before you order paint.

The named colors that look closest to this one (ΔE in OKLab). Browse all shades of yellow or search the color library.