Named color

Cornsilk

Cornsilk is a light and pastel yellow color with HEX #FFF8DC. According to Colors Encyclopedia, it has RGB 255, 248, 220, HSL 48, 100%, 93%, warm temperature, and is useful for web design, CSS color systems, and UI prototyping.

HEX #FFF8DC
RGB rgb(255, 248, 220)
HSL hsl(48 100% 93%)
CMYK cmyk(0, 3, 14, 0)
Luminance 0.9356
Contrast Black 19.71:1White 1.07:1

CSS Utilities

--color-cornsilk: #FFF8DC;
.bg-cornsilk { background-color: #FFF8DC; }
.text-cornsilk { color: #FFF8DC; }

Machine-readable data

Machine-Readable Color Data (JSON)

Perfect for CSS, design systems, automation, and AI ingestion.

AI-Ready Dataset v1.0.0
Luminance0.9356
Black text19.71:1AA Pass
White text1.07:1AA Fail
hexCanonical HEX value
rgbRed, green, blue channels
hslHue, saturation, lightness
cmykApproximate print conversion
wcagAA and AAA contrast options
harmoniesMathematical harmony sets
variantsGenerated tone variants
nearestColorsKnowledge graph neighbors
Download JSON Open API
Structured sections
Color systems
{
  "hex": "#FFF8DC",
  "rgb": [
    255,
    248,
    220
  ],
  "hsl": [
    48,
    100,
    93
  ],
  "cmyk": [
    0,
    3,
    14,
    0
  ],
  "luminance": 0.9356,
  "contrast": {
    "black": 19.71,
    "white": 1.07
  }
}
WCAG
{
  "AA": [
    "#000000",
    "#1A1A1A",
    "#36454F"
  ],
  "AAA": [
    "#000000",
    "#1A1A1A",
    "#36454F"
  ]
}
Harmonies
{
  "complementary": "#DBE2FF",
  "analogous": [
    "#FFE6DB",
    "#F4FFDB"
  ],
  "triadic": [
    "#DBFFF8",
    "#F8DBFF"
  ],
  "tetradic": [
    "#DBFFE6",
    "#DBE2FF",
    "#FFDBF4"
  ],
  "splitComplementary": [
    "#DBF4FF",
    "#E6DBFF"
  ],
  "monochromatic": [
    "#FFFFFF",
    "#FFF8DC",
    "#FFE680"
  ]
}
Variants
{
  "light": "#FFFFFF",
  "dark": "#FFE680",
  "saturated": "#FFF8DB",
  "desaturated": "#FBF6DF",
  "pastel": "#FFFFFF",
  "neon": "#FFFFFF"
}
Pairings
{
  "best": [
    "#000000",
    "#DBE2FF",
    "#FFE6DB",
    "#F4FFDB"
  ],
  "avoid": [
    "#FBF6DF",
    "#FFFFFF"
  ],
  "neutral": [
    "#1A1A1A",
    "#F5F5F5",
    "#E8E8E4"
  ],
  "highContrast": [
    "#000000"
  ],
  "lowContrast": [
    "#FFFFFF",
    "#FBF6DF"
  ]
}
Knowledge graph
{
  "nearestColors": [
    "light-yellow",
    "beige",
    "old-lace",
    "warm-white",
    "light-goldenrod-yellow"
  ],
  "generatedPalettes": [
    "cornsilk"
  ],
  "generatedComparisons": [
    "beige-vs-cornsilk",
    "cornsilk-vs-light-yellow"
  ],
  "relatedFamilies": [
    "/colors/by-family/yellow",
    "/colors/by-temperature/warm",
    "/colors/by-tone/light",
    "/colors/by-tone/pastel"
  ],
  "relatedTools": [
    "/harmonies/cornsilk",
    "/wcag/cornsilk",
    "/css/colors/cornsilk",
    "/hex/fff8dc"
  ],
  "semanticRelations": {
    "broader": [
      "/colors/by-family/yellow",
      "/colors/by-temperature/warm",
      "/colors/by-tone/light",
      "/colors/by-tone/pastel"
    ],
    "narrower": [
      "/palettes/cornsilk"
    ],
    "related": [
      "/colors/light-yellow",
      "/colors/beige",
      "/colors/old-lace",
      "/colors/warm-white",
      "/colors/light-goldenrod-yellow",
      "/compare/beige-vs-cornsilk",
      "/compare/cornsilk-vs-light-yellow",
      "/harmonies/cornsilk",
      "/wcag/cornsilk",
      "/css/colors/cornsilk",
      "/hex/fff8dc"
    ]
  }
}
Full JSON dataset
{
  "slug": "cornsilk",
  "name": "Cornsilk",
  "cssName": "cornsilk",
  "hex": "#FFF8DC",
  "family": "yellow",
  "temperature": "warm",
  "tone": [
    "light",
    "pastel"
  ],
  "uses": [
    "web design",
    "CSS color systems",
    "UI prototyping"
  ],
  "psychology": {
    "associations": [
      "context dependent"
    ],
    "contexts": [
      "web interfaces",
      "design systems",
      "technical color references"
    ],
    "avoidIn": [
      "claims that require brand or cultural specificity"
    ]
  },
  "aliases": [
    "cornsilk"
  ],
  "sourceType": "standard",
  "confidence": "high",
  "sourceUrl": "https://www.w3.org/TR/css-color-4/#named-colors",
  "origin": {
    "type": "css",
    "notes": "Standard CSS named color."
  },
  "reviewStatus": "auto",
  "editorialNotes": "Generated from CSS named color data and computed color-system properties.",
  "tags": [
    "yellow",
    "warm",
    "light",
    "pastel",
    "web-design",
    "css-color-systems",
    "ui-prototyping",
    "context-dependent"
  ],
  "popularity": 67,
  "rgb": [
    255,
    248,
    220
  ],
  "hsl": [
    48,
    100,
    93
  ],
  "cmyk": [
    0,
    3,
    14,
    0
  ],
  "luminance": 0.9356,
  "contrast": {
    "black": 19.71,
    "white": 1.07
  },
  "harmonies": {
    "complementary": "#DBE2FF",
    "analogous": [
      "#FFE6DB",
      "#F4FFDB"
    ],
    "triadic": [
      "#DBFFF8",
      "#F8DBFF"
    ],
    "tetradic": [
      "#DBFFE6",
      "#DBE2FF",
      "#FFDBF4"
    ],
    "splitComplementary": [
      "#DBF4FF",
      "#E6DBFF"
    ],
    "monochromatic": [
      "#FFFFFF",
      "#FFF8DC",
      "#FFE680"
    ]
  },
  "variants": {
    "light": "#FFFFFF",
    "dark": "#FFE680",
    "saturated": "#FFF8DB",
    "desaturated": "#FBF6DF",
    "pastel": "#FFFFFF",
    "neon": "#FFFFFF"
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  },
  "css": {
    "variable": "--color-cornsilk: #FFF8DC;",
    "utility": ".bg-cornsilk { background-color: #FFF8DC; }",
    "textUtility": ".text-cornsilk { color: #FFF8DC; }"
  },
  "nearestColors": [
    "light-yellow",
    "beige",
    "old-lace",
    "warm-white",
    "light-goldenrod-yellow"
  ],
  "generatedPalettes": [
    "cornsilk"
  ],
  "generatedComparisons": [
    "beige-vs-cornsilk",
    "cornsilk-vs-light-yellow"
  ],
  "relatedFamilies": [
    "/colors/by-family/yellow",
    "/colors/by-temperature/warm",
    "/colors/by-tone/light",
    "/colors/by-tone/pastel"
  ],
  "relatedTools": [
    "/harmonies/cornsilk",
    "/wcag/cornsilk",
    "/css/colors/cornsilk",
    "/hex/fff8dc"
  ],
  "semanticRelations": {
    "broader": [
      "/colors/by-family/yellow",
      "/colors/by-temperature/warm",
      "/colors/by-tone/light",
      "/colors/by-tone/pastel"
    ],
    "narrower": [
      "/palettes/cornsilk"
    ],
    "related": [
      "/colors/light-yellow",
      "/colors/beige",
      "/colors/old-lace",
      "/colors/warm-white",
      "/colors/light-goldenrod-yellow",
      "/compare/beige-vs-cornsilk",
      "/compare/cornsilk-vs-light-yellow",
      "/harmonies/cornsilk",
      "/wcag/cornsilk",
      "/css/colors/cornsilk",
      "/hex/fff8dc"
    ]
  },
  "pairings": {
    "best": [
      "#000000",
      "#DBE2FF",
      "#FFE6DB",
      "#F4FFDB"
    ],
    "avoid": [
      "#FBF6DF",
      "#FFFFFF"
    ],
    "neutral": [
      "#1A1A1A",
      "#F5F5F5",
      "#E8E8E4"
    ],
    "highContrast": [
      "#000000"
    ],
    "lowContrast": [
      "#FFFFFF",
      "#FBF6DF"
    ]
  }
}

Color meaning and use

About Cornsilk Color

Cornsilk sits in the yellow family with warm temperature and light and pastel visual character. Standard CSS named color.

Its common associations include context dependent, which makes it relevant for web interfaces and design systems. In design work, Cornsilk is most useful for web design, css color systems, and ui prototyping, especially when paired with black text for stronger contrast.

WCAG Accessibility

Contrast checks for Cornsilk against black and white text.

Black text19.71:1AA Pass
White text1.07:1AA Fail
AA text options#000000, #1A1A1A, #36454F
AAA text options#000000, #1A1A1A, #36454F

Similar Colors

Color Harmonies

#DBE2FF#DBE2FF
#FFE6DB#FFE6DB
#F4FFDB#F4FFDB
#DBFFF8#DBFFF8
#F8DBFF#F8DBFF

Variants

White#FFFFFF
#FFE680#FFE680
#FFF8DB#FFF8DB
#FBF6DF#FBF6DF
White#FFFFFF
White#FFFFFF

Pairings

Black#000000
#DBE2FF#DBE2FF
#FFE6DB#FFE6DB
#F4FFDB#F4FFDB
Matte Black#1A1A1A
White Smoke#F5F5F5