Blue & Yellow, Blue Color Palette — PaletteCSS
Back to palettes

Blue & Yellow, Blue Color Palette

#CACD23 202, 205, 35
#DEDF7C 222, 223, 124
#1F1CE9 31, 28, 233
#7372D5 115, 114, 213
#CACD23
Color 1
#DEDF7C
Color 2
#1F1CE9
Color 3
#7372D5
Color 4
:root {
  --color-1: #CACD23;
  --color-2: #DEDF7C;
  --color-3: #1F1CE9;
  --color-4: #7372D5;
}
colors: {
  'palette-1': '#CACD23',
  'palette-2': '#DEDF7C',
  'palette-3': '#1F1CE9',
  'palette-4': '#7372D5',
}
const palette = [
  '#CACD23',
  '#DEDF7C',
  '#1F1CE9',
  '#7372D5',
];
$color-1: #CACD23;
$color-2: #DEDF7C;
$color-3: #1F1CE9;
$color-4: #7372D5;
Palette Codes 4 COLORS

This is a balanced, bold 4-colour palette pairing strongly contrasting colours for real visual punch.

805 Views
Added Jun 2026
Copy & Download

About this color palette

This is a balanced, bold 4-colour palette pairing strongly contrasting colours for real visual punch. It is anchored by Blue (#1F1CE9) and reads as well balanced in lightness, with an average saturation of 67% and lightness of 58%. It adapts to a wide range of web and brand projects.

The colors in this palette

Yellow #CACD23

rgb(202, 205, 35) · hsl(61, 71%, 47%)

A vivid, saturated tone that draws the eye — best for accents and highlights.

Yellow #DEDF7C

rgb(222, 223, 124) · hsl(61, 61%, 68%)

A balanced mid-tone that works well for primary surfaces and UI elements.

Blue #1F1CE9

rgb(31, 28, 233) · hsl(241, 82%, 51%)

A vivid, saturated tone that draws the eye — best for accents and highlights.

Blue #7372D5

rgb(115, 114, 213) · hsl(241, 54%, 64%)

A balanced mid-tone that works well for primary surfaces and UI elements.

Accessibility & contrast

Colour contrast decides whether text stays readable. Here is how each pair of colours in this palette performs when one is used as text on the other, measured against the WCAG standard (AA needs 4.5:1, AAA needs 7:1).

TextBackgroundRatioAAAAA
#DEDF7C #1F1CE9 6.23:1 Pass Fail
#CACD23 #1F1CE9 5.11:1 Pass Fail
#DEDF7C #7372D5 2.93:1 Fail Fail
#CACD23 #7372D5 2.41:1 Fail Fail
#1F1CE9 #7372D5 2.12:1 Fail Fail
#CACD23 #DEDF7C 1.22:1 Fail Fail

How to use these colors

  • Background — Yellow (#DEDF7C): the lightest tone — a clean base for large areas
  • Text — Yellow (#CACD23): the darkest tone — readable for body copy and headings
  • Primary — Blue (#1F1CE9): the most saturated tone — buttons, links and key UI
  • Accent — Yellow (#CACD23): a secondary highlight for badges and details

Colors that pair with this palette

Want to extend this palette? These colours pair naturally with its dominant Blue tone, based on colour-wheel harmony. Tap a swatch to explore that colour family.

Frequently asked questions

What colours are in this palette?

This palette has 4 colours: Yellow (#CACD23), Yellow (#DEDF7C), Blue (#1F1CE9) and Blue (#7372D5).

Is this a warm or cool colour palette?

It is balanced, mixing warm and cool tones fairly evenly.

What are the hex codes for this palette?

The hex codes are #CACD23, #DEDF7C, #1F1CE9 and #7372D5. You can copy them as CSS variables, Tailwind, SCSS or JSON from the code panel above.

Is this palette accessible for text?

Yes — Yellow text on Blue reaches a contrast ratio of 6.23:1, which meets the WCAG AA standard for readable text.

Related Palettes

Copied!