#FFFF00
yellow
#FFFF00 is the CSS named color "yellow", an exact match. In RGB it breaks down to red 255, green 255, and blue 0 out of 255 each. In HSL terms that's a hue of 60°, 100% saturation, and 50% lightness: a mid-tone — usable as an accent for buttons, links, and icons against either a light or dark background.
Every format
| HEX | #ffff00 |
| RGB | rgb(255, 255, 0) |
| HSL | hsl(60° 100% 50%) |
| HSB | hsb(60° 100% 100%) |
| OKLCH | oklch(97% 0.211 110°) |
| OKLAB | oklab(97% -0.071 0.199) |
| LCH | lch(98% 94.7 100°) |
| CMYK | cmyk(0% 0% 100% 0%) |
Shades (darker)
#ffff00 · #e6e500 · #cdcb00 · #b4b200 · #9d9900
Tints (lighter)
#ffff00 · #ffff07 · #ffff0e · #ffff13 · #ffff18
Shades mix #FFFF00 toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 1.07:1 — fails
On black: 19.56:1 — AAA
Frequently asked
- What is #FFFF00 in RGB?
- #FFFF00 is rgb(255, 255, 0) — red 255, green 255, blue 0 out of 255 each.
- Does #FFFF00 pass WCAG contrast on a white background?
- It has a contrast ratio of 1.07:1 against white, which fails for normal text.
- What's a good background color to pair with #FFFF00?
- Black text or a black background gives better contrast (19.56:1) than white (1.07:1).