#FFF8DC color (cornsilk)

#FFF8DC is rgb(255, 248, 220) in RGB and hsl(48, 100%, 93%) in HSL. It is exactly the CSS color cornsilk. Use black text on it (contrast 19.71:1).

#FFF8DCcornsilk
HEX#FFF8DC
RGBrgb(255, 248, 220)
RGB percentrgb(100%, 97.3%, 86.3%)
HSLhsl(48, 100%, 93%)
HSV / HSBhsv(48, 14%, 100%)
CMYKcmyk(0%, 3%, 14%, 0%)
CIELAB (D65)lab(97.5 -2.2 14.3)

Edit in the color converter → · Check contrast → · Shades →

About #FFF8DC

#FFF8DC is a very pale, vivid amber with a hue angle of 48°. It belongs to the yellow family and reads as a warm color. In the RGB model red is the strongest channel at 255 (100%) and blue the weakest at 220 (86%). Colors like this are typically used for page backgrounds, cards and subtle section fills.

Color conversions

HEX#FFF8DC
RGBrgb(255, 248, 220)
RGB percentrgb(100%, 97.3%, 86.3%)
HSLhsl(48, 100%, 93%)
HSV / HSBhsv(48, 14%, 100%)
CMYKcmyk(0%, 3%, 14%, 0%)
CIELAB (D65)lab(97.5 -2.2 14.3)
Decimal16775388
Binary11111111 11111000 11011100

HEX FF F8 DC → 255, 248, 220 (each pair is a base-16 number: F×16 + F = 255)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #FFF8DC

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #FFF8DCRatioAA normalAA largeAAA normalAAA large
White text1.07:1FailFailFailFail
Black text19.71:1PassPassPassPass
White text on #FFF8DC
Black text on #FFF8DC
#FFF8DC text on white
#FFF8DC text on black

Relative luminance is 0.9356 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#fef6da

Deuteranopia
#fff9dd

Tritanopia
#fff4f0

Achromatopsia
#f8f8f8

People with red–green color blindness see this color almost unchanged (ΔE 0.5 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
cornsilk#fff8dc0
beige#f5f5dc3.1
lightyellow#ffffe03.4
papayawhip#ffefd54.6

CSS

.element {
  color: #fff8dc;
  background-color: rgb(255, 248, 220);
  border: 1px solid hsl(48, 100%, 93%);
  box-shadow: 0 2px 8px rgb(255 248 220 / 50%);
}
:root { --brand: #fff8dc; }

Frequently asked questions

What color is #FFF8DC?
A very pale vivid amber in the yellow family. Closest CSS name: cornsilk.
What is #FFF8DC in RGB?
rgb(255, 248, 220): red 255, green 248, blue 220.
What is the complementary color of #FFF8DC?
#DCE3FF, found by rotating the hue 180°.