Skip to content

X Madrid

X Madrid is a light terminal color scheme with a #fafafa background and #1a1a1a text (16.7:1 contrast)

Get config
Background
#fafafa
Foreground
#1a1a1a
Text contrast
16.67:1AAA
Accent contrast
6.35:1min 4.70
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status — Konsole
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯ ls -la
drwxr-xr-x 12 ada staff 384 Oct 30 09:12 .
drwxr-xr-x 8 ada staff 256 Oct 29 18:40 ..
-rw-r--r-- 1 ada staff 1.2K Oct 30 09:10 .gitignore
drwxr-xr-x 5 ada staff 160 Oct 30 09:12 src
drwxr-xr-x 3 ada staff 96 Oct 28 11:02 public
-rwxr-xr-x 1 ada staff 2.4K Oct 30 08:57 build.sh
-rw-r--r-- 1 ada staff 4.1K Oct 30 09:01 package.json
lrwxr-xr-x 1 ada staff 18 Oct 27 14:33 node_modules -> ../cache/modules
-rw-r--r-- 1 ada staff 48K Oct 26 10:15 logo.png
-rw-r--r-- 1 ada staff 9.8M Oct 25 21:47 backup.tar.gz
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯ git status
On branch main
Your branch is ahead of 'origin/main' by 2 commits.
Changes to be committed:
new file: src/theme.css
modified: README.md
Changes not staged for commit:
modified: src/app.tsx
deleted: legacy/colors.js
Untracked files:
notes.md
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯

X Madrid configs

16 formats, all from one palette

X Madrid

Save to ~/.config/ghostty/themes/X Madrid, then set theme = X Madrid in config or config.ghostty

More Ghostty themes
Raw file
# Theme: X Madrid (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/en/schemes/x-madrid?format=ghostty

palette = 0=#fafafa
palette = 1=#990026
palette = 2=#007a28
palette = 3=#8a6408
palette = 4=#007a9e
palette = 5=#4d2699
palette = 6=#007a9e
palette = 7=#1a1a1a
palette = 8=#4d4d4d
palette = 9=#990026
palette = 10=#007a28
palette = 11=#8a6408
palette = 12=#007a9e
palette = 13=#4d2699
palette = 14=#007a9e
palette = 15=#1a1a1a
background = #fafafa
foreground = #1a1a1a
cursor-color = #1a1a1a
cursor-text = #fafafa
selection-background = #1a1a1a
selection-foreground = #fafafa

X Madrid palette

Palette color values and WCAG contrast ratios against the background
ColorSlotHEXRGBHSLOKLCHContrast
Backgroundbackground#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)—
Foregroundforeground#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA
Cursorcursor#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA
Cursor textcursorText#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)1.00 Fail
Selectionselection#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA
Selection textselectionText#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)1.00 Fail
Blackcolor0#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)1.00 Fail
Redcolor1#990026rgb(153 0 38)hsl(345 100% 30%)oklch(43.2% 0.173 19.5)8.44 AAA
Greencolor2#007a28rgb(0 122 40)hsl(140 100% 24%)oklch(50.5% 0.151 146.7)5.27 AA
Yellowcolor3#8a6408rgb(138 100 8)hsl(42 89% 29%)oklch(52.9% 0.106 81.7)5.15 AA
Bluecolor4#007a9ergb(0 122 158)hsl(194 100% 31%)oklch(54.1% 0.105 227.3)4.70 AA
Magentacolor5#4d2699rgb(77 38 153)hsl(260 60% 37%)oklch(39.5% 0.174 291.9)9.80 AAA
Cyancolor6#007a9ergb(0 122 158)hsl(194 100% 31%)oklch(54.1% 0.105 227.3)4.70 AA
Whitecolor7#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA
Bright Blackcolor8#4d4d4drgb(77 77 77)hsl(0 0% 30%)oklch(42.0% 0.000 0)8.10 AAA
Bright Redcolor9#990026rgb(153 0 38)hsl(345 100% 30%)oklch(43.2% 0.173 19.5)8.44 AAA
Bright Greencolor10#007a28rgb(0 122 40)hsl(140 100% 24%)oklch(50.5% 0.151 146.7)5.27 AA
Bright Yellowcolor11#8a6408rgb(138 100 8)hsl(42 89% 29%)oklch(52.9% 0.106 81.7)5.15 AA
Bright Bluecolor12#007a9ergb(0 122 158)hsl(194 100% 31%)oklch(54.1% 0.105 227.3)4.70 AA
Bright Magentacolor13#4d2699rgb(77 38 153)hsl(260 60% 37%)oklch(39.5% 0.174 291.9)9.80 AAA
Bright Cyancolor14#007a9ergb(0 122 158)hsl(194 100% 31%)oklch(54.1% 0.105 227.3)4.70 AA
Bright Whitecolor15#1a1a1argb(26 26 26)hsl(0 0% 10%)oklch(21.8% 0.000 0)16.67 AAA

About X Madrid

X Madrid is a light terminal color scheme built on a neutral #fafafa background with #1a1a1a as the default foreground. Body text reaches a 16.67:1 WCAG contrast ratio (AAA), while the 12 ANSI accent colors average 6.35:1 (minimum 4.70:1).

Its palette is moderately saturated, anchored by #990026 red, #007a28 green, #007a9e blue, and #4d2699 magenta.

Ready-to-use configs can be exported for Ghostty, iTerm2, Kitty, Alacritty, WezTerm, Windows Terminal, Warp, foot, Rio, XFCE4 Terminal, and Xresources, along with VS Code and Zed integrated terminals, CSS variables, Tailwind CSS, and JSON.

Published upstream with an identical palette under the names Madrid

Schemes similar to X Madrid

Source: iTerm2 Color Schemes (MIT)