Color Reference · Cosmic Dusk

#5E2C8A

oklch(41% 0.151 305)

HEX
#5E2C8A
OKLCH
oklch(41% 0.151 305)
RGB
rgb(94, 44, 138)
HSL
hsl(272deg 52% 36%)
Relative Luminance
Y = 0.0602

Using #5E2C8A as Text Foreground

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

Using #5E2C8A as Button / Surface Fill

White ink (#FFFFFF) on #5E2C8A
Contrast ratio 9.53:1
AAA
Dark ink (#0F172A) on #5E2C8A
Contrast ratio 1.87:1
Fail

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