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

#ffff00
HEX#ffff00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)

Harmonies

Complementary

Analogous

#ff8000#80ff00

Triadic

Split complementary

#0080ff#8000ff

Tints & shades

#dbdb00#ebeb00#ffff00#ffff14#ffff24

Accessibility

vs #ffffff1.07:1
vs #00000019.56:1
Suggested text color#000000 · 19.56:1 · WCAG AAA

Similar named colors

gold#ffd700orange#ffa500greenyellow#adff2fgoldenrod#daa520darkorange#ff8c00yellowgreen#9acd32

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.

← All named colors