Cornsilk

#FFF8DC

Nearest Tailwind V4 Match
yellow-50
96.8% Match
Implementation
bg-yellow-50
text-yellow-50

Color Code Conversions

HEX Code
#FFF8DC
RGB Value
rgb(255, 248, 220)
HSL Value
hsl(48, 100%, 93%)
OKLCH CSS (v4)
oklch(0.977 0.037 95.4)

Full Calculated Scale

50
#f6f5f1
100
#eeebe2
200
#dcd8c6
300
#c7c1aa
400
#a8a289
500
#8d866d
600
#756f57
700
#635e48
800
#524d3a
900
#474232
950
#2c291c

Technical Background

Converting Cornsilk (#FFF8DC) to Tailwind CSS requires more than just picking the nearest hex. Our algorithm uses CIEDE2000, a perceptual color difference formula that accounts for how human vision processes lightness, chroma, and hue.

The generated scale follows the Tailwind CSS v4 OKLCH standard, ensuring perfectly uniform weight across the entire spectrum. This prevents common issues like "hue shifting" where colors turn purple or grey as they get darker or lighter. You can customize this further in our Palette Generator.

Other colors matching yellow-50

Frequently Asked Questions

What is the closest Tailwind class for Cornsilk?

The closest visually matching Tailwind CSS class for Cornsilk (#FFF8DC) is yellow-50. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 96.8%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-yellow-50 for the best out-of-the-box match, or add #FFF8DC directly to your Tailwind theme configuration for 100% brand accuracy.

Why use OKLCH for this scale?

Tailwind CSS v4 uses OKLCH because it is perceptually uniform. When we generate the 50-950 scale for Cornsilk, OKLCH ensures that the color stays vibrant and doesn't shift towards different hues as it gets lighter or darker.

Need a custom palette?

Use our professional-grade generator to create a full theme from any custom hex code.

Open Generator