Light Gray

#D3D3D3

Nearest Tailwind V4 Match
neutral-300
99.8% Match
Implementation
bg-neutral-300
text-neutral-300

Full Calculated Scale

50
#f5f5f5
100
#ebebeb
200
#d7d7d7
300
#c1c1c1
400
#a1a1a1
500
#868686
600
#6f6f6f
700
#5d5d5d
800
#4d4d4d
900
#424242
950
#292929

Technical Background

Converting Light Gray (#D3D3D3) 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 neutral-300

Frequently Asked Questions

What is the closest Tailwind class for Light Gray?

The closest visually matching Tailwind CSS class for Light Gray (#D3D3D3) is neutral-300. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 99.8%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-neutral-300 for the best out-of-the-box match, or add #D3D3D3 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 Light Gray, 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