Export

Code

/* Cotton White — colorset.net */
:root {
  --color-1: #F8F8F8;
  --color-2: #F2F2F2;
  --color-3: #ECECEC;
  --color-4: #E6E6E6;
  --color-5: #E0E0E0;

  --color-bg: #F8F8F8;
  --color-surface: #EFEFEF;
  --color-border: #D9D5D6;
  --color-text: #4F4F4F;
  --color-muted: #6B6B6B;
  --color-primary: #888888;
  --color-on-primary: #000000;
  --color-accent: #575757;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F0F0F;
    --color-surface: #191919;
    --color-border: #302D2E;
    --color-text: #F8F8F8;
    --color-muted: #8C8C8C;
    --color-primary: #E0E0E0;
    --color-on-primary: #0F0F0F;
    --color-accent: #AAAAAA;
    --color-on-accent: #0F0F0F;
  }
}

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 1adjusted for contrast · from #E0E0E0
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #E0E0E0from palette · color 1
Muted textderivedderived
Primaryadjusted for contrast · from #E0E0E0from palette · color 5
On primaryderivedderived
Accentadjusted for contrast · from #E0E0E0adjusted for contrast · from #E0E0E0
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.71:1AAA pass 4.5:1
Text on surface7.12:1AAA pass 4.5:1
Muted text on background5.02:1AA pass 4.5:1
Label on primary5.92:1AA pass 4.5:1
Label on accent7.23:1AAA pass 4.5:1
Primary on background3.34:1AA Large pass 3:1
Accent on background6.80:1AA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background18.05:1AAA pass 4.5:1
Text on surface16.56:1AAA pass 4.5:1
Muted text on background5.70:1AA pass 4.5:1
Label on primary14.52:1AAA pass 4.5:1
Label on accent8.25:1AAA pass 4.5:1
Primary on background14.52:1AAA pass 3:1
Accent on background8.25: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#F8F8F8 (Text 1)#F2F2F2 (Text 2)#ECECEC (Text 3)#E6E6E6 (Text 4)#E0E0E0 (Text 5)
#F8F8F8Same color1.05—1.11—1.18—1.24—
#F2F2F21.05—Same color1.06—1.11—1.18—
#ECECEC1.11—1.06—Same color1.06—1.12—
#E6E6E61.18—1.11—1.06—Same color1.06—
#E0E0E01.24—1.18—1.12—1.06—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#F8F8F8#F2F2F2#ECECEC#E6E6E6#E0E0E0

Variations

About Cotton White

Five colors make up Cotton White, a balanced neutral set: #F8F8F8, #F2F2F2, #ECECEC, #E6E6E6, #E0E0E0. Every color is a neutral, from #F8F8F8 down to #E0E0E0, so the palette works through light and shade alone. From #E0E0E0 to #F8F8F8 the colors share a similar light value (lightness 91%–98%), which suits fills and illustration more than body text. There is effectively no chroma in any of the colors, so #ECECEC and the rest read as pure grays. As a UI theme it uses #888888 for primary actions and #575757 as the accent; dark mode sits on #0F0F0F with #F8F8F8 text (18.0:1). Try it for e-commerce product pages, documentation and reading apps, letting light gray #E0E0E0 carry the key actions.

Cotton White color palette: #F8F8F8, #F2F2F2, #ECECEC, #E6E6E6, #E0E0E0
Share image for Cotton White

Gradients in similar colors