Medium Purple

#9370DB

Nearest Tailwind V4 Match
violet-400
92.3% Match
Implementation
bg-violet-400
text-violet-400

Full Calculated Scale

50
#f6f2ff
100
#eee4ff
200
#decaff
300
#caaeff
400
#ac8bf3
500
#916ed9
600
#7956bc
700
#6747a4
800
#56388b
900
#4a3079
950
#2f1b51

Technical Background

Converting Medium Purple (#9370DB) 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.

Frequently Asked Questions

What is the closest Tailwind class for Medium Purple?

The closest visually matching Tailwind CSS class for Medium Purple (#9370DB) is violet-400. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 92.3%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-violet-400 for the best out-of-the-box match, or add #9370DB 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 Medium Purple, 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