Color Reference · Cosmic Dusk

#6A2A8D

oklch(42.5% 0.161 311)

HEX
#6A2A8D
OKLCH
oklch(42.5% 0.161 311)
RGB
rgb(106, 42, 141)
HSL
hsl(279deg 54% 36%)
Relative Luminance
Y = 0.0664

Using #6A2A8D as Text Foreground

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

Using #6A2A8D as Button / Surface Fill

White ink (#FFFFFF) on #6A2A8D
Contrast ratio 9.02:1
AAA
Dark ink (#0F172A) on #6A2A8D
Contrast ratio 1.98:1
Fail

Recommended accessible ink on #6A2A8D: #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 #6A2A8D