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
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
1.32:1
On Black
15.93:1
Tailwind Usage — All Utilities
Background
bg-yellow-300Text
text-yellow-300Border
border-yellow-300Ring
ring-yellow-300Outline
outline-yellow-300Fill
fill-yellow-300Stroke
stroke-yellow-300From (gradient)
from-yellow-300Via (gradient)
via-yellow-300To (gradient)
to-yellow-300Placeholder
placeholder-yellow-300Caret
caret-yellow-300Accent
accent-yellow-300Decoration
decoration-yellow-300Shadow Color
shadow-yellow-300Tailwind 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
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #FDE047
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Yellow 300
Nearest Tailwind equivalent — #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.