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 keyword | yellow |
|---|---|
| HEX | #FFFF00 |
| RGB | rgb(255 255 0) |
| HSL | hsl(60 100% 50%) |
| OKLCH | oklch(96.8% 0.211 109.8) |
| White text | 1.07:1 · body text AA Fail |
| Black text | 19.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.
| Colour | HEX | Contrast with Yellow | Body text AA |
|---|---|---|---|
| Black | #111314 | 17.35:1 | Pass |
| Dull Violet Black | #1E0E3F | 16.44:1 | Pass |
| Slate Color | #34454C | 9.31:1 | Pass |
| Deep Lyons Blue | #1C4286 | 9.00:1 | Pass |
| Red | #A72144 | 6.64:1 | Pass |
| Diamine Green | #1A7444 | 5.39:1 | Pass |
| Carmine | #CC1236 | 5.28:1 | Pass |
| Blue | #006EB8 | 4.99:1 | Pass |
| Cerulian Blue | #0093A5 | 3.42:1 | Fail |
| Light Brown Drab | #B59392 | 2.59:1 | Fail |
| Fresh Color | #F6917E | 2.11:1 | Fail |
| Cream Yellow | #FDBF68 | 1.52:1 | Fail |
Palettes with Yellow
- Combination #22 Yellow · Deep Lyons Blue
- Combination #62 Yellow · Black
- Combination #68 Light Brown Drab · Yellow
- Combination #154 Carmine · Yellow · Blue
- Combination #240 Fresh Color · Yellow · Cerulian Blue
- Combination #251 Red · Yellow · Diamine Green · Slate Color
- Combination #295 Cream Yellow · Yellow · Blue · Dull Violet Black
- Combination #313 Carmine · Yellow · Diamine Green · Black
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.
- 100#FEFF55
- 200#EEEE00
- 300#D7D700
- 400#B9B900
- 500#999900
- 600#777700
- 700#595900
- 800#3D3D00
- 900#242400
: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