Apple Purple

#AF52DE

Nearest Tailwind V4 Match
purple-500
95.2% Match
Implementation
bg-purple-500
text-purple-500

Color Code Conversions

HEX Code
#AF52DE
RGB Value
rgb(175, 82, 222)
HSL Value
hsl(280, 68%, 60%)
OKLCH CSS (v4)
oklch(0.615 0.213 312.4)

Full Calculated Scale

50
#fdefff
100
#fcddff
200
#f7bcff
300
#e89bff
400
#cc75fa
500
#b154e0
600
#973ac3
700
#822baa
800
#6d1f91
900
#5e1b7d
950
#3d0854

Technical Background

Converting Apple Purple (#AF52DE) 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 purple-500

Frequently Asked Questions

What is the closest Tailwind class for Apple Purple?

The closest visually matching Tailwind CSS class for Apple Purple (#AF52DE) is purple-500. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 95.2%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-purple-500 for the best out-of-the-box match, or add #AF52DE 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 Apple 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