Skip to main content

Text Color

Utilities for controlling the text color of an element.

CSS Property:color
Classes:27

Text Color Classes

ClassCSS
text-inheritcolor: inherit;
text-currentcolor: currentColor;
text-transparentcolor: transparent;
text-blackcolor: #000;
text-whitecolor: #fff;
text-slate-500color: #64748b;
text-gray-500color: #6b7280;
text-zinc-500color: #71717a;
text-neutral-500color: #737373;
text-stone-500color: #78716c;
text-red-500color: #ef4444;
text-orange-500color: #f97316;
text-amber-500color: #f59e0b;
text-yellow-500color: #eab308;
text-lime-500color: #84cc16;
text-green-500color: #22c55e;
text-emerald-500color: #10b981;
text-teal-500color: #14b8a6;
text-cyan-500color: #06b6d4;
text-sky-500color: #0ea5e9;
text-blue-500color: #3b82f6;
text-indigo-500color: #6366f1;
text-violet-500color: #8b5cf6;
text-purple-500color: #a855f7;
text-fuchsia-500color: #d946ef;
text-pink-500color: #ec4899;
text-rose-500color: #f43f5e;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[color:value]

Responsive Variants

Apply text color utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:text-inherit
768px+md:md:text-inherit
1024px+lg:lg:text-inherit
1280px+xl:xl:text-inherit
1536px+2xl:2xl:text-inherit