Skip to content

Buff (#F0DC82)

The hex code for Buff is #F0DC82. It is rgb(240, 220, 130) in RGB, hsl(49, 79%, 73%) in HSL, and about cmyk(0%, 8%, 46%, 6%) in CMYK — a light yellow. Black text is the more readable choice on this background.

#F0DC82
HEX#F0DC82
RGBrgb(240, 220, 130)
HSLhsl(49, 79%, 73%)
HSVhsv(49, 46%, 94%)
CMYKcmyk(0%, 8%, 46%, 6%)
OKLCHoklch(89.2% 0.113 97.2)
LABlab(87.99% -1.55 46.59)
LCHlch(87.99% 46.62 91.91)

Colors Closest to Buff

Buff is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every yellow in the library.

#F0DC82 Channel Values

How Buff breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 240 · G 220 · B 1308-bit channels as sent to the display
HSLH 49° · S 79% · L 73%Easiest model for building lighter and darker variants
HSVH 49° · S 46% · V 94%Matches the picker in most design tools
CMYKC 0% · M 8% · Y 46% · K 6%Approximate ink mix; confirm with an ICC profile before printing
Luminance1.38:1 vs white · 15.26:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Buff background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text1.38:1AA normal AA large AAA normal
TextBlack text15.26:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #F0DC82 in the contrast checker.

Colors That Go With Buff

Pairings derived from color-wheel relationships. The complementary color sits opposite Buff; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Buff

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #F0DC82.

How Buff Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#F0DC82
Protanopia#E0E082
Protanomaly#E6DE82
Deuteranopia#E3E381
Deuteranomaly#E8E081
Tritanopia#F7D3D3
Tritanomaly#F5D7B8
Achromatopsia#DCDCDC

Test a full palette in the color blindness simulator.

Using #F0DC82 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--buff: #F0DC82;
CSS backgroundbackground-color: #F0DC82;
Tailwind configcolors: { 'buff': '#F0DC82' }
SwiftUIColor(red: 0.941, green: 0.863, blue: 0.510)
Android XML<color name="buff">#F0DC82</color>
SVG fillfill="#F0DC82"

More Yellow Colors

Buff sits in the yellowfamily. These are its neighbours across that family's full range, each with its own breakdown.

#F0DC82 Frequently Asked Questions

What is the hex code for Buff?

The hex code for Buff is #F0DC82. That is rgb(240, 220, 130) in RGB, hsl(49, 79%, 73%) in HSL, and approximately cmyk(0%, 8%, 46%, 6%) in CMYK.

What is the RGB value of #F0DC82?

#F0DC82 is rgb(240, 220, 130) — red 240, green 220, and blue 130 on the 0-255 scale.

What is the CMYK value of #F0DC82?

#F0DC82 converts to approximately cmyk(0%, 8%, 46%, 6%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #F0DC82 be black or white?

Black text is the more readable choice. #F0DC82 scores 1.38:1 against white and 15.26:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #F0DC82 as a CSS color keyword?

No. #F0DC82 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is khaki (#F0E68C) at a CIE76 distance of 5.09, which is clearly related but distinguishable side by side.

Open Buff in a Tool

Keep exploring: every yellow in the color library, the guide to shades of yellow, or the full color library.