Export

Code

/* Grayscale — colorset.net */
:root {
  --color-1: #1A1A1A;
  --color-2: #4D4D4D;
  --color-3: #808080;
  --color-4: #B3B3B3;
  --color-5: #E6E6E6;

  --color-bg: #F7F7F7;
  --color-surface: #EDEDED;
  --color-border: #D8D3D5;
  --color-text: #1A1A1A;
  --color-muted: #6A6A6A;
  --color-primary: #808080;
  --color-on-primary: #000000;
  --color-accent: #4D4D4D;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1A1A1A;
    --color-surface: #252525;
    --color-border: #3C393A;
    --color-text: #E6E6E6;
    --color-muted: #8E8E8E;
    --color-primary: #808080;
    --color-on-primary: #000000;
    --color-accent: #6E6E6E;
    --color-on-accent: #FFFFFF;
  }
}

Color values

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundadjusted for contrast · from #E6E6E6from palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1from palette · color 5
Muted textderivedderived
Primaryfrom palette · color 3from palette · color 3
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #808080
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background16.25:1AAA pass 4.5:1
Text on surface14.87:1AAA pass 4.5:1
Muted text on background5.05:1AA pass 4.5:1
Label on primary5.32:1AA pass 4.5:1
Label on accent8.45:1AAA pass 4.5:1
Primary on background3.69:1AA Large pass 3:1
Accent on background7.89:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background13.94:1AAA pass 4.5:1
Text on surface12.28:1AAA pass 4.5:1
Muted text on background5.31:1AA pass 4.5:1
Label on primary5.32:1AA pass 4.5:1
Label on accent5.10:1AA pass 4.5:1
Primary on background4.41:1AA Large pass 3:1
Accent on background3.41:1AA Large pass 3:1

Every color on every color

Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.

Every color on every color
Background / Text#1A1A1A (Text 1)#4D4D4D (Text 2)#808080 (Text 3)#B3B3B3 (Text 4)#E6E6E6 (Text 5)
#1A1A1ASame color2.06—4.41AA Large8.30AAA13.94AAA
#4D4D4D2.06—Same color2.14—4.03AA Large6.77AA
#8080804.41AA Large2.14—Same color1.88—3.16AA Large
#B3B3B38.30AAA4.03AA Large1.88—Same color1.68—
#E6E6E613.94AAA6.77AA3.16AA Large1.68—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#1A1A1A#4D4D4D#808080#B3B3B3#E6E6E6

Variations

About Grayscale

Nearly all of the color weight in Grayscale sits in neutral, which makes it a balanced palette anchored by gray #808080. There is no real hue here; neutrals between #1A1A1A and #E6E6E6 do all the work with value contrast. Lightness runs from 22% to 92% (OKLCH), with #808080 in between, a wide range that leaves room for readable text and clear backgrounds. Chroma stays at zero across the set; even #808080 in the middle is a true gray. In light mode #F7F7F7 becomes the background with #1A1A1A text at 16.2:1, and #808080 takes the primary role. With #808080 leading, good fits include minimal portfolios, editorial layouts and architecture studios.

Grayscale color palette: #1A1A1A, #4D4D4D, #808080, #B3B3B3, #E6E6E6
Share image for Grayscale

Gradients in similar colors