Swatchproof

Yellow #FFFF00

Yellow is one of the named colours in CSS, written yellow. Black text reaches 19.56:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordyellow
HEX#FFFF00
RGBrgb(255 255 0)
HSLhsl(60 100% 50%)
OKLCHoklch(96.8% 0.211 109.8)
White text1.07:1 · body text AA Fail
Black text19.56:1 · body text AA Pass

Colours that go with Yellow

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Yellow (#FFF200), close. These are the colours Wada paired it with, ranked by their contrast with Yellow itself.

ColourHEXContrast with YellowBody text AA
Black#11131417.35:1Pass
Dull Violet Black#1E0E3F16.44:1Pass
Slate Color#34454C9.31:1Pass
Deep Lyons Blue#1C42869.00:1Pass
Red#A721446.64:1Pass
Diamine Green#1A74445.39:1Pass
Carmine#CC12365.28:1Pass
Blue#006EB84.99:1Pass
Cerulian Blue#0093A53.42:1Fail
Light Brown Drab#B593922.59:1Fail
Fresh Color#F6917E2.11:1Fail
Cream Yellow#FDBF681.52:1Fail

Palettes with Yellow

Shades and tints of Yellow

Nine lightness steps in OKLCH that keep the hue of Yellow. Chroma is reduced only where sRGB cannot show it.

:root {
  --yellow-100: #FEFF55;
  --yellow-200: #EEEE00;
  --yellow-300: #D7D700;
  --yellow-400: #B9B900;
  --yellow-500: #999900;
  --yellow-600: #777700;
  --yellow-700: #595900;
  --yellow-800: #3D3D00;
  --yellow-900: #242400;
}

Text that keeps Yellow on screen

Text #242400 on #FFFF00 reaches 14.73:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours