Color Scheme Explorer

One Dark (Atom) curated dark

by Atom Project · one-dark
darkcolorful
readability66/100dark95%bg#282c34fg#abb2bfbg hue220°fg hue219°mean lightness57%saturation45%warmth+0.02mean hue324° rosehue variation128°distinct hues7avg contrast5.6fg contrast6.6text on bgwhiteachromatic0

Colors

background
comment
foreground
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
vsbackgroundcommentforegroundredorangeyellowgreencyanbluepurple
background·2.36.64.45.78.16.95.95.94.8
comment2.3·2.81.92.53.53.02.62.62.1
foreground6.62.8·1.51.21.21.11.11.11.4
red4.41.91.5·1.31.91.61.31.41.1
orange5.72.51.21.3·1.41.21.01.01.2
yellow8.13.51.21.91.4·1.21.41.41.7
green6.93.01.11.61.21.2·1.21.21.5
cyan5.92.61.11.31.01.41.2·1.01.2
blue5.92.61.11.41.01.41.21.0·1.2
purple4.82.11.41.11.21.71.51.21.2·

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"