CSS named color

Yellow Color Codes, Shades and Palettes

Yellow is #FFFF00. Copy its exact codes, compare twenty computed channel steps, and build complementary, analogous, or triadic palettes.

#FFFF00RGB 255, 255, 0HSL 60°, 100%, 50%

Yellow color codes

Every format below is calculated from #FFFF00; use the buttons to copy a code exactly.

HEX#FFFF00
RGBrgb(255, 255, 0)
HSLhsl(60°, 100%, 50%)
CMYKcmyk(0%, 0%, 100%, 0%)

10 shades and 10 tints of Yellow

These twenty steps use the original Color Lab’s channel-multiplication rule: each RGB channel is multiplied, rounded, and clamped between 0 and 255.

Darker channel steps

#1A1A00
#333300
#4D4D00
#666600
#808000
#999900
#B3B300
#CCCC00
#E6E600
#FFFF00

Lighter channel steps

#FFFF00
#FFFF00
#FFFF00
#FFFF00
#FFFF00
#FFFF00
#FFFF00
#FFFF00
#FFFF00
#FFFF00

Computed harmonies and palette ideas

Companion hues use the original wheel’s exact offsets at 80% saturation and 50% lightness, so the relationship stays measurable and repeatable.

Complementary

#E6E619#1919E6

Analogous

#E6E619#80E619#E68019

Triadic

#E6E619#19E6E6#E619E6

How Yellow is calculated

Yellow is stored as the CSS named-color keyword “yellow” with the six-digit value #FFFF00. Splitting that value into red, green, and blue byte pairs produces RGB 255, 255, 0. The same channels convert to HSL 60°, 100%, 50% with the picker’s max-and-min formula, and to CMYK 0%, 0%, 100%, 0% after normalizing each channel to the zero-to-one range. All displayed HSL and CMYK components are rounded to whole numbers.

The shade series is not an invented set of labels. It multiplies the original RGB channels by factors from 0.1 through 1.0. That calculation runs from #1A1A00 at factor 0.1 to #FFFF00 at factor 1.0. The tint series continues the same Color Lab rule from factor 1.1 through 2.0, with clamping whenever a channel reaches 255; its last result is #FFFF00. Clicking any square copies its precomputed code.

For wheel relationships, the base hue is 60 degrees. The complementary hue is 240 degrees, while the analogous companions sit 30 degrees on either side. Triadic companions are offset by 120 and 240 degrees. Like the working Color Lab wheel, those hue samples render at fixed 80% saturation and 50% lightness rather than changing Yellow’s own saturation or lightness.

In the full 298-name catalog, the closest distinct RGB neighbors include Gold (#FFD700), Gold 2 (#EEC900), Dark Goldenrod 2 (#EEAD0E), Orange (#FFA500). Distance is straight-line Euclidean distance between the three sRGB channel values, with equal-hex aliases excluded. Against #FFFF00, black text measures 19.56:1 and white text measures 1.07:1, so black gives the stronger of those two contrast results. Check the ratio required by your specific text size before publishing.

Try Yellow in the Color Picker

Pick any color and instantly get HEX, RGB, HSL, and CMYK codes.

Enter a hash followed by exactly six hexadecimal digits.
HEX
RGB
HSL
CMYK
Color Shades & Tints

Frequently asked questions

What is the HEX code for Yellow?

Yellow is recorded here as #FFFF00. Its RGB channels are 255, 255, 0.

What are the HSL and CMYK values for Yellow?

Using the Color Lab conversion math, Yellow converts to HSL 60°, 100%, 50% and CMYK 0%, 0%, 100%, 0%. Values are rounded to whole units.

Should Yellow use black or white text?

Black has a 19.56:1 contrast ratio and white has a 1.07:1 ratio against Yellow. The higher computed ratio is black.