FFEB3B (Yellow 500) — RGB, HSL, CMYK and Contrast

Every value recomputed from the hex code · WCAG 2.1 contrast ratios

A yellow at 62% lightness and 100% saturation, which puts it at 1.22:1 against white and 17.20:1 against black. The tables below give the notation conversions, the tints and shades that keep the hue intact, and the harmonies that pair with it.

FFEB3B

Notation conversions

NotationValue
HEXFFEB3B
RGBrgb(255, 235, 59)
HSLhsl(54, 100%, 62%)
CMYKcmyk(0%, 8%, 77%, 0%)
Relative luminance0.8099
Perceived brightness86.6 / 100
R=255 G=235 B=59 · hue 53.9° · saturation 100.0% · lightness 61.6%

Contrast against pure white and pure black

Pair this colour with the two extremes to see which is the safer text partner. AA needs 4.5:1 for body text and 3:1 for large text; AAA raises that to 7:1 and 4.5:1.

AgainstHexRatioAA textAA largeAAA text
#FFFFFFwhite1.22:1failfailfail
#000000black17.20:1passpasspass

Tints and shades

Lightness moves in ten-point steps while hue and saturation stay fixed, which keeps the colour recognisable in a scale. The last column is the ratio against white text, useful for deciding where a scale stops working as a background.

StepHexHSLvs white text
shade -30 #a19100hsl(54, 100%, 32%)3.20:1
shade -20 #d4be00hsl(54, 100%, 42%)1.88:1
shade -10 #ffe608hsl(54, 100%, 52%)1.27:1
tint +10 #fff06ehsl(54, 100%, 72%)1.17:1
tint +20 #fff5a1hsl(54, 100%, 82%)1.12:1
tint +30 #fffbd4hsl(54, 100%, 92%)1.05:1

Harmonies

SchemeHex
Complementary #3b4fff
Analogous −30 #ff893b
Analogous +30 #b1ff3b
Triadic −120 #eb3bff
Triadic +120 #3bffeb

Read back from the notation table, FFEB3B is rgb(255, 235, 59), which normalises to hue 53.9° at 100.0% saturation and 61.6% lightness. Its relative luminance of 0.8099 is what produces the two ratios above: 1.22:1 against white and 17.20:1 against black, a gap of 15.98. Position 18 of 69 in the colour library, it darkens to #a19100 thirty points lower on the lightness axis and lifts to #fffbd4 thirty higher, while the complementary rotation lands on #3b4fff.

Nearby colours

Frequently asked questions

What text colour should sit on FFEB3B?
Black gives 17.20:1 and white gives 1.22:1, so black wins at 17.20:1. That clears the 4.5:1 AA threshold for normal text and the 7:1 AAA threshold as well.

Do the CMYK numbers match a print workflow?
They are the naive conversion from RGB, which assumes no ink limit, no colour profile and no black generation strategy. Real print work needs a profile-aware conversion; the values here are the ones the converter reports and are best used as a starting point for a designer rather than a press-ready separations file.

Convert any other colour, or test a pair against each other, in the ColrShift colour converter and contrast checker. The colour library groups every entry on this site by hue family.