Yellow (#FFFF00)
HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.
Preview
Contrast vs white: 1.07:1 — vs black: 19.56:1
Color values
-
HEX
#FFFF00 -
RGB
rgb(255, 255, 0) -
HSL
hsl(60, 100%, 50%) -
CMYK
cmyk( 0, 0, 100, 0 ) -
Websafe
#FFFF00
Tags
Style
Use case
Tip: tags are heuristic suggestions (helpful for browsing and inspiration).
Color Harmonies
Colors that pair well with #FFFF00 based on color theory relationships.
The color directly opposite on the color wheel — creates maximum contrast and vibrance.
#FFFF00
Base
#0000FF
Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.
#FFFF00
Base
#FF8000
#80FF00
Two colors flanking the complement — high contrast with less tension than full complementary.
#FFFF00
Base
#0080FF
#8000FF
Four colors at 90° intervals — rich variety, best when one color dominates.
Shades and tints of the same hue — cohesive, elegant, and easy to work with.
Darker shades and lighter tints of Yellow, generated by adjusting lightness while keeping the same hue and saturation.
Shades (darker)
#1A1A00
#474700
#757500
#A3A300
#D1D100
#FFFF00
Base
#FFFF2E
#FFFF5C
#FFFF8A
#FFFFB8
#FFFFE6
Ready-to-use code snippets for #FFFF00. Click the copy button to copy any snippet to your clipboard.
/* Background */
.element {
background-color: #FFFF00;
}
/* Text */
.element {
color: #FFFF00;
}
/* Border */
.element {
border: 1px solid #FFFF00;
}
/* Linear gradient to complementary */
.element {
background: linear-gradient(
to right,
#FFFF00,
#0000FF
);
}
/* Radial gradient */
.element {
background: radial-gradient(
circle,
#FFFF00,
#0000FF
);
}
// SCSS variable
$yellow: #FFFF00;
// With RGB channels (useful for rgba() usage)
$yellow-r: 255;
$yellow-g: 255;
$yellow-b: 0;
// Usage
.element {
background-color: $yellow;
color: rgba($yellow-r, $yellow-g, $yellow-b, 0.8);
}
How Yellow appears to people with different types of color vision deficiency.
#FFFF00
How the color appears with full color vision.
#FFFF00
Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
#FFFF00
Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
#FFF0F0
Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
#F7F7F7
Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
How to use this color
- Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
- Use CMYK when preparing print assets (posters, packaging, brochures).
- Check contrast before using it for text or important UI elements.