Yellow Hex Code — #FFFF00

RGB, HSL, and CMYK values for Yellow.

Last updated: April 6, 2026

Yellow Color Values

FormatValue
HEX#FFFF00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)
CMYKcmyk(0%, 0%, 100%, 0%)
Want to explore more shades? Use our Color Converter

About Yellow

Color psychology: Happiness, optimism.

Yellow (#FFFF00) is a medium shade of yellow with a hue angle of 60° on the color wheel, 100% saturation, and 50% lightness. It's commonly used in web design, graphic design, and branding where happiness, optimism are desired associations.

In color theory, Yellow sits in the neutral section of the spectrum. Its high saturation makes it vivid and attention-grabbing — ideal for CTAs, headings, and brand accents.

When to Use Yellow in Design

Web Design

Use Yellow for headings, links, or accent elements against light backgrounds. Dark colors like this provide strong contrast and draw the eye to important content.

Branding & Logo

Yellow conveys happiness, optimism — consider it for brands that want to project these qualities. Test it at small sizes (favicon, social avatar) to ensure it remains recognizable.

Print Design

Use the CMYK values (C:0% M:0% Y:100% K:0%) for accurate print reproduction in brochures, business cards, and packaging. Request a physical proof — screen colors often appear more vibrant than their printed equivalents.

UI / UX Design

Dark colors like Yellow are effective for primary buttons, navigation bars, and text. Use a lighter tint (increase HSL lightness to 90%+) for hover backgrounds.

How to Use Yellow in CSS

/* Using HEX */
color: #FFFF00;
background-color: #FFFF00;

/* Using RGB */
color: rgb(255, 255, 0);

/* Using HSL — best for creating variations */
color: hsl(60, 100%, 50%);

/* Transparent overlay (50% opacity) */
background-color: rgba(255, 255, 0, 0.5);

/* Lighter variant for hover states */
background-color: hsl(60, 100%, 60%);

/* Darker variant for active states */
background-color: hsl(60, 100%, 40%);

HSL is the most flexible format for creating color systems. By adjusting the lightness value, you can generate an entire shade scale from Yellow without changing its core hue or saturation.

Colors That Go With Yellow

Complementary

Analogous

Triadic

Similar Shades of Yellow

Frequently Asked Questions

What is the hex code for Yellow?
The hex color code for Yellow is #FFFF00. In CSS, apply it as text color with color: #FFFF00;, as a background with background-color: #FFFF00;, or as a border with border-color: #FFFF00;. Hex is the most widely used color notation on the web because it is compact, supported by every browser, and easy to copy between design tools like Figma, Photoshop, and code editors.
What is Yellow in RGB and when should I use RGB?
Yellow in RGB is rgb(255, 255, 0), where Red=255, Green=255, and Blue=0 on a 0-255 scale. Use RGB when you need transparency — rgba(255, 255, 0, 0.5) creates a 50% transparent version. RGB is also the native format for HTML canvas, WebGL, and JavaScript image manipulation, since each channel represents the intensity of that primary light color on screen displays.
How to use Yellow in CSS with different color formats?
Yellow can be applied in CSS using multiple formats: (1) Hex: color: #FFFF00; — most compact and widely used. (2) RGB: color: rgb(255, 255, 0); — useful when calculating colors dynamically in JavaScript. (3) HSL: color: hsl(60, 100%, 50%); — best for creating variations, since adjusting lightness produces lighter or darker shades while keeping the same hue. (4) With transparency: rgba(255, 255, 0, 0.8); or hsla(60, 100%, 50%, 0.8); for 80% opacity overlays.
What is the HSL value of Yellow and why is HSL useful for designers?
Yellow in HSL is hsl(60, 100%, 50%). HSL stands for Hue (60 degrees on the color wheel), Saturation (100% color intensity), and Lightness (50% brightness). HSL is the most intuitive format for designers because you can create harmonious palettes by rotating the hue, generate hover effects by increasing lightness by 10%, and desaturate colors by reducing the S value. This makes Yellow a medium, vivid neutral-toned color.
What is the CMYK value of Yellow for print design?
Yellow in CMYK is C:0% M:0% Y:100% K:0%. CMYK (Cyan, Magenta, Yellow, Key/Black) is the standard color model for professional printing — business cards, brochures, merchandise, and packaging. When designing for print in Adobe InDesign or Illustrator, use these exact CMYK values to ensure accurate color reproduction. Screen colors (RGB) often appear more vibrant than their printed CMYK equivalents, so always request a physical proof for brand-critical materials.
What colors pair well with Yellow in design projects?
Yellow works best as an accent paired with dark backgrounds (charcoal, navy). For warnings and notifications, combine yellow backgrounds with black text for maximum readability.
Is Yellow (#FFFF00) accessible for web design and WCAG compliant?
Pure yellow on white is nearly invisible. Yellow backgrounds need dark text (black or very dark gray) to be readable. For yellow accents, ensure a minimum 3:1 contrast ratio against the surrounding background. For Yellow specifically: as a medium shade (lightness: 50%), it can work as a text color on light backgrounds, but verify the exact contrast ratio using a contrast checker tool. WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (18px+ bold or 24px+ regular).

Was this page helpful?

Written by

Tamanna Tasnim

Senior Full Stack Developer

ToolsContainerDhaka, Bangladesh5+ years experiencetasnim@toolscontainer.comwww.toolscontainer.com

Full-stack developer with deep expertise in data formats, APIs, and developer tooling. Writes in-depth technical comparisons and conversion guides backed by hands-on engineering experience across modern web stacks.