#f0e780
#f0e780 converts to rgb(240, 231, 128) and hsl(55, 79%, 72%). Its nearest Tailwind CSS token is amber-200.
01
Conversions
02
WCAG contrast
| Background | Ratio | AA text | AA large | AAA text |
|---|---|---|---|---|
| white | 1.28:1 | fail | fail | fail |
| black | 16.45:1 | pass | pass | pass |
| slate-900 | 13.98:1 | pass | pass | pass |
| gray-100 | 1.16:1 | fail | fail | fail |
Ratios are computed from WCAG 2.x relative luminance. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1.
03
Tints and shades
Lightness ladder in HSL space, from the lightest tint to the darkest shade of #f0e780.
04
Similar colors in the library
Nearest swatches by perceptual OKLab distance across all curated style palettes.
05
AI prompt snippet
Use #f0e780 (rgb(240, 231, 128), nearest Tailwind token amber-200) as an accent. Keep text contrast at least 4.5:1 — this color scores 1.28:1 on white and 16.45:1 on black.
Paste this into ChatGPT, Claude, Cursor, or v0 to use #f0e780 with correct contrast constraints. Browse all palette colors.