Color Scheme Explorer

cupcake base16 light

cupcake
lightcolorfulwarmlow-contrast
readability44/100light80%bg#fbf1f2fg#585062bg hue354°fg hue267°mean lightness66%saturation28%warmth+0.14mean hue360° redhue variation73°distinct hues8avg contrast2.6fg contrast6.9text on bgblackachromatic0

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.01.31.72.43.34.86.92.71.61.82.12.42.82.32.1
base011.0·1.31.72.33.34.76.82.61.61.82.02.42.72.22.1
base021.31.3·1.31.82.53.75.32.01.21.41.61.82.11.71.6
base031.71.71.3·1.41.92.84.01.51.11.01.21.41.61.31.2
base042.42.31.81.4·1.42.02.91.11.51.31.11.01.21.01.1
base053.33.32.51.91.4·1.42.11.32.11.91.61.41.21.51.6
base064.84.73.72.82.01.4·1.41.83.02.72.32.01.72.12.2
base076.96.85.34.02.92.11.4·2.64.33.93.42.92.53.03.2
base082.72.62.01.51.11.31.82.6·1.61.51.31.11.01.21.2
base091.61.61.21.11.52.13.04.31.6·1.11.31.51.71.41.3
base0a1.81.81.41.01.31.92.73.91.51.1·1.11.31.51.31.2
base0b2.12.01.61.21.11.62.33.41.31.31.1·1.21.31.11.0
base0c2.42.41.81.41.01.42.02.91.11.51.31.2·1.11.11.1
base0d2.82.72.11.61.21.21.72.51.01.71.51.31.1·1.21.3
base0e2.32.21.71.31.01.52.13.01.21.41.31.11.11.2·1.1
base0f2.12.11.61.21.11.62.23.21.21.31.21.01.11.31.1·

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"