yellow yellow #ffff00
yellow is #ffff00 in hexadecimal, rgb(255, 255, 0) in decimal and hsl(60, 100, 50) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #ffff00 |
| RGB | rgb(255, 255, 0) |
| HSL | hsl(60, 100%, 50%) |
Harmonies
Complementary
Analogous
#ff8000#80ff00Split complementary
#0080ff#8000ffTints & shades
Accessibility
| vs #ffffff | 1.07:1 |
| vs #000000 | 19.56:1 |
| Suggested text color | #000000 · 19.56:1 · WCAG AAA |
Similar named colors
FAQ
What is the HEX code for yellow?
yellow is #ffff00 in hex, rgb(255, 255, 0) in decimal and hsl(60, 100%, 50%) in HSL. In CSS you can write either color: yellow; or color: #ffff00; — they are equivalent.
What colors go with yellow?
The complementary #0000ff gives the strongest contrast, the analogous pair #ff8000 / #80ff00 is the safest, and the triad #00ffff / #ff00ff adds more tension. All three are derived from the 60° hue of #ffff00.
Does #ffff00 read better on white or black?
Its contrast is 1.07:1 against white and 19.56:1 against black. Use #000000 text on it — that gives 19.56:1, which meets WCAG AAA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.