Color Reference · Cosmic Dusk

#512FA0

oklch(41.7% 0.172 291)

HEX
#512FA0
OKLCH
oklch(41.7% 0.172 291)
RGB
rgb(81, 47, 160)
HSL
hsl(258deg 55% 41%)
Relative Luminance
Y = 0.0632

Using #512FA0 as Text Foreground

Sample text on White (#FFFFFF)
Contrast ratio 9.28:1
AAA
Sample text on Slate (#0F172A)
Contrast ratio 1.92:1
Fail

Using #512FA0 as Button / Surface Fill

White ink (#FFFFFF) on #512FA0
Contrast ratio 9.28:1
AAA
Dark ink (#0F172A) on #512FA0
Contrast ratio 1.92:1
Fail

Recommended accessible ink on #512FA0: #FFFFFF.

OKLCH Tonal Scale (50–950)

Click any shade step to inspect its conversions and contrast profile.

Export Tailwind CSS v4 Scale →

OKLCH Color Harmonies from #512FA0