Skip to main content

bg-orange-400

Tailwind Orange 400

#FB923C·Orange family·Shade 400

Color Values

HEX
#FB923C
RGB
rgb(251, 146, 60)
HSL
hsl(27, 96%, 61%)
OKLCH
oklch(0.758 0.159 56)
CMYK
cmyk(0%, 42%, 76%, 2%)
CSS Variable
var(--color-orange-400)
Tailwind Class
bg-orange-400

Accessibility Score

60/100

Good

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

On White

2.26:1

Fail

On Black

9.28:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-orange-400

Text

text-orange-400

Border

border-orange-400

Ring

ring-orange-400

Outline

outline-orange-400

Fill

fill-orange-400

Stroke

stroke-orange-400

From (gradient)

from-orange-400

Via (gradient)

via-orange-400

To (gradient)

to-orange-400

Placeholder

placeholder-orange-400

Caret

caret-orange-400

Accent

accent-orange-400

Decoration

decoration-orange-400

Shadow Color

shadow-orange-400

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

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

/* RGB */
background-color: rgb(251, 146, 60);

/* HSL */
background-color: hsl(27, 96%, 61%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.758 0.159 56);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.758

76% perceived brightness

Chroma (C)

0.159

Color intensity / saturation

Hue (H)

56°

Angle on perceptual hue wheel

oklch(0.758 0.159 56)

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 Orange 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 — #FB923C

Frequently Asked Questions

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