Tailwind Zinc 300

zinc-300 · #D4D4D8 · rgb(212, 212, 216)

zinc-300 is a very light gray from the Tailwind CSS default palette, hex code #D4D4D8.

HEX#D4D4D8
RGBrgb(212, 212, 216)
HSLhsl(240, 5%, 84%)
CMYKcmyk(2%, 2%, 0%, 15%)
CSS variable (v4)var(--color-zinc-300)
Color nameLight Gray (closest)

Classes

bg-zinc-300
text-zinc-300
border-zinc-300
ring-zinc-300
from-zinc-300 via-zinc-300 to-zinc-300
bg-zinc-300/50   /* 50% opacity */
White text · 1.48:1 · fails
Black text · 14.21:1 · AAA
text-zinc-600 · 5.23:1 · AA

Check contrast with any color →

Tailwind zinc-300: questions & answers

What is the HEX code of Tailwind zinc-300?

Tailwind zinc-300 is #D4D4D8, which is rgb(212, 212, 216) or hsl(240, 5%, 84%).

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

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

What text color works on bg-zinc-300?

zinc-600 (#52525B) is the closest shade of the same color with readable contrast (5.23:1). Plain black text gives 14.21:1.