Cornsilk (#FFF8DC)

HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.

Preview

Sample Text
This is how text may look on this color.
Best text color: #000000
Contrast vs white: 1.07:1 — vs black: 19.71:1

Color values

  • HEX #FFF8DC
  • RGB rgb(255, 248, 220)
  • HSL hsl(48, 100%, 93%)
  • CMYK cmyk( 0, 3, 14, 0 )
  • Websafe #FFFFCC

Tags

Tip: tags are heuristic suggestions (helpful for browsing and inspiration).

Color Harmonies

Colors that pair well with #FFF8DC based on color theory relationships.

Complementary

The color directly opposite on the color wheel — creates maximum contrast and vibrance.

Cornsilk
#FFF8DC Base
#DCE3FF
Analogous

Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.

Cornsilk
#FFF8DC Base
#FFE7DC
#F5FFDC
Triadic

Three colors equally spaced 120° apart — bold, balanced, and visually rich.

Cornsilk
#FFF8DC Base
#DCFFF8
#F8DCFF
Split-Complementary

Two colors flanking the complement — high contrast with less tension than full complementary.

Cornsilk
#FFF8DC Base
#DCF5FF
#E7DCFF
Tetradic (Square)

Four colors at 90° intervals — rich variety, best when one color dominates.

Cornsilk
#FFF8DC Base
#DCFFE7
#DCE3FF
#FFDCF5
Monochromatic

Shades and tints of the same hue — cohesive, elegant, and easy to work with.

Cornsilk
#FFF8DC Base
#FFD943
#FFE990
#FFF0B3
#FFFAE6
Shades & Tints

Darker shades and lighter tints of Cornsilk, generated by adjusting lightness while keeping the same hue and saturation.

Shades (darker)

#1A1400
#735C00
#CDA400
#FFD428
#FFE682
Cornsilk #FFF8DC Base
#FFF8DE
#FFF9E0
#FFF9E2
#FFFAE4
#FFFAE6
CSS & SCSS Snippets

Ready-to-use code snippets for #FFF8DC. Click the copy button to copy any snippet to your clipboard.

CSS Properties
/* Background */
.element {
    background-color: #FFF8DC;
}

/* Text */
.element {
    color: #FFF8DC;
}

/* Border */
.element {
    border: 1px solid #FFF8DC;
}
CSS Gradient
/* Linear gradient to complementary */
.element {
    background: linear-gradient(
        to right,
        #FFF8DC,
        #DCE3FF
    );
}

/* Radial gradient */
.element {
    background: radial-gradient(
        circle,
        #FFF8DC,
        #DCE3FF
    );
}
SCSS Variable
// SCSS variable
$cornsilk: #FFF8DC;

// With RGB channels (useful for rgba() usage)
$cornsilk-r: 255;
$cornsilk-g: 248;
$cornsilk-b: 220;

// Usage
.element {
    background-color: $cornsilk;
    color: rgba($cornsilk-r, $cornsilk-g, $cornsilk-b, 0.8);
}
Color Blindness Simulation

How Cornsilk appears to people with different types of color vision deficiency.

Normal Vision #FFF8DC How the color appears with full color vision.
Deuteranopia #FAFADC Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
Protanopia #F9F9DC Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
Tritanopia #FFF5F5 Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
Achromatopsia #F8F8F8 Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
Similar Named Colors

The closest named colors to Cornsilk ranked by perceptual difference (Delta-E 2000 — lower = more similar).

Cornsilk #FFF8DC Base
Beige #F5F5DC ΔE 3.11
Light Yellow #FFFFE0 ΔE 3.42
Eggshell #F0EAD6 ΔE 3.87
Cosmic Latte #FFF8E7 ΔE 3.96

How to use this color

  1. Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
  2. Use CMYK when preparing print assets (posters, packaging, brochures).
  3. Check contrast before using it for text or important UI elements.