Kotlin Purple

#7F52FF

Nearest Tailwind V4 Match
violet-500
97.7% Match
Implementation
bg-violet-500
text-violet-500

Color Code Conversions

HEX Code
#7F52FF
RGB Value
rgb(127, 82, 255)
HSL Value
hsl(256, 100%, 66%)
OKLCH CSS (v4)
oklch(0.588 0.241 288.6)

Full Calculated Scale

50
#f4f2ff
100
#e8e3ff
200
#d4c5ff
300
#bfa6ff
400
#a17fff
500
#885dff
600
#7243ec
700
#6133cf
800
#5124b1
900
#45209a
950
#2c0b69

Technical Background

Converting Kotlin Purple (#7F52FF) 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-500

Frequently Asked Questions

What is the closest Tailwind class for Kotlin Purple?

The closest visually matching Tailwind CSS class for Kotlin Purple (#7F52FF) is violet-500. Our algorithm calculates this using the CIEDE2000 ΔE standard, which shows a match score of 97.7%.

How do I use this color in my Tailwind config?

You have two options: use the native class bg-violet-500 for the best out-of-the-box match, or add #7F52FF 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 Kotlin 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 Palette Generator