Color Reference · Cosmic Dusk

#5D3198

oklch(42.6% 0.16 299)

HEX
#5D3198
OKLCH
oklch(42.6% 0.16 299)
RGB
rgb(93, 49, 152)
HSL
hsl(266deg 51% 39%)
Relative Luminance
Y = 0.0679

Using #5D3198 as Text Foreground

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

Using #5D3198 as Button / Surface Fill

White ink (#FFFFFF) on #5D3198
Contrast ratio 8.91:1
AAA
Dark ink (#0F172A) on #5D3198
Contrast ratio 2:1
Fail

Recommended accessible ink on #5D3198: #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 #5D3198