Skip to main content

Yellow

#FFFF00·yellow family·WCAG AAA

Tints & Shades

50

100

200

300

400

500

600

700

800

900

Scale from white (50) through Yellow (500) to black (900), interpolated in Lab color space.

Color Values

HEX
#FFFF00
RGB
rgb(255, 255, 0)
HSL
hsl(60, 100%, 50%)
OKLCH
oklch(0.968 0.211 110)
CMYK
cmyk(0%, 0%, 100%, 0%)
Luminance:0.9278
CSS var:--color-yellow
Tailwind:bg-[#FFFF00]

Accessibility

Score: 48/100

On White (#FFF)

1.07:1

Fail

On Black (#000)

19.56:1

AAA

On Light Gray (#F5F5F5)

1.02:1

Fail

Best text color on this background:

black19.56:1
Open in Contrast Checker →

Design Applications

Background

background-color: #FFFF00

Text Color

color: #FFFF00

bg-[#FFFF00] text-[#000000]

Accent border card component

border-left: 4px solid #FFFF00

Color Meaning & Psychology

Pure yellow is the most visible color in the visible spectrum — detectable at the greatest distance in daylight. It activates the cerebral cortex's logical center. In design, pure yellow must be used with black text to remain accessible. It is simultaneously the color of sunshine, of caution tape, and of pencils.

Industry Usage

Common contexts and industries where Yellow is applied in professional design.

  • Taxi and transportation services
  • Construction and heavy machinery
  • Children's education products and toys
  • Fast food and energy-focused brands
  • Caution and safety signage
  • Summer and outdoor lifestyle brands
  • Optimistic lifestyle and wellness brands
  • Creative agencies emphasizing ideas

Accessibility Considerations

Normal Text

Fails AA

4.5:1 minimum required

Large Text

Fails AA Large

3:1 minimum required

UI Components

Check contrast

3:1 for non-text UI

Yellow is a light color. Use black (#000000) text on top of it for maximum readability (19.56:1). Avoid white text on this background.

CSS & Code Examples

Background

background-color: #FFFF00;

Text

color: #FFFF00;

Border

border: 2px solid #FFFF00;

Box Shadow

box-shadow: 0 4px 20px #FFFF0040;

Gradient

background: linear-gradient(135deg, #FFFF00, #ffff5a);

Tailwind-style

--color-yellow: #FFFF00;

Tailwind CSS Utilities

Use arbitrary value syntax in Tailwind CSS to apply Yellow without a custom config.

Background

bg-[#FFFF00]

Text

text-[#FFFF00]

Border

border-[#FFFF00]

Ring

ring-[#FFFF00]

Fill

fill-[#FFFF00]

From (gradient)

from-[#FFFF00]

Via (gradient)

via-[#FFFF00]

To (gradient)

to-[#FFFF00]

Design Tokens

Ready-to-use Yellow design token in CSS custom properties, SCSS, Tailwind v3/v4, and JSON formats.

CSS Custom Properties

:root {
  --color-yellow: #FFFF00;
  --color-yellow-rgb: 255, 255, 0;
  --color-yellow-hsl: 60, 100%, 50%;
}

SCSS Variables

$color-yellow: #FFFF00;
$color-yellow-rgb: 255, 255, 0;
$color-yellow-hsl: 60, 100%, 50%;

Tailwind v3 Config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'yellow': '#FFFF00',
      },
    },
  },
};

Tailwind v4 (@theme)

/* tailwind.css */
@theme {
  --color-yellow: #FFFF00;
}

JSON Design Token (W3C format)

{
  "yellow": {
    "value": "#FFFF00",
    "type": "color",
    "description": "Yellow — #FFFF00"
  }
}

What Does Yellow Mean? Color Psychology & Cultural Symbolism

Yellow sits at the apex of human visual sensitivity—the wavelength the eye is most efficient at detecting in daylight. Yellow (#FFFF00) occupies this zone with a medium quality that reads as intellect: a color perceived as much as experienced.

  • Yellow occupies a paradoxical space in Western symbolism—simultaneously the color of happiness, optimism, and cowardice. In commercial contexts it signals caution (traffic lights, hazard tape) and sale promotions. In consumer branding it communicates cheerfulness and energy.
  • In Chinese and many other East Asian cultures, yellow (and especially gold-yellow) historically signified royalty, prosperity, and imperial authority. In Buddhist traditions it represents wisdom and harmony.
  • Yellow's medium lightness (50%) shifts its psychological register: a balanced mid-tone that embodies optimism, clarity, intellect, and caution at its most direct.
  • At 100% saturation, Yellow reads as vivid—Pure vivid yellow is the highest-chroma color the human eye perceives—it cannot be ignored and is physiologically stimulating, even more so than red in some attention research.

The power of Yellow lies in selective deployment—too much and it fatigues, too little and the energy dissipates. Find the balance.

How to Use Yellow in Design: Applications, Pairings & Best Practices

The accessibility challenge with yellow is real—most yellow tones fail WCAG contrast requirements on white—but Yellow's value as a highlight, background, and accent color is unmatched in creating optimistic, high-energy palettes.

  • UI components: warning states, highlights, feature callouts—Yellow performs reliably in all these roles with its medium tonal character.
  • Brand & identity: highlights, callout banners, brand accents—contexts where Yellow's vivid quality creates the right register.
  • Typography: Yellow as text requires a dark background; its 50% lightness means it provides 1.1:1 contrast on white, not meeting WCAG AA.
  • Yellow creates strong legibility with black text overlays (19.6:1 contrast ratio), making it a reliable background or surface color in design systems
  • Proportional use: Yellow's vivid saturation (100%) means small applications—accents, highlights, icons—deliver maximum impact without visual fatigue. Reserve large-scale use for intentional brand moments.

The power of Yellow lies in selective deployment—too much and it fatigues, too little and the energy dissipates. Find the balance.

Yellow Accessibility: WCAG Contrast Ratios, Color Blindness & Inclusive Design

Yellow (#FFFF00) achieves a 19.56:1 contrast ratio with black text, surpassing the WCAG 2.1 AAA threshold of 7:1. This exceptional contrast qualifies it for body text, UI components at any size, and all accessibility-sensitive interface contexts. Relative luminance: 92.8%.

  • As text on white (#FFFFFF): 1.07:1 — Fail
  • As text on black (#000000): 19.56:1 — AAA ✓
  • Best text color on Yellow background: Black (#000000) at 19.56:1
  • WCAG 2.1 luminance: 92.8% — high-luminance (near-white)—it provides excellent readability for dark text overlays and integrates naturally into light design systems
  • Yellow qualifies for all text sizes including small body copy (AAA).
  • Color blindness consideration: tritanopia (blue-yellow color blindness, ~0.003% of population) may affect how this color reads. While rare, for maximum accessibility supplement color signals with text or icon indicators in critical states.

Yellow's WCAG profile makes it a compliant choice for most text applications.

Yellow in Industry: Branding, Design & Market Applications

Yellow (#FFFF00) is most at home in industries where optimism, clarity, intellect, and caution are key brand values. Its medium quality makes it particularly effective in Food & Beverage contexts, where the vivid saturation signals energy at exactly the right register.

  • Food & Beverage: Yellow stimulates appetite and communicates freshness, especially for bakery, dairy, and snack categories. Its association with sunlight and ripe crops makes it an instinctive choice for natural and wholesome food brands. (examples: Whole Foods, Trader Joe's, Blue Bottle Coffee) Extremely effective for children's food products; less effective for premium dining where it reads as casual.
  • Education & Children's Products: Yellow is cognitively stimulating and signals playfulness, making it a dominant choice in educational materials, children's toys, and learning apps. It creates an environment of curiosity and creative energy. (examples: Duolingo, Coursera, Khan Academy) Combine with blue for a classic educational palette that suggests both warmth and reliability.
  • Safety & Construction: Yellow is the universal signal for visibility and caution. High-visibility vests, construction equipment, and warning signage use yellow because it provides maximum contrast in low-light conditions and stands out in natural environments. This safety connotation can be leveraged in UX for warning states and "proceed with awareness" signals.
  • Brand positioning: Yellow is best suited for brands projecting approachability, energy, clarity. Categories outside this positioning—body text on white (extremely poor contrast)—tend to see weaker results.
  • Adjacent applications: Beyond primary industries, Yellow works effectively in caution signage, pricing emphasis, sticky notes/productivity—contexts where energy serves a secondary but reinforcing role.

The industries where Yellow performs best are those where the audience expects energy. Build brand strategy around this alignment, not against it.

Frequently Asked Questions

What is the hex code for Yellow?
The hex code for Yellow is #FFFF00. Its RGB values are rgb(255, 255, 0) and its HSL values are hsl(60, 100%, 50%).
What does Yellow mean in design?
Pure yellow is the most visible color in the visible spectrum — detectable at the greatest distance in daylight. It activates the cerebral cortex's logical center. In design, pure yellow must be used with black text to remain accessible. It is simultaneously the color of sunshine, of caution tape, and of pencils.
Is Yellow WCAG accessible?
Yellow (#FFFF00) does not pass WCAG AA on white (1.07:1 ratio). Use it on dark backgrounds where it achieves 19.56:1. Its overall accessibility score is 48/100.
What colors go well with Yellow?
Yellow pairs well with its complementary color Blue (#0000FF). Analogous colors like Mushroom and Off White also work harmoniously. Check the Color Harmonies section above for the full palette.
What is Yellow used for?
Yellow is commonly used for: Taxi and transportation services; Construction and heavy machinery; Children's education products and toys; Fast food and energy-focused brands; Caution and safety signage.
What are the CSS and Tailwind values for Yellow?
In CSS, use `color: #FFFF00` or `background-color: #FFFF00`. The CSS custom property is `--color-yellow: #FFFF00`. In Tailwind CSS, use the arbitrary value class `bg-[#FFFF00]` for backgrounds or `text-[#FFFF00]` for text.