Daffodil (#FFFF31)

HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.

Preview

Sample Text
This is how text may look on this color.
Best text color: #000000
Contrast vs white: 1.07:1 — vs black: 19.60:1

Color values

  • HEX #FFFF31
  • RGB rgb(255, 255, 49)
  • HSL hsl(60, 100%, 59%)
  • CMYK cmyk( 0, 0, 81, 0 )
  • Websafe #FFFF33

Tags

Tip: tags are heuristic suggestions (helpful for browsing and inspiration).

Color Harmonies

Colors that pair well with #FFFF31 based on color theory relationships.

Complementary

The color directly opposite on the color wheel — creates maximum contrast and vibrance.

Daffodil
#FFFF31 Base
#3131FF
Analogous

Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.

Daffodil
#FFFF31 Base
#FF9831
#98FF31
Triadic

Three colors equally spaced 120° apart — bold, balanced, and visually rich.

Daffodil
#FFFF31 Base
#31FFFF
#FF31FF
Split-Complementary

Two colors flanking the complement — high contrast with less tension than full complementary.

Daffodil
#FFFF31 Base
#3198FF
#9831FF
Tetradic (Square)

Four colors at 90° intervals — rich variety, best when one color dominates.

Daffodil
#FFFF31 Base
#31FF98
#3131FF
#FF3198
Monochromatic

Shades and tints of the same hue — cohesive, elegant, and easy to work with.

Daffodil
#FFFF31 Base
#979700
#E3E300
#FFFF08
#FFFF5A
#FFFF7D
#FFFFCA
Shades & Tints

Darker shades and lighter tints of Daffodil, generated by adjusting lightness while keeping the same hue and saturation.

Shades (darker)

#1A1A00
#515100
#898900
#C1C100
#F8F800
Daffodil #FFFF31 Base
#FFFF55
#FFFF79
#FFFF9D
#FFFFC1
#FFFFE6
CSS & SCSS Snippets

Ready-to-use code snippets for #FFFF31. Click the copy button to copy any snippet to your clipboard.

CSS Properties
/* Background */
.element {
    background-color: #FFFF31;
}

/* Text */
.element {
    color: #FFFF31;
}

/* Border */
.element {
    border: 1px solid #FFFF31;
}
CSS Gradient
/* Linear gradient to complementary */
.element {
    background: linear-gradient(
        to right,
        #FFFF31,
        #3131FF
    );
}

/* Radial gradient */
.element {
    background: radial-gradient(
        circle,
        #FFFF31,
        #3131FF
    );
}
SCSS Variable
// SCSS variable
$daffodil: #FFFF31;

// With RGB channels (useful for rgba() usage)
$daffodil-r: 255;
$daffodil-g: 255;
$daffodil-b: 49;

// Usage
.element {
    background-color: $daffodil;
    color: rgba($daffodil-r, $daffodil-g, $daffodil-b, 0.8);
}
Color Blindness Simulation

How Daffodil appears to people with different types of color vision deficiency.

Normal Vision #FFFF31 How the color appears with full color vision.
Deuteranopia #FFFF31 Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
Protanopia #FFFF31 Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
Tritanopia #FFF1F1 Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
Achromatopsia #F7F7F7 Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
Similar Named Colors

The closest named colors to Daffodil ranked by perceptual difference (Delta-E 2000 — lower = more similar).

Daffodil #FFFF31 Base
Electric Yellow #FFFF33 ΔE 0.10
Yellow (RYB) #FEFE33 ΔE 0.25
Laser Lemon #FEFE22 ΔE 0.59
Lemon Glacier #FDFF00 ΔE 1.25

How to use this color

  1. Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
  2. Use CMYK when preparing print assets (posters, packaging, brochures).
  3. Check contrast before using it for text or important UI elements.