Lego Brick

Export

Code

/* Lego Brick — colorset.net */
:root {
  --color-1: #E3121E;
  --color-2: #EBBF00;
  --color-3: #127EEE;
  --color-4: #00A943;
  --color-5: #1B2433;

  --color-bg: #FBF7E8;
  --color-surface: #F2EDDF;
  --color-border: #DBD5C3;
  --color-text: #1B2433;
  --color-muted: #616C7E;
  --color-primary: #E3121E;
  --color-on-primary: #FFFFFF;
  --color-accent: #0075E2;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1B2433;
    --color-surface: #262F3F;
    --color-border: #3A4558;
    --color-text: #CFC4A0;
    --color-muted: #9F967B;
    --color-primary: #EA2126;
    --color-on-primary: #000000;
    --color-accent: #127EEE;
    --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
Backgroundadjusted for contrast · from #EBBF00from palette · color 5
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 5adjusted for contrast · from #EBBF00
Muted textderivedderived
Primaryfrom palette · color 1adjusted for contrast · from #E3121E
On primaryderivedderived
Accentadjusted for contrast · from #127EEEfrom palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background14.53:1AAA pass 4.5:1
Text on surface13.33:1AAA pass 4.5:1
Muted text on background4.95:1AA pass 4.5:1
Label on primary4.80:1AA pass 4.5:1
Label on accent4.52:1AA pass 4.5:1
Primary on background4.48:1AA Large pass 3:1
Accent on background4.22:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background8.95:1AAA pass 4.5:1
Text on surface7.72:1AAA pass 4.5:1
Muted text on background5.29:1AA pass 4.5:1
Label on primary4.74:1AA pass 4.5:1
Label on accent5.24:1AA pass 4.5:1
Primary on background3.52:1AA Large pass 3:1
Accent on background3.89: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#E3121E (Text 1)#EBBF00 (Text 2)#127EEE (Text 3)#00A943 (Text 4)#1B2433 (Text 5)
#E3121ESame color2.74—1.20—1.55—3.25AA Large
#EBBF002.74—Same color2.29—1.77—8.90AAA
#127EEE1.20—2.29—Same color1.29—3.89AA Large
#00A9431.55—1.77—1.29—Same color5.02AA
#1B24333.25AA Large8.90AAA3.89AA Large5.02AASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#E3121E#EBBF00#127EEE#00A943#1B2433

Variations

About Lego Brick

Toy-box primaries with a charcoal baseplate. Five colors make up Lego Brick, a balanced multi-color set: #E3121E, #EBBF00, #127EEE, #00A943, #1B2433. Light yellow #EBBF00 and vivid blue #127EEE sit on nearly opposite sides of the wheel (163° apart), a complementary pairing that makes accents pop. With lightness between 26% and 82% and #127EEE near the middle, there is enough spread for layered surfaces but not maximum text contrast. Average chroma is 0.161, high for a palette, so the colors feel saturated and energetic; the most saturated color is #E3121E. Text contrast reaches 14.5:1 in light mode and 9.0:1 in dark mode, with #E3121E as primary and #0075E2 as accent. Try it for brand systems with many sub-brands, data visualization and bold landing pages, letting vivid red #E3121E carry the key actions.

Lego Brick color palette: #E3121E, #EBBF00, #127EEE, #00A943, #1B2433
Share image for Lego Brick

Gradients in similar colors