Skip to main content

bg-neutral-400

Tailwind Neutral 400

#A3A3A3·Neutral family·Shade 400

Color Values

HEX
#A3A3A3
RGB
rgb(163, 163, 163)
HSL
hsl(0, 0%, 64%)
OKLCH
oklch(0.715 0.000 0)
CMYK
cmyk(0%, 0%, 0%, 36%)
CSS Variable
var(--color-neutral-400)
Tailwind Class
bg-neutral-400

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

2.52:1

Fail

On Black

8.33:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-neutral-400

Text

text-neutral-400

Border

border-neutral-400

Ring

ring-neutral-400

Outline

outline-neutral-400

Fill

fill-neutral-400

Stroke

stroke-neutral-400

From (gradient)

from-neutral-400

Via (gradient)

via-neutral-400

To (gradient)

to-neutral-400

Placeholder

placeholder-neutral-400

Caret

caret-neutral-400

Accent

accent-neutral-400

Decoration

decoration-neutral-400

Shadow Color

shadow-neutral-400

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'neutral-400': '#a3a3a3', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #A3A3A3;

/* RGB */
background-color: rgb(163, 163, 163);

/* HSL */
background-color: hsl(0, 0%, 64%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.715 0.000 0);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-neutral-400);

/* Gradient example */
background: linear-gradient(135deg, #fafafa 0%, #737373 100%);

OKLCH — Modern Color Space

Lightness (L)

0.715

72% perceived brightness

Chroma (C)

0.000

Color intensity / saturation

Hue (H)

Angle on perceptual hue wheel

oklch(0.715 0.000 0)

OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.

Design Recommendations

Mid-tone accent

Shade 400 of the Neutral palette

Recommended Uses

  • Icon fills on white
  • Secondary buttons (large text)
  • Chart & data visualization bars
  • Decorative UI elements

Avoid

Body text on white — often fails WCAG AA for normal text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #A3A3A3

Frequently Asked Questions

What is the hex code for Tailwind Neutral 400?
Tailwind Neutral 400 has the hex code #A3A3A3. Its RGB value is rgb(163, 163, 163) and its HSL value is hsl(0, 0%, 64%).
What Tailwind utility classes use Neutral 400?
Use bg-neutral-400 for backgrounds, text-neutral-400 for text color, border-neutral-400 for borders, and ring-neutral-400 for focus rings. In Tailwind v4 the CSS variable var(--color-neutral-400) is available natively.
Is Tailwind Neutral 400 WCAG accessible?
Tailwind Neutral 400 achieves a 2.52:1 contrast ratio on white (Fail) and 8.33:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Neutral 400?
Tailwind Neutral 400 in OKLCH is oklch(0.715 0.000 0) — lightness 0.715, chroma 0.000, hue 0°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Neutral 400 used for?
At shade 400, Tailwind Neutral 400 is best described as "Mid-tone accent". Recommended uses: Icon fills on white, Secondary buttons (large text), Chart & data visualization bars.