Color Scheme Explorer

Monokai curated dark

by Wimer Hazenberg · monokai
darkvividwarmhigh-contrast
readability62/100dark96%bg#272822fg#f8f8f2bg hue70°fg hue60°mean lightness61%saturation64%warmth+0.17mean hue46° yellowhue variation104°distinct hues6avg contrast8.1fg contrast13.9text on bgwhiteachromatic0

Colors

background
foreground
comment
red
orange
yellow
green
cyan
blue
purple
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
vsbackgroundforegroundcommentredorangeyellowgreencyanbluepurple
background·13.93.03.96.810.49.611.39.05.2
foreground13.9·4.63.62.01.31.51.21.52.7
comment3.04.6·1.32.23.43.23.73.01.7
red3.93.61.3·1.72.72.42.92.31.3
orange6.82.02.21.7·1.51.41.71.31.3
yellow10.41.33.42.71.5·1.11.11.22.0
green9.61.53.22.41.41.1·1.21.11.8
cyan11.31.23.72.91.71.11.2·1.32.2
blue9.01.53.02.31.31.21.11.3·1.7
purple5.22.71.71.31.32.01.82.21.7·

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"