Basic Colors

Export

Code

/* Basic Colors — colorset.net */
:root {
  --color-1: #000000;
  --color-2: #FFFFFF;
  --color-3: #696969;
  --color-4: #FFD700;
  --color-5: #DC143C;

  --color-bg: #FFFFFF;
  --color-surface: #F6F6F6;
  --color-border: #E0DCDD;
  --color-text: #000000;
  --color-muted: #4D4D4D;
  --color-primary: #DC143C;
  --color-on-primary: #FFFFFF;
  --color-accent: #A78C00;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-surface: #000000;
    --color-border: #090707;
    --color-text: #FFFFFF;
    --color-muted: #7A7A7A;
    --color-primary: #DC143C;
    --color-on-primary: #FFFFFF;
    --color-accent: #FFD700;
    --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 2from palette · color 1
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1from palette · color 2
Muted textderivedderived
Primaryfrom palette · color 5from palette · color 5
On primaryderivedderived
Accentadjusted for contrast · from #696969from palette · color 4
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background21.00:1AAA pass 4.5:1
Text on surface19.43:1AAA pass 4.5:1
Muted text on background8.45:1AAA pass 4.5:1
Label on primary4.99:1AA pass 4.5:1
Label on accent6.39:1AA pass 4.5:1
Primary on background4.99:1AA pass 3:1
Accent on background3.28:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background21.00:1AAA pass 4.5:1
Text on surface21.00:1AAA pass 4.5:1
Muted text on background4.89:1AA pass 4.5:1
Label on primary4.99:1AA pass 4.5:1
Label on accent14.97:1AAA pass 4.5:1
Primary on background4.21:1AA Large pass 3:1
Accent on background14.97: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#000000 (Text 1)#FFFFFF (Text 2)#696969 (Text 3)#FFD700 (Text 4)#DC143C (Text 5)
#000000Same color21.00AAA3.83AA Large14.97AAA4.21AA Large
#FFFFFF21.00AAASame color5.49AA1.40—4.99AA
#6969693.83AA Large5.49AASame color3.91AA Large1.10—
#FFD70014.97AAA1.40—3.91AA LargeSame color3.56AA Large
#DC143C4.21AA Large4.99AA1.10—3.56AA LargeSame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#000000#FFFFFF#696969#FFD700#DC143C

Variations

About Basic Colors

Basic Colors brings together a near-black, a white, a slate, a pale yellow and a vivid red (#000000, #FFFFFF, #696969, #FFD700, #DC143C) in a warm, multi-color-led scheme. Pale yellow #FFD700 and vivid red #DC143C are 75° apart, so the palette has clear hue contrast without clashing. A 100-point lightness range (0% for #000000 to 100% for #FFFFFF) gives strong value contrast, useful for text on background. Average chroma is 0.081, low for a palette, so the colors feel soft and muted; the most saturated color is #DC143C. In light mode #FFFFFF becomes the background with #000000 text at 21.0:1, and #DC143C takes the primary role. Try it for bold editorial layouts, accessible interfaces and presentation slides, letting vivid red #DC143C carry the key actions.

Basic Colors color palette: #000000, #FFFFFF, #696969, #FFD700, #DC143C
Share image for Basic Colors

Gradients in similar colors