跳到正文

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/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)