High contrast · Dark theme
Yellow on Charcoal
Yellow text on dark charcoal grey with pale cyan links and white buttons, the yellow-on-black pairing without the pure black.
Preview
Field notes · 4 minute read
How tide pools keep their colour
At low tide the rock holds small pools of sea water. Each one is a link you have not opened, and beside it one you already have. A value such as depth: 12cm sits in a code chip.
A good theme keeps a quote readable without making it shout.
| Pool | Depth | Seen |
|---|---|---|
| North ledge | 12 cm | Anemone, limpets |
| Split rock | 30 cm | Shore crab |
A sample page in Yellow on Charcoal's ten colours. Compare it live with the other themes.
Contrast in plain words
Body text is #fff176 on #171717, a
contrast of 15.5:1. That passes the stricter WCAG AAA level for body text (7:1).
Links come out at 11.2:1 and muted text at 9.6:1 against the background. The perceptual lightness gap between text and background is 0.74 on a scale from 0 to 1.
Use Yellow on Charcoal on the sites you open.
Free in Dark Mode Alpha, along with every other theme. Give it to one site or to all of them.
Palette
| Colour | Hex | Used for | Copy |
|---|---|---|---|
| Background | #171717 | The page behind everything | |
| Surface | #242424 | Cards, panels and raised areas | |
| Text | #fff176 | Body text and headings | |
| Muted text | #c9bf7f | Captions and secondary text | |
| Link | #8ad8f0 | Links you have not opened | |
| Visited link | #bb9fe8 | Links you have opened | |
| Accent | #ffffff | Buttons and highlights | |
| Border | #4a4630 | Lines and outlines | |
| Selection | #5a500f | Behind text you select | |
| Scrollbar | #3a3720 | The scrollbar thumb |
CSS variables
/* Yellow on Charcoal — Dark Mode Alpha */
:root {
color-scheme: dark;
--dma-background: #171717;
--dma-surface: #242424;
--dma-text: #fff176;
--dma-muted: #c9bf7f;
--dma-link: #8ad8f0;
--dma-visited: #bb9fe8;
--dma-accent: #ffffff;
--dma-border: #4a4630;
--dma-selection: #5a500f;
--dma-scrollbar: #3a3720;
}
Paste the block into your own stylesheet to use these colours, for example
background: var(--dma-background).
Contrast figures
| Pair | Ratio | WCAG |
|---|---|---|
| Body text text on background | 15.5:1 | AAA |
| Text on panels text on surface | 13.4:1 | AAA |
| Muted text muted on background | 9.6:1 | AAA |
| Links link on background | 11.2:1 | AAA |
| Visited links visited on background | 7.9:1 | AAA |
| Accent accent on background | 17.9:1 | AAA |
AAA means at least 7:1, AA at least 4.5:1, and "AA large" at least 3:1, which is enough for large text and interface parts but not for body text.
Family and collections
Yellow on Charcoal belongs to the High contrast family: the brightest text on the darkest backgrounds, with strongly marked links.
- High contrast and low vision The strongest text contrast, with links and buttons that stand out clearly, including yellow on black. Some people with low vision prefer these.
Credit
Yellow on Charcoal is an original palette by Carolinas Dev. Palettes that build on open-source work are listed on the credits page.
Similar themes
The closest themes to Yellow on Charcoal by background, text and link colour.