Color Reference · Cosmic Dusk

#78227C

oklch(42.5% 0.161 326)

HEX
#78227C
OKLCH
oklch(42.5% 0.161 326)
RGB
rgb(120, 34, 124)
HSL
hsl(297deg 57% 31%)
Relative Luminance
Y = 0.0659

Using #78227C as Text Foreground

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

Using #78227C as Button / Surface Fill

White ink (#FFFFFF) on #78227C
Contrast ratio 9.06:1
AAA
Dark ink (#0F172A) on #78227C
Contrast ratio 1.97:1
Fail

Recommended accessible ink on #78227C: #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 #78227C