Skip to main content

bg-yellow-300

Tailwind Yellow 300

#FDE047·Yellow family·Shade 300

Color Values

HEX
#FDE047
RGB
rgb(253, 224, 71)
HSL
hsl(50, 98%, 64%)
OKLCH
oklch(0.905 0.166 98)
CMYK
cmyk(0%, 11%, 72%, 1%)
CSS Variable
var(--color-yellow-300)
Tailwind Class
bg-yellow-300

Accessibility Score

60/100

Good

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

On White

1.32:1

Fail

On Black

15.93:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-yellow-300

Text

text-yellow-300

Border

border-yellow-300

Ring

ring-yellow-300

Outline

outline-yellow-300

Fill

fill-yellow-300

Stroke

stroke-yellow-300

From (gradient)

from-yellow-300

Via (gradient)

via-yellow-300

To (gradient)

to-yellow-300

Placeholder

placeholder-yellow-300

Caret

caret-yellow-300

Accent

accent-yellow-300

Decoration

decoration-yellow-300

Shadow Color

shadow-yellow-300

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'yellow-300': '#fde047', }, }, }, };

CSS Equivalent

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

/* RGB */
background-color: rgb(253, 224, 71);

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

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.905 0.166 98);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-yellow-300);

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

OKLCH — Modern Color Space

Lightness (L)

0.905

91% perceived brightness

Chroma (C)

0.166

Color intensity / saturation

Hue (H)

98°

Angle on perceptual hue wheel

oklch(0.905 0.166 98)

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

Light mid-tone accent

Shade 300 of the Yellow palette

Recommended Uses

  • Secondary button outlines
  • Icon strokes on dark backgrounds
  • Progress bar fills
  • Selected state highlights

Avoid

Normal-size text on white — generally below WCAG AA threshold.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #FDE047

Frequently Asked Questions

What is the hex code for Tailwind Yellow 300?
Tailwind Yellow 300 has the hex code #FDE047. Its RGB value is rgb(253, 224, 71) and its HSL value is hsl(50, 98%, 64%).
What Tailwind utility classes use Yellow 300?
Use bg-yellow-300 for backgrounds, text-yellow-300 for text color, border-yellow-300 for borders, and ring-yellow-300 for focus rings. In Tailwind v4 the CSS variable var(--color-yellow-300) is available natively.
Is Tailwind Yellow 300 WCAG accessible?
Tailwind Yellow 300 achieves a 1.32:1 contrast ratio on white (Fail) and 15.93:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Yellow 300?
Tailwind Yellow 300 in OKLCH is oklch(0.905 0.166 98) — lightness 0.905, chroma 0.166, hue 98°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Yellow 300 used for?
At shade 300, Tailwind Yellow 300 is best described as "Light mid-tone accent". Recommended uses: Secondary button outlines, Icon strokes on dark backgrounds, Progress bar fills.