Export

Code

/* Cosmic White — colorset.net */
:root {
  --color-1: #F0F8FF;
  --color-2: #E6E6FA;
  --color-3: #FFF0F5;
  --color-4: #F0FFF0;
  --color-5: #FFFAF0;

  --color-bg: #FFFAF0;
  --color-surface: #F6F1E7;
  --color-border: #DED8CB;
  --color-text: #4E4E5F;
  --color-muted: #6B6B7C;
  --color-primary: #8A8A9D;
  --color-on-primary: #000000;
  --color-accent: #595968;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F0F14;
    --color-surface: #19191E;
    --color-border: #2D2D36;
    --color-text: #FFFAF0;
    --color-muted: #918D84;
    --color-primary: #E6E6FA;
    --color-on-primary: #0F0F14;
    --color-accent: #B0B0C0;
    --color-on-accent: #0F0F14;
  }
}

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 5adjusted for contrast · from #E6E6FA
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #E6E6FAfrom palette · color 5
Muted textderivedderived
Primaryadjusted for contrast · from #E6E6FAfrom palette · color 2
On primaryderivedderived
Accentadjusted for contrast · from #E6E6FAadjusted for contrast · from #E6E6FA
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.83:1AAA pass 4.5:1
Text on surface7.23:1AAA pass 4.5:1
Muted text on background5.02:1AA pass 4.5:1
Label on primary6.20:1AA pass 4.5:1
Label on accent6.88:1AA pass 4.5:1
Primary on background3.25:1AA Large pass 3:1
Accent on background6.61:1AA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background18.37:1AAA pass 4.5:1
Text on surface16.83:1AAA pass 4.5:1
Muted text on background5.78:1AA pass 4.5:1
Label on primary15.53:1AAA pass 4.5:1
Label on accent8.94:1AAA pass 4.5:1
Primary on background15.53:1AAA pass 3:1
Accent on background8.94: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#F0F8FF (Text 1)#E6E6FA (Text 2)#FFF0F5 (Text 3)#F0FFF0 (Text 4)#FFFAF0 (Text 5)
#F0F8FFSame color1.15—1.03—1.04—1.03—
#E6E6FA1.15—Same color1.12—1.19—1.18—
#FFF0F51.03—1.12—Same color1.06—1.06—
#F0FFF01.04—1.19—1.06—Same color1.00—
#FFFAF01.03—1.18—1.06—1.00—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#F0F8FF#E6E6FA#FFF0F5#F0FFF0#FFFAF0

Variations

About Cosmic White

Nearly all of the color weight in Cosmic White sits in neutral, which makes it a balanced palette anchored by off-white #F0F8FF. There is no real hue here; neutrals between #E6E6FA and #FFFAF0 do all the work with value contrast. All five colors stay in a narrow light band (93% to 99% lightness, #E6E6FA to #FFFAF0), so text and background roles are adjusted for contrast. Saturation is very low (mean OKLCH chroma 0.019, peaking at 0.027 in #E6E6FA); the palette is close to grayscale. Text contrast reaches 7.8:1 in light mode and 18.4:1 in dark mode, with #8A8A9D as primary and #595968 as accent. Try it for documentation sites, architecture studios and clean landing pages, letting cream #E6E6FA carry the key actions.

Cosmic White color palette: #F0F8FF, #E6E6FA, #FFF0F5, #F0FFF0, #FFFAF0
Share image for Cosmic White

Gradients in similar colors