equilibrium-gray-dark base16 dark
readability62/100dark99%bg#111111fg#e2e2e2bg hue–fg hue–mean lightness46%saturation43%warmth+0.15mean hue39° orangehue variation103°distinct hues7avg contrast5.8fg contrast14.6text on bgwhiteachromatic8
Colors
base00
base01
base02
base03
base04
base05
base06
base07
base08
base09
base0A
base0B
base0C
base0D
base0E
base0F
roygcbpb
Ramp is sorted by WCAG relative luminance; the strip maps the 8 ANSI roles (base08–base0F).
Code sample
package main
import "fmt"
const (
Version = "1.2.0" // release
MaxTries = 3
)
type Server struct {
Host string
Port int
}
func (s *Server) start(tls bool) error {
addr := fmt.Sprintf("%s:%d", s.Host, s.Port)
if tls {
return listen(addr, 443)
}
return listen(addr, 80)
}
#!/usr/bin/env python3
# syntax sample: hex to hsl
import math
def hex_to_hsl(hex_code):
r = int(hex_code[1:3], 16) / 255
g = int(hex_code[3:5], 16) / 255
b = int(hex_code[5:7], 16) / 255
mx = max(r, g, b)
mn = min(r, g, b)
l = (mx + mn) / 2
return round(l * 100)
#!/bin/sh
# build the project and run tests
set -e
PREFIX="$HOME/.local"
VERSION="1.2.0"
for pkg in gcc make git; do
if ! command -v "$pkg" >/dev/null 2>&1; then
echo "missing dependency: $pkg"
fi
done
echo "building v$VERSION"
make -j4 && make test
Analysis
WCAG contrast matrix
| vs | base00 | base01 | base02 | base03 | base04 | base05 | base06 | base07 | base08 | base09 | base0a | base0b | base0c | base0d | base0e | base0f |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| base00 | · | 1.1 | 1.2 | 4.2 | 6.0 | 8.2 | 11.1 | 14.6 | 5.0 | 5.0 | 6.0 | 5.0 | 5.0 | 5.2 | 5.0 | 5.0 |
| base01 | 1.1 | · | 1.1 | 3.8 | 5.5 | 7.5 | 10.1 | 13.3 | 4.6 | 4.6 | 5.4 | 4.6 | 4.6 | 4.7 | 4.6 | 4.6 |
| base02 | 1.2 | 1.1 | · | 3.4 | 4.8 | 6.6 | 8.9 | 11.7 | 4.0 | 4.0 | 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2 | 4.7 | 4.1 | 1.2 | 1.2 | 1.6 | 2.1 | 2.8 | 1.0 | 1.0 | 1.2 | 1.0 | 1.0 | · | 1.0 | 1.0 |
| base0e | 5.0 | 4.6 | 4.0 | 1.2 | 1.2 | 1.6 | 2.2 | 2.9 | 1.0 | 1.0 | 1.2 | 1.0 | 1.0 | 1.0 | · | 1.0 |
| base0f | 5.0 | 4.6 | 4.0 | 1.2 | 1.2 | 1.6 | 2.2 | 2.9 | 1.0 | 1.0 | 1.2 | 1.0 | 1.0 | 1.0 | 1.0 | · |
Each cell is the WCAG contrast ratio between the row color and the column color (darker cell = higher ratio). ≥4.5 passes AA for normal text, ≥7 passes AAA.
Terminal
user@host:~/dev/scheme$ ls -la -rw-r--r-- 8.9K user main.go -rw-r--r-- 5.8K user preview.go -rwxr-xr-x 9.9M user colorexplorer drwxr-xr-x 4096 user cache/ lrwxrwxrwx 11 user site -> public -rw-r--r-- 2400 user bundle.zip user@host:~/dev/scheme$ git diff --stat diff --git a/main.go b/main.go --- a/main.go +++ b/main.go @@ -12,7 +12,8 @@ - addr := ":8080" + addr := ":9090"