Color Reference · Cosmic Dusk

#5F3096

oklch(42.6% 0.159 301)

HEX
#5F3096
OKLCH
oklch(42.6% 0.159 301)
RGB
rgb(95, 48, 150)
HSL
hsl(268deg 52% 39%)
Relative Luminance
Y = 0.0675

Using #5F3096 as Text Foreground

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

Using #5F3096 as Button / Surface Fill

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

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