Color Scheme Explorer

materia base16 dark

materia
darkcolorfulwarmhigh-contrast
readability58/100dark94%bg#263238fg#ffffffbg hue200°fg huemean lightness61%saturation47%warmth+0.17mean hue150° springhue variation151°distinct hues7avg contrast6.4fg contrast13.2text on bgwhiteachromatic1

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

Analysis

hue wheel
hue histogram
<1.21.2234.5≥7
contrast buckets
WCAG contrast matrix
vsbase00base01base02base03base04base05base06base07base08base09base0abase0bbase0cbase0dbase0ebase0f
base00·1.11.42.98.28.89.513.24.05.68.77.47.18.75.74.0
base011.1·1.22.77.47.98.611.93.65.17.96.76.47.95.23.6
base021.41.2·2.26.06.46.99.62.94.16.45.45.26.44.22.9
base032.92.72.2·2.83.03.24.51.41.93.02.52.43.02.01.4
base048.27.46.02.8·1.11.21.62.01.51.11.11.21.11.42.0
base058.87.96.43.01.1·1.11.52.21.61.01.21.21.01.52.2
base069.58.66.93.21.21.1·1.42.41.71.11.31.31.11.72.4
base0713.211.99.64.51.61.51.4·3.32.31.51.81.91.52.33.3
base084.03.62.91.42.02.22.43.3·1.42.21.81.82.21.41.0
base095.65.14.11.91.51.61.72.31.4·1.51.31.31.51.01.4
base0a8.77.96.43.01.11.01.11.52.21.5·1.21.21.01.52.2
base0b7.46.75.42.51.11.21.31.81.81.31.2·1.01.21.31.8
base0c7.16.45.22.41.21.21.31.91.81.31.21.0·1.21.21.8
base0d8.77.96.43.01.11.01.11.52.21.51.01.21.2·1.52.2
base0e5.75.24.22.01.41.51.72.31.41.01.51.31.21.5·1.4
base0f4.03.62.91.42.02.22.43.31.01.42.21.81.82.21.4·

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"