Color Values
- HEX
- #FCD34D
- RGB
- rgb(252, 211, 77)
- HSL
- hsl(46, 97%, 65%)
- OKLCH
- oklch(0.879 0.153 92)
- CMYK
- cmyk(0%, 16%, 69%, 1%)
- CSS Variable
- var(--color-amber-300)
- Tailwind Class
- bg-amber-300
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
1.44:1
On Black
14.56:1
Tailwind Usage — All Utilities
Background
bg-amber-300Text
text-amber-300Border
border-amber-300Ring
ring-amber-300Outline
outline-amber-300Fill
fill-amber-300Stroke
stroke-amber-300From (gradient)
from-amber-300Via (gradient)
via-amber-300To (gradient)
to-amber-300Placeholder
placeholder-amber-300Caret
caret-amber-300Accent
accent-amber-300Decoration
decoration-amber-300Shadow Color
shadow-amber-300Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'amber-300': '#fcd34d',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #FCD34D;
/* RGB */
background-color: rgb(252, 211, 77);
/* HSL */
background-color: hsl(46, 97%, 65%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.879 0.153 92);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-amber-300);
/* Gradient example */
background: linear-gradient(135deg, #fffbeb 0%, #fbbf24 100%);OKLCH — Modern Color Space
Lightness (L)
0.879
88% perceived brightness
Chroma (C)
0.153
Color intensity / saturation
Hue (H)
92°
Angle on perceptual hue wheel
oklch(0.879 0.153 92)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 Amber 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 — #FCD34D
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Amber 300
Nearest Tailwind equivalent — #FCD34D
Frequently Asked Questions
- What is the hex code for Tailwind Amber 300?
- Tailwind Amber 300 has the hex code #FCD34D. Its RGB value is rgb(252, 211, 77) and its HSL value is hsl(46, 97%, 65%).
- What Tailwind utility classes use Amber 300?
- Use bg-amber-300 for backgrounds, text-amber-300 for text color, border-amber-300 for borders, and ring-amber-300 for focus rings. In Tailwind v4 the CSS variable var(--color-amber-300) is available natively.
- Is Tailwind Amber 300 WCAG accessible?
- Tailwind Amber 300 achieves a 1.44:1 contrast ratio on white (Fail) and 14.56:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Amber 300?
- Tailwind Amber 300 in OKLCH is oklch(0.879 0.153 92) — lightness 0.879, chroma 0.153, hue 92°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Amber 300 used for?
- At shade 300, Tailwind Amber 300 is best described as "Light mid-tone accent". Recommended uses: Secondary button outlines, Icon strokes on dark backgrounds, Progress bar fills.