Tailwind Zinc 400

zinc-400 · #A1A1AA · rgb(161, 161, 170)

zinc-400 is a light gray from the Tailwind CSS default palette, hex code #A1A1AA.

HEX#A1A1AA
RGBrgb(161, 161, 170)
HSLhsl(240, 5%, 65%)
CMYKcmyk(5%, 5%, 0%, 33%)
CSS variable (v4)var(--color-zinc-400)
Color nameDark Gray (closest)

Classes

bg-zinc-400
text-zinc-400
border-zinc-400
ring-zinc-400
from-zinc-400 via-zinc-400 to-zinc-400
bg-zinc-400/50   /* 50% opacity */
White text · 2.56:1 · fails
Black text · 8.19:1 · AAA
text-zinc-800 · 5.81:1 · AA

Check contrast with any color →

Tailwind zinc-400: questions & answers

What is the HEX code of Tailwind zinc-400?

Tailwind zinc-400 is #A1A1AA, which is rgb(161, 161, 170) or hsl(240, 5%, 65%).

How do I use zinc-400 as a background in Tailwind?

Add the class bg-zinc-400 to the element. Use text-zinc-400 for text and border-zinc-400 for borders.

What text color works on bg-zinc-400?

zinc-800 (#27272A) is the closest shade of the same color with readable contrast (5.81:1). Plain black text gives 8.19:1.