Color Reference · Cosmic Dusk

#512D8D

oklch(39.8% 0.151 296)

HEX
#512D8D
OKLCH
oklch(39.8% 0.151 296)
RGB
rgb(81, 45, 141)
HSL
hsl(263deg 52% 36%)
Relative Luminance
Y = 0.0555

Using #512D8D as Text Foreground

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

Using #512D8D as Button / Surface Fill

White ink (#FFFFFF) on #512D8D
Contrast ratio 9.95:1
AAA
Dark ink (#0F172A) on #512D8D
Contrast ratio 1.79:1
Fail

Recommended accessible ink on #512D8D: #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 #512D8D