Skip to content

Instantly share code, notes, and snippets.

@svgeesus
Created September 7, 2023 12:39
Show Gist options
  • Save svgeesus/5b8e3327e66248f4294714903fa481be to your computer and use it in GitHub Desktop.
Save svgeesus/5b8e3327e66248f4294714903fa481be to your computer and use it in GitHub Desktop.

Slightly off

We're thinking that, like, an #eee or an #eef rather than a pure #fff, very short distance. We know for a fact that very often people reach for slightly off-white and off-black. That's from color design bible. Do #111 or #eee. That suggests we should be slightly off white/black for this. but it doesn't tell us exact value

let color1 = new Color("#111");
let color2 = new Color("black");
let color3 = new Color("#eee");
let color4 = new Color("white");

color1.deltaE(color2, "76");
color1.deltaE(color2, "2000");
color1.deltaE(color2, "ok");

color3.deltaE(color4, "76");
color3.deltaE(color4, "2000");
color3.deltaE(color4, "ok");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment