Export

Code

/* Gallery Gray — colorset.net */
:root {
  --color-1: #212121;
  --color-2: #424242;
  --color-3: #757575;
  --color-4: #BDBDBD;
  --color-5: #F5F5F5;

  --color-bg: #F5F5F5;
  --color-surface: #FCFCFC;
  --color-border: #DFDBDC;
  --color-text: #212121;
  --color-muted: #6F6F6F;
  --color-primary: #757575;
  --color-on-primary: #FFFFFF;
  --color-accent: #8C8C8C;
  --color-on-accent: #212121;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #212121;
    --color-surface: #2C2C2C;
    --color-border: #444142;
    --color-text: #F5F5F5;
    --color-muted: #949494;
    --color-primary: #757575;
    --color-on-primary: #FFFFFF;
    --color-accent: #BDBDBD;
    --color-on-accent: #212121;
  }
}

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
Backgroundfrom palette · color 5from palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1from palette · color 5
Muted textderivedderived
Primaryfrom palette · color 3from palette · color 3
On primaryderivedderived
Accentadjusted for contrast · from #757575from palette · color 4
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background14.77:1AAA pass 4.5:1
Text on surface15.69:1AAA pass 4.5:1
Muted text on background4.61:1AA pass 4.5:1
Label on primary4.61:1AA pass 4.5:1
Label on accent4.79:1AA pass 4.5:1
Primary on background4.23:1AA Large pass 3:1
Accent on background3.08:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background14.77:1AAA pass 4.5:1
Text on surface12.81:1AAA pass 4.5:1
Muted text on background5.31:1AA pass 4.5:1
Label on primary4.61:1AA pass 4.5:1
Label on accent8.57:1AAA pass 4.5:1
Primary on background3.49:1AA Large pass 3:1
Accent on background8.57:1AAA 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#212121 (Text 1)#424242 (Text 2)#757575 (Text 3)#BDBDBD (Text 4)#F5F5F5 (Text 5)
#212121Same color1.60—3.49AA Large8.57AAA14.77AAA
#4242421.60—Same color2.18—5.35AA9.22AAA
#7575753.49AA Large2.18—Same color2.45—4.23AA Large
#BDBDBD8.57AAA5.35AA2.45—Same color1.72—
#F5F5F514.77AAA9.22AAA4.23AA Large1.72—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#212121#424242#757575#BDBDBD#F5F5F5

Variations

About Gallery Gray

Five colors make up Gallery Gray, a balanced neutral set: #212121, #424242, #757575, #BDBDBD, #F5F5F5. Every color is a neutral, from #F5F5F5 down to #212121, so the palette works through light and shade alone. A 72-point lightness range (25% for #212121 to 97% for #F5F5F5) gives strong value contrast, useful for text on background. There is effectively no chroma in any of the colors, so #757575 and the rest read as pure grays. In light mode #F5F5F5 becomes the background with #212121 text at 14.8:1, and #757575 takes the primary role. Try it for architecture studios, documentation sites and editorial layouts, letting gray #757575 carry the key actions.

Gallery Gray color palette: #212121, #424242, #757575, #BDBDBD, #F5F5F5
Share image for Gallery Gray

Gradients in similar colors