Color Scheme Explorer

danqing-light base16 light

danqing
lightcolorfulwarmhigh-contrast
readability41/100light97%bg#fcfefdfg#2d302fbg hue150°fg huemean lightness63%saturation42%warmth+0.13mean hue81° chartreusehue variation109°distinct hues7avg contrast3.6fg contrast13.2text on bgblackachromatic4

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.21.52.46.39.213.22.23.11.72.41.62.22.13.7
base011.1·1.11.32.25.88.412.12.12.81.52.21.52.11.93.4
base021.21.1·1.32.15.57.911.31.92.71.42.11.41.91.83.2
base031.51.31.3·1.74.46.39.11.52.11.11.61.11.51.42.6
base042.42.22.11.7·2.63.85.41.11.31.51.01.51.11.21.5
base056.35.85.54.42.6·1.42.12.82.13.82.74.02.83.11.7
base069.28.47.96.33.81.4·1.44.13.05.53.95.84.14.42.5
base0713.212.111.39.15.42.11.4·5.94.37.95.58.25.96.33.5
base082.22.11.91.51.12.84.15.9·1.41.31.11.41.01.11.7
base093.12.82.72.11.32.13.04.31.4·1.91.31.91.41.51.2
base0a1.71.51.41.11.53.85.57.91.31.9·1.41.01.31.22.2
base0b2.42.22.11.61.02.73.95.51.11.31.4·1.51.11.11.6
base0c1.61.51.41.11.54.05.88.21.41.91.01.5·1.41.32.3
base0d2.22.11.91.51.12.84.15.91.01.41.31.11.4·1.11.7
base0e2.11.91.81.41.23.14.46.31.11.51.21.11.31.1·1.8
base0f3.73.43.22.61.51.72.53.51.71.22.21.62.31.71.8·

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"