Daffodil color: hex code #FFFF31

#FFFF31 rgb(255, 255, 49)
Shades of yellow

Daffodil has the hex code #FFFF31. It is a vivid yellow.

In the RGB color model it is made of 100% red, 100% green and 19.2% blue (255, 255, 49).

Its hue angle is 60°, with 100% saturation and 60% lightness. For print, the CMYK equivalent is 0% cyan, 0% magenta, 81% yellow and 0% black.

Black text is the more readable choice on this background (contrast 19.6:1).

Daffodil (#FFFF31) color codes

HEX#FFFF31
RGBrgb(255, 255, 49)
RGB percentrgb(100%, 100%, 19.2%)
HSLhsl(60, 100%, 60%)
HSV / HSBhsv(60, 81%, 100%)
CMYKcmyk(0%, 0%, 81%, 0%)
CIE LABlab(97.23, -20.83, 88.01)
CIE LCHlch(97.23, 90.44, 103.31)
CIE XYZxyz(77.557, 93.004, 16.771)
Decimal16777009
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Daffodil, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #FFFF31RatioAAAAAAA large
Sample text19.6:1PassPassPass
Sample text1.07:1FailFailFail
#FFFF31 as text onRatioAAAAAAA large
Sample text1.07:1FailFailFail
Sample text19.6:1PassPassPass

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #FFFF31 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #ffff31; }
.text { color: #ffff31; }
.border { border: 2px solid #ffff31; }
.transparent { background-color: rgb(255 255 49 / 50%); }
.gradient { background: linear-gradient(to right, #ffff31, #98ff31); }
Background
Text color
Border

Similar colors

See #FFFF31 on its hex code page

Questions

What color is #FFFF31?
#FFFF31 is a vivid yellow known as Daffodil. It belongs to the yellow family of colors.
What is the RGB value of Daffodil?
The RGB value is 255, 255, 49: 255 red, 255 green and 49 blue on a 0 to 255 scale.
What is the complementary color of Daffodil?
The complementary color is #3131FF, found by rotating the hue 180° on the color wheel.
Is black or white text better on #FFFF31?
Black text. Black text has a contrast ratio of 19.6:1 and white text 1.07:1. WCAG asks for at least 4.5:1 for normal text.