Tints & Shades
50
100
200
300
400
500
600
700
800
900
Scale from white (50) through Cornsilk (500) to black (900), interpolated in Lab color space.
Color Values
- HEX
- #FFF8DC
- RGB
- rgb(255, 248, 220)
- HSL
- hsl(48, 100%, 93%)
- OKLCH
- oklch(0.977 0.037 95)
- CMYK
- cmyk(0%, 3%, 14%, 0%)
--color-cornsilkbg-[#FFF8DC]Accessibility
Score: 48/100On White (#FFF)
1.07:1
On Black (#000)
19.71:1
On Light Gray (#F5F5F5)
1.02:1
Best text color on this background:
Design Applications
background-color: #FFF8DC
color: #FFF8DC
bg-[#FFF8DC] text-[#000000]
border-left: 4px solid #FFF8DC
Color Harmonies
Complementary
Ultramarine
#4166F5
Split-Complementary
Similar Colors
Color Meaning & Psychology
Yellow is the most luminous color in the visible spectrum — the color our eyes detect first and at the greatest distance. It stimulates mental activity, promotes optimism, and conveys clarity. However, yellow is also the most fatiguing for the human eye at extended exposure, and pure yellow text on white fails all accessibility standards. In design, yellow works best as an accent or background for dark text. Golden yellows signal warmth and achievement; cool lemons feel fresh and modern. Yellow is the universal color of caution — from traffic lights to hazard tape. As a very light tint, it carries the lightness and openness of its hue family while remaining gentle enough for backgrounds, subtle highlights, and delicate UI elements.
Industry Usage
Common contexts and industries where Cornsilk is applied in professional design.
- Taxi and transportation services
- Construction and heavy machinery
- Children's education products and toys
- Fast food and energy-focused brands
- Caution and safety signage
- Summer and outdoor lifestyle brands
- Optimistic lifestyle and wellness brands
- Creative agencies emphasizing ideas
Accessibility Considerations
Normal Text
Fails AA
4.5:1 minimum required
Large Text
Fails AA Large
3:1 minimum required
UI Components
Check contrast
3:1 for non-text UI
Cornsilk is a light color. Use black (#000000) text on top of it for maximum readability (19.71:1). Avoid white text on this background.
CSS & Code Examples
Background
background-color: #FFF8DC;Text
color: #FFF8DC;Border
border: 2px solid #FFF8DC;Box Shadow
box-shadow: 0 4px 20px #FFF8DC40;Gradient
background: linear-gradient(135deg, #FFF8DC, #ffffff);Tailwind-style
--color-cornsilk: #FFF8DC;Tailwind CSS Utilities
Use arbitrary value syntax in Tailwind CSS to apply Cornsilk without a custom config.
Background
bg-[#FFF8DC]Text
text-[#FFF8DC]Border
border-[#FFF8DC]Ring
ring-[#FFF8DC]Fill
fill-[#FFF8DC]From (gradient)
from-[#FFF8DC]Via (gradient)
via-[#FFF8DC]To (gradient)
to-[#FFF8DC]Design Tokens
Ready-to-use Cornsilk design token in CSS custom properties, SCSS, Tailwind v3/v4, and JSON formats.
CSS Custom Properties
:root {
--color-cornsilk: #FFF8DC;
--color-cornsilk-rgb: 255, 248, 220;
--color-cornsilk-hsl: 48, 100%, 93%;
}SCSS Variables
$color-cornsilk: #FFF8DC; $color-cornsilk-rgb: 255, 248, 220; $color-cornsilk-hsl: 48, 100%, 93%;
Tailwind v3 Config
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'cornsilk': '#FFF8DC',
},
},
},
};Tailwind v4 (@theme)
/* tailwind.css */
@theme {
--color-cornsilk: #FFF8DC;
}JSON Design Token (W3C format)
{
"cornsilk": {
"value": "#FFF8DC",
"type": "color",
"description": "Cornsilk — #FFF8DC"
}
}More yellow colors
View all →What Does Cornsilk Mean? Color Psychology & Cultural Symbolism
Of all the warm hues, yellow is the most cognitively active—it stimulates the nervous system, enhances mental activity, and signals alertness. Cornsilk channels this quality into clarity: a response that's less about instinct than about activated clarity.
- Across color psychology research, yellow consistently tests high for "optimism" associations, making Cornsilk a reliable vehicle for clarity in cross-demographic audiences.
- Brand designers draw on yellow-family tones to project approachability and energy—values that Cornsilk communicates in a pale key.
- At 100% saturation, Cornsilk reads as vivid—Pure vivid yellow is the highest-chroma color the human eye perceives—it cannot be ignored and is physiologically stimulating, even more so than red in some attention research.
- Cornsilk's pale lightness (93%) shifts its psychological register: Pale yellow and champagne tones feel warm, neutral, and almost white—excellent for backgrounds, subtle warmth in neutral palettes, and understated accents.
Use Cornsilk as a declaration of optimism. In a palette that leads with it, everything else feels deliberate and alive.
How to Use Cornsilk in Design: Applications, Pairings & Best Practices
Designers who use Cornsilk effectively treat it like a spotlight: small, directed applications that create energy and focus without overwhelming the visual system.
- Avoid: body text on white (extremely poor contrast), luxury positioning (gold is the exception), and clinical or medical contexts where precision and calm are paramount.
- Color harmonies: Cornsilk's complementary color creates a high-energy split ideal for promotional design; its analogous palette (±30° hue) builds cohesive, monochromatic sophistication.
- Proportional use: Cornsilk's vivid saturation (100%) means small applications—accents, highlights, icons—deliver maximum impact without visual fatigue. Reserve large-scale use for intentional brand moments.
- Cornsilk creates strong legibility with black text overlays (19.7:1 contrast ratio), making it a reliable background or surface color in design systems
- Typography: Cornsilk as text requires a dark background; its 93% lightness means it provides 1.1:1 contrast on white, not meeting WCAG AA.
Use Cornsilk as a declaration of optimism. In a palette that leads with it, everything else feels deliberate and alive.
Cornsilk Accessibility: WCAG Contrast Ratios, Color Blindness & Inclusive Design
Cornsilk (#FFF8DC) achieves a 19.71:1 contrast ratio with black text, surpassing the WCAG 2.1 AAA threshold of 7:1. This exceptional contrast qualifies it for body text, UI components at any size, and all accessibility-sensitive interface contexts. Relative luminance: 93.6%.
- As text on white (#FFFFFF): 1.07:1 — Fail
- As text on black (#000000): 19.71:1 — AAA ✓
- Best text color on Cornsilk background: Black (#000000) at 19.71:1
- WCAG 2.1 luminance: 93.6% — high-luminance (near-white)—it provides excellent readability for dark text overlays and integrates naturally into light design systems
- Cornsilk qualifies for all text sizes including small body copy (AAA).
- Color blindness consideration: tritanopia (blue-yellow color blindness, ~0.003% of population) may affect how this color reads. While rare, for maximum accessibility supplement color signals with text or icon indicators in critical states.
For production use, test Cornsilk against your specific background colors rather than assuming #FFFFFF or #000000 performance translates. Surrounding colors alter perceived contrast.
Cornsilk in Industry: Branding, Design & Market Applications
Cornsilk's brand positioning falls squarely in the territory of optimism, clarity, intellect, and caution. Industry data supports its strongest performance in education, food, safety & construction categories, where the vivid saturation calibrates the message at a pale, considered level.
- Food & Beverage: Yellow stimulates appetite and communicates freshness, especially for bakery, dairy, and snack categories. Its association with sunlight and ripe crops makes it an instinctive choice for natural and wholesome food brands. (examples: Chipotle, Sweetgreen, Blue Bottle Coffee) Extremely effective for children's food products; less effective for premium dining where it reads as casual.
- Education & Children's Products: Yellow is cognitively stimulating and signals playfulness, making it a dominant choice in educational materials, children's toys, and learning apps. It creates an environment of curiosity and creative energy. (examples: Duolingo, Coursera, Khan Academy) Combine with blue for a classic educational palette that suggests both warmth and reliability.
- Safety & Construction: Yellow is the universal signal for visibility and caution. High-visibility vests, construction equipment, and warning signage use yellow because it provides maximum contrast in low-light conditions and stands out in natural environments. This safety connotation can be leveraged in UX for warning states and "proceed with awareness" signals.
- Brand positioning: Cornsilk is best suited for brands projecting optimism, creativity, clarity. Categories outside this positioning—body text on white (extremely poor contrast)—tend to see weaker results.
- Adjacent applications: Beyond primary industries, Cornsilk works effectively in highlights, callout banners, brand accents—contexts where optimism serves a secondary but reinforcing role.
For marketers and brand strategists, Cornsilk is a commitment to optimism, clarity, intellect, and caution. Match it with industries that make that promise and it will pay dividends consistently.
Accessibility & Design Guides
Frequently Asked Questions
- What is the hex code for Cornsilk? ▾
- The hex code for Cornsilk is #FFF8DC. Its RGB values are rgb(255, 248, 220) and its HSL values are hsl(48, 100%, 93%).
- What does Cornsilk mean in design? ▾
- Yellow is the most luminous color in the visible spectrum — the color our eyes detect first and at the greatest distance. It stimulates mental activity, promotes optimism, and conveys clarity. However, yellow is also the most fatiguing for the human eye at extended exposure, and pure yellow text on white fails all accessibility standards. In design, yellow works best as an accent or background for dark text. Golden yellows signal warmth and achievement; cool lemons feel fresh and modern. Yellow is the universal color of caution — from traffic lights to hazard tape. As a very light tint, it carries the lightness and openness of its hue family while remaining gentle enough for backgrounds, subtle highlights, and delicate UI elements.
- Is Cornsilk WCAG accessible? ▾
- Cornsilk (#FFF8DC) does not pass WCAG AA on white (1.07:1 ratio). Use it on dark backgrounds where it achieves 19.71:1. Its overall accessibility score is 48/100.
- What colors go well with Cornsilk? ▾
- Cornsilk pairs well with its complementary color Ultramarine (#4166F5). Analogous colors like Rust and Tangerine also work harmoniously. Check the Color Harmonies section above for the full palette.
- What is Cornsilk used for? ▾
- Cornsilk is commonly used for: Taxi and transportation services; Construction and heavy machinery; Children's education products and toys; Fast food and energy-focused brands; Caution and safety signage.
- What are the CSS and Tailwind values for Cornsilk? ▾
- In CSS, use `color: #FFF8DC` or `background-color: #FFF8DC`. The CSS custom property is `--color-cornsilk: #FFF8DC`. In Tailwind CSS, use the arbitrary value class `bg-[#FFF8DC]` for backgrounds or `text-[#FFF8DC]` for text.