Export

Code

/* Library Card — colorset.net */
:root {
  --color-1: #F8F1E3;
  --color-2: #7A462E;
  --color-3: #4675A4;
  --color-4: #9E7853;
  --color-5: #2F190F;

  --color-bg: #F8F1E3;
  --color-surface: #FDF9F0;
  --color-border: #E1D8C7;
  --color-text: #2F190F;
  --color-muted: #81665A;
  --color-primary: #4675A4;
  --color-on-primary: #FFFFFF;
  --color-accent: #9E7853;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #2F190F;
    --color-surface: #3B241A;
    --color-border: #52392E;
    --color-text: #F8F1E3;
    --color-muted: #979184;
    --color-primary: #4978A7;
    --color-on-primary: #FFFFFF;
    --color-accent: #9E7853;
    --color-on-accent: #000000;
  }
}

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

Contrast

Light mode
PairSampleRatioWCAG
Text on background14.75:1AAA pass 4.5:1
Text on surface15.78:1AAA pass 4.5:1
Muted text on background4.69:1AA pass 4.5:1
Label on primary4.84:1AA pass 4.5:1
Label on accent5.27:1AA pass 4.5:1
Primary on background4.30:1AA Large pass 3:1
Accent on background3.55:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background14.75:1AAA pass 4.5:1
Text on surface12.86:1AAA pass 4.5:1
Muted text on background5.29:1AA pass 4.5:1
Label on primary4.64:1AA pass 4.5:1
Label on accent5.27:1AA pass 4.5:1
Primary on background3.57:1AA Large pass 3:1
Accent on background4.16: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#F8F1E3 (Text 1)#7A462E (Text 2)#4675A4 (Text 3)#9E7853 (Text 4)#2F190F (Text 5)
#F8F1E3Same color6.81AA4.30AA Large3.55AA Large14.75AAA
#7A462E6.81AASame color1.58—1.92—2.17—
#4675A44.30AA Large1.58—Same color1.21—3.43AA Large
#9E78533.55AA Large1.92—1.21—Same color4.16AA Large
#2F190F14.75AAA2.17—3.43AA Large4.16AA LargeSame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#F8F1E3#7A462E#4675A4#9E7853#2F190F

Variations

About Library Card

Leather-bound brown with a fountain-pen blue for reading clubs and literature courses. About 64% of the color weight in Library Card sits in brown, which makes it a warm palette anchored by blue #4675A4. A 175° hue spread puts blue against brown #9E7853, close to a complementary contrast. Lightness runs from 24% to 96% (OKLCH), with #4675A4 in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is low (mean OKLCH chroma 0.060, peaking at 0.090 in #4675A4); the colors feel soft and muted. In light mode #F8F1E3 becomes the background with #2F190F text at 14.7:1, and #4675A4 takes the primary role. Its muted character, led by #4675A4, suits coffee shops, leather and craft goods and interior design.

Library Card color palette: #F8F1E3, #7A462E, #4675A4, #9E7853, #2F190F
Share image for Library Card

Gradients in similar colors