Color Scheme Explorer

Dracula curated dark

by Zeno Rocha · dracula
darkcolorfulvividwarmhigh-contrast
readability62/100dark95%bg#282a36fg#f8f8f2bg hue231°fg hue60°mean lightness61%saturation64%warmth+0.12mean hue6° redhue variation114°distinct hues8avg contrast7.1fg contrast13.4text on bgwhiteachromatic0

Colors

background
current lin…
selection
foreground
comment
cyan
green
orange
pink
purple
red
yellow
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
vsbackgroundcurrent liselectionforegroundcommentcyangreenorangepinkpurpleredyellow
background·1.61.613.43.010.310.48.46.05.94.512.7
current li1.6·1.08.61.96.66.75.43.83.82.98.2
selection1.61.0·8.61.96.66.75.43.83.82.98.2
foreground13.48.68.6·4.41.31.31.62.22.32.91.0
comment3.01.91.94.4·3.43.42.82.02.01.54.2
cyan10.36.66.61.33.4·1.01.21.71.72.31.2
green10.46.76.71.33.41.0·1.21.71.82.31.2
orange8.45.45.41.62.81.21.2·1.41.41.81.5
pink6.03.83.82.22.01.71.71.4·1.01.32.1
purple5.93.83.82.32.01.71.81.41.0·1.32.2
red4.52.92.92.91.52.32.31.81.31.3·2.8
yellow12.78.28.21.04.21.21.21.52.12.22.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"