Swatchproof

Yellow #FFF200

Yellow appears in 8 of the 348 combinations in Sanzo Wada's A Dictionary of Color Combinations. Black text reaches 17.95:1 on Yellow, so use black.

Colour codes

HEX#FFF200
RGBrgb(255 242 0)
OKLCHoklch(94.1% 0.200 105.7)
White text1.17:1 · body text AA Fail
Black text17.95:1 · body text AA Pass

Wada's partners for Yellow, by contrast

Every colour Wada combined with Yellow, ranked by contrast. Pairs at 4.5:1 or more work for body text.

ColourHEXRatioBody text AA
Black#11131415.93:1Pass
Dull Violet Black#1E0E3F15.09:1Pass
Slate Color#34454C8.54:1Pass
Deep Lyons Blue#1C42868.26:1Pass
Red#A721446.10:1Pass
Diamine Green#1A74444.95:1Pass
Carmine#CC12364.84:1Pass
Blue#006EB84.58:1Pass
Cerulian Blue#0093A53.14:1Fail
Light Brown Drab#B593922.38:1Fail
Fresh Color#F6917E1.94:1Fail
Cream Yellow#FDBF681.40:1Fail

Palettes with Yellow

Similar colours

The nearest CSS named colour is Yellow (yellow, #FFFF00).