跳到主要內容

IBM 5153 CGA

IBM 5153 CGA 是一套深色終端機配色(鮮豔),背景色 #141414,文字色 #cecece,對比度 11.7:1

取得設定檔
背景色
#141414
前景色
#cecece
文字對比度
11.71:1AAA
強調色對比度
7.33:1最低 1.85
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
❯

IBM 5153 CGA 的設定檔

16 種格式,都從同一份色票產生

IBM 5153 CGA

存到 ~/.config/ghostty/themes/IBM 5153 CGA,再在 config 或 config.ghostty 裡寫 theme = IBM 5153 CGA

更多 Ghostty 配色
原始檔
# Theme: IBM 5153 CGA (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/ibm-5153-cga?format=ghostty

palette = 0=#141414
palette = 1=#d03333
palette = 2=#1bd01b
palette = 3=#d08c1b
palette = 4=#1b1bd0
palette = 5=#d01bd0
palette = 6=#1bd0d0
palette = 7=#cecece
palette = 8=#4e4e4e
palette = 9=#dc4e4e
palette = 10=#4edc4e
palette = 11=#f3f34e
palette = 12=#4e4edc
palette = 13=#f34ef3
palette = 14=#4ef3f3
palette = 15=#ffffff
background = #141414
foreground = #cecece
cursor-color = #cecece
cursor-text = #141414
selection-background = #cecece
selection-foreground = #141414

IBM 5153 CGA 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)—
前景色foreground#cececergb(206 206 206)hsl(0 0% 81%)oklch(85.1% 0.000 0)11.71 AAA
游標cursor#cececergb(206 206 206)hsl(0 0% 81%)oklch(85.1% 0.000 0)11.71 AAA
游標文字cursorText#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)1.00 低於 AA
選取範圍selection#cececergb(206 206 206)hsl(0 0% 81%)oklch(85.1% 0.000 0)11.71 AAA
選取文字selectionText#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)1.00 低於 AA
黑color0#141414rgb(20 20 20)hsl(0 0% 8%)oklch(19.1% 0.000 0)1.00 低於 AA
紅color1#d03333rgb(208 51 51)hsl(0 63% 51%)oklch(56.6% 0.194 26.0)3.69 AA 大字級
綠color2#1bd01brgb(27 208 27)hsl(120 77% 46%)oklch(74.5% 0.245 142.6)8.85 AAA
黃color3#d08c1brgb(208 140 27)hsl(37 77% 46%)oklch(69.2% 0.141 72.9)6.53 AA
藍color4#1b1bd0rgb(27 27 208)hsl(240 77% 46%)oklch(40.9% 0.254 267.5)1.85 低於 AA
洋紅color5#d01bd0rgb(208 27 208)hsl(300 77% 46%)oklch(60.8% 0.268 328.3)4.17 AA 大字級
青color6#1bd0d0rgb(27 208 208)hsl(180 77% 46%)oklch(77.8% 0.130 194.8)9.63 AAA
白color7#cececergb(206 206 206)hsl(0 0% 81%)oklch(85.1% 0.000 0)11.71 AAA
亮黑color8#4e4e4ergb(78 78 78)hsl(0 0% 31%)oklch(42.4% 0.000 0)2.21 低於 AA
亮紅color9#dc4e4ergb(220 78 78)hsl(0 67% 58%)oklch(61.8% 0.178 23.9)4.60 AA
亮綠color10#4edc4ergb(78 220 78)hsl(120 67% 58%)oklch(79.0% 0.220 143.1)10.24 AAA
亮黃color11#f3f34ergb(243 243 78)hsl(60 87% 63%)oklch(93.6% 0.178 109.4)15.56 AAA
亮藍color12#4e4edcrgb(78 78 220)hsl(240 67% 58%)oklch(51.4% 0.210 276.1)3.02 AA 大字級
亮洋紅color13#f34ef3rgb(243 78 243)hsl(300 87% 63%)oklch(71.1% 0.265 327.9)6.31 AA
亮青color14#4ef3f3rgb(78 243 243)hsl(180 87% 63%)oklch(88.2% 0.133 195.0)13.54 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.42 AAA

關於 IBM 5153 CGA

IBM 5153 CGA 採用中性色調的深色背景(#141414),預設前景色為 #cecece。內文的 WCAG 對比度為 11.71:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.33:1,最低 1.85:1。

色票整體色彩彩度較高,其中紅色為 #d03333、綠色為 #1bd01b、藍色為 #1b1bd0、洋紅為 #d01bd0。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合式終端機、CSS 變數、Tailwind CSS 及 JSON 色票格式。

與 IBM 5153 CGA 相似的配色

資料來源:iTerm2 Color Schemes (MIT)