Shades of yellow

Yellow is the lightest saturated hue there is. Pure #FFFF00 has an OKLCH lightness of 0.97, almost as light as white, which makes it great for highlights and hard to use for text.

yellow · #FFFF00

12 yellow color names

Every CSS named color in the yellow family, lightest to darkest. Each name works directly in CSS. Open any swatch for its full conversions, 50–950 scale and harmonies.

Tailwind yellow scales

The Tailwind v4 default palette families closest to yellow, 50 to 950.

Using yellow in a UI

Pair yellow backgrounds with near-black text, and use the 700–900 shades when you need a yellow that works as a foreground color on white.

yellow-colors.css
:root {
  --lightyellow: oklch(0.992 0.04 107.1); /* #ffffe0 */
  --lemonchiffon: oklch(0.978 0.058 102.2); /* #fffacd */
  --cornsilk: oklch(0.977 0.037 95.4); /* #fff8dc */
  --lightgoldenrodyellow: oklch(0.975 0.052 107.3); /* #fafad2 */
  --yellow: oklch(0.968 0.211 109.8); /* #ffff00 */
  --moccasin: oklch(0.93 0.068 81.4); /* #ffe4b5 */
  --palegoldenrod: oklch(0.921 0.08 103.2); /* #eee8aa */
  --khaki: oklch(0.913 0.112 102.8); /* #f0e68c */
  --gold: oklch(0.887 0.182 95.3); /* #ffd700 */
  --darkkhaki: oklch(0.767 0.098 104.5); /* #bdb76b */
  --goldenrod: oklch(0.752 0.147 84); /* #daa520 */
  --darkgoldenrod: oklch(0.652 0.132 81.6); /* #b8860b */
}

Frequently asked questions

What is the hex code for yellow?
The CSS keyword yellow is #FFFF00, which is rgb(255 255 0) or oklch(0.968 0.211 109.8). Tailwind's yellow-500 is #F0B100, a softer yellow that many design systems use instead.
How many shades of yellow have CSS color names?
This page lists 12 CSS named colors in the yellow family, from lightyellow (#FFFFE0) at the light end to darkgoldenrod (#B8860B) at the dark end. Every one can be used directly in CSS by name.
What colors go well with yellow?
Yellow pairs well with purple, blue and gray. For a guaranteed match, open any yellow shade and use its complementary, analogous or triadic palette, all calculated in OKLCH.
How do I make a yellow color scale for my design system?
Pick a yellow you like on this page, open it in the color scale generator, and export an 11-step 50–950 ramp as CSS variables, JSON or a Tailwind v4 theme. The ramp is built in OKLCH, so every step looks evenly spaced.

Other color families