Yellow — #FFFF00
One of the 148 named colours defined by CSS — this page is its complete working profile: every format, WCAG contrast, a 50–950 shade scale and computed harmonies, all copy-ready.
Yellow values in every format
| CSS name | yellow |
|---|---|
| HEX | #FFFF00 |
| RGB | rgb(255, 255, 0) |
| RGB % | 100%, 100%, 0% |
| HSL | hsl(60, 100%, 50%) |
| HSV / HSB | 60°, 100%, 100% |
| CMYK (print) | 0%, 0%, 100%, 0% |
| Relative luminance | 0.928 |
| Contrast on black | 19.56 : 1 |
| Contrast on white | 1.07 : 1 |
| Best text colour on it | Black (19.56 : 1 — passes WCAG AA for normal text) |
Named colours are defined in the CSS Color Module (W3C). Values on this page were computed with the same colour maths as Loona's Colour Converter and checked 9 November 2026.
Shades of Yellow (50–950)
50 #FFFFF0100 #FFFFDB200 #FFFFAD300 #FFFF70400 #FFFF29500 #EBEB00600 #BDBD00700 #949400800 #707000900 #4C4C00950 #2E2E00
The scale keeps Yellow's hue (60°) and saturation (100%) and steps lightness — the same method as the Colour Shades Generator, so these steps drop straight into a design system.
Colour harmonies with Yellow
Complementary: #FFFF00#0000FF
Analogous: #FF8000#FFFF00#80FF00
Triadic: #FFFF00#00FFFF#FF00FF
Split-complementary: #FFFF00#007FFF#7F00FF
Square: #FFFF00#00FF80#0000FF#FF0080
Computed by rotating the hue wheel from 60°. Try them live in the Colour Harmony Generator.
Closest named colours
gold (#FFD700) · orange (#FFA500) · greenyellow (#ADFF2F)
Using Yellow well
Yellow sits in the yellow family at 50% lightness — a mid-tone, vivid, warm colour. As a background it pairs best with black text (19.56:1 contrast). Its complement (#0000FF) is the high-energy partner for calls-to-action and highlights; the analogous neighbours (#FF8000, #80FF00) give calm, same-family gradients. For print, start from the CMYK values above and proof — screen Yellow is an sRGB colour and rich screens shades can shift on press.
Popular Design Tools
Frequently Asked Questions
What is the hex code for Yellow?
#FFFF00 — the CSS named colour “yellow”. Its RGB is (255, 255, 0).
Is Yellow good for text or backgrounds?
As a background, black text reads best on it (19.56:1). As text itself on white it reaches 1.07:1 — not enough for body text at AA; use it for headings, large text or accents.
What colours go with Yellow?
Its complement #0000FF for contrast, analogous #FF8000 and #80FF00 for calm combinations, and the 50–950 shade scale above for monochrome designs.
What is Yellow in CMYK for printing?
C0 M0 Y100 K0. CMYK conversions of screen colours are a starting point — always proof before a print run.