#f59e0b
#f59e0b is rgb(245, 158, 11), or hsl(38, 92%, 50%). The nearest reference Tailwind v4 token is amber-500 (#fe9a00), not an exact match.
Conversions
WCAG contrast
| Background | Ratio | AA text | AA large | AAA text |
|---|---|---|---|---|
| white | 2.15:1 | fail | fail | fail |
| black | 9.78:1 | pass | pass | pass |
| slate-900 | 8.31:1 | pass | pass | pass |
| gray-100 | 1.95:1 | fail | fail | fail |
Ratios use WCAG relative luminance for opaque sRGB colors. Normal text requires 4.5:1, or 7:1 at AAA. Large text requires 3:1: at least 24 CSS pixels, or about 18.67 CSS pixels when bold. Pass/fail uses the unrounded ratio. Contrast alone is not a full accessibility assessment.
Colors paired with #f59e0b in real UI palettes
These colors appear alongside #f59e0b in StyleKit's curated palettes. Co-occurrence is not a promise of text readability; each pair includes its measured contrast.
- #10b981
Used together in Dashboard Layout, Fixed Sidebar and 3 more styles.
1.18:1
Not for normal text - #3b82f6
Used together in Dark Mode, Fixed Sidebar and 3 more styles.
1.71:1
Not for normal text - #ef4444
Used together in Dark Mode, Dashboard Layout and 3 more styles.
1.75:1
Not for normal text - #6366f1
Used together in Dashboard Layout, Full Page Scroll and 2 more styles.
2.08:1
Not for normal text - #ec4899
Used together in Full Page Scroll, Modern Gradient and 2 more styles.
1.64:1
Not for normal text - #1e293b
Used together in Fixed Sidebar, Holy Grail Layout and 1 more styles.
6.81:1
AA normal text
A readable starting point
black text on #f59e0b: 9.78:1 contrast.
Design styles using this color
- Dark Modeaccent · modern
- Dashboard Layoutaccent · modern
- Fixed Sidebaraccent · modern
- Full Page Scrollaccent · expressive
- Generative Artaccent · expressive
- Holy Grail Layoutaccent · modern
- Modern Gradientaccent · expressive
- Soft UIaccent · modern
- Vertical Timelineaccent · minimal
- Z-Pattern Layoutaccent · modern
Tints and shades
Lightness ladder in HSL space, from the lightest tint to the darkest shade of #f59e0b.
Similar colors in the library
Nearest swatches by perceptual OKLab distance across all curated style palettes.
AI prompt snippet
Use #f59e0b as the accent color, following the Dark Mode style: rgb(245, 158, 11), nearest Tailwind token amber-500. Keep text contrast at least 4.5:1 (this color scores 2.15:1 on white, 9.78:1 on black).
Paste this into ChatGPT, Claude, Cursor, or v0 to use #f59e0b with correct contrast constraints. Browse all palette colors.
Questions about #f59e0b
What color is #f59e0b?
#f59e0b is rgb(245, 158, 11), or hsl(38, 92%, 50%). The nearest reference Tailwind v4 token is amber-500 (#fe9a00), not an exact match.
What text color should I use on #f59e0b?
Black (#000000) has the higher black-or-white contrast against #f59e0b: 9.78:1. This calculation assumes opaque, flat sRGB colors. Normal text requires 4.5:1 and large text 3:1 under WCAG 2.2 SC 1.4.3; it is not a complete accessibility assessment.
How can I use exactly #f59e0b in Tailwind CSS?
Use bg-[#f59e0b], text-[#f59e0b], or a CSS custom property instead of substituting a nearby named token. The reference palette is Tailwind CSS 4.1.18, converted from OKLCH to sRGB hex; newer Tailwind versions and custom themes can differ.
Sources and calculation limits
Reference palette: Tailwind CSS 4.1.18, converted from OKLCH to sRGB hex. Named tokens are versioned approximations; use the exact hex utilities when matching an existing design. Palette pairings come from the linked StyleKit definitions, not external popularity or preference data.