Ghost White Classic

#F8F8FF

Nearest Tailwind V4 Match
violet-50
97.3% Match
Implementation
bg-violet-50
text-violet-50

Color Code Conversions

HEX Code
#F8F8FF
RGB Value
rgb(248, 248, 255)
HSL Value
hsl(240, 100%, 99%)
OKLCH CSS (v4)
oklch(0.981 0.009 286.2)

Full Calculated Scale

50
#f5f5f6
100
#ebebed
200
#d7d7db
300
#c0c0c6
400
#a1a1a7
500
#85858c
600
#6e6e74
700
#5d5d62
800
#4c4c51
900
#424246
950
#28282c

Technical Background

Converting Ghost White Classic (#F8F8FF) 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 violet-50

Frequently Asked Questions

What is the closest Tailwind class for Ghost White Classic?

The closest visually matching Tailwind CSS class for Ghost White Classic (#F8F8FF) is violet-50. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 97.3%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-violet-50 for the best out-of-the-box match, or add #F8F8FF 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 Ghost White Classic, 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