Skip to content

Colors — Swatches

Visual hex reference for all DGA palettes. Full guide: colors.md · Cheatsheet: colors-cheatsheet.md


🎨 Color Palettes Overview

The DGA Design System includes 8 color palettes with 12 shades each (25-950), totaling 96 colors.


Gray (Neutral Palette)

25#fcfcfd
50#f9fafb
100#f3f4f6
200#e5e7ebBorders
300#d2d6db
400#9da4ae
500#6c737f
600#4d5761Muted text
700#384250Secondary text
800#1f2a37
900#111927
950#0d121cPrimary text

Primary Uses: Text hierarchy, backgrounds, borders


Primary - Saudi Green 🇸🇦 (Brand Palette)

25#f7fdf9
50#f3fcf6
100#dff6e7
200#b8eacb
300#88d8ad
400#54c08a
500#25935fSaudi Green
600#1b8354Hover
700#166a45Active
800#14573aBrand text
900#104631
950#092a1e

Main Color: #25935f (500 shade)
Primary Uses: Buttons, links, brand elements, CTAs


Gold (Secondary Palette)

25#fffef7
50#fffef2
100#fffce6
200#fcf3bd
300#fae996
400#f7d54d
500#f5bd02Main gold
600#dba102Hover
700#b87b02
800#945c01
900#6e3c00
950#472400

Main Color: #f5bd02 (500 shade)
Primary Uses: Secondary buttons, badges, accents, premium features


Lavender (Accent Palette)

25#fefcff
50#f9f5fa
100#f2e9f5
200#e1cce8
300#ccadd9
400#a57bba
500#80519fMain lavender
600#6d428f
700#532d75
800#3d1d5e
900#281047
950#16072e

Main Color: #80519f (500 shade)
Primary Uses: Special highlights, tertiary elements, decorative accents


Error/Danger (Red Palette)

25#fffbfa
50#fef3f2Error BG
100#fee4e2
200#fecdca
300#fda29b
400#f97066
500#f04438Main error
600#d92d20Error text
700#b42318
800#912018
900#7a271a
950#55160c

Main Color: #f04438 (500 shade)
Text Color: #d92d20 (600 shade)
Primary Uses: Error messages, delete buttons, validation errors, alerts


Warning (Orange Palette)

25#fffcf5
50#fffaebWarning BG
100#fef0c7
200#fedf89
300#fec84b
400#fdb022
500#f79009Main warning
600#dc6803Warning text
700#b54708
800#93370d
900#7a2e0e
950#4e1d09

Main Color: #f79009 (500 shade)
Text Color: #dc6803 (600 shade)
Primary Uses: Warning messages, caution states, pending actions


Info (Blue Palette)

25#f5faff
50#eff8ffInfo BG
100#d1e9ff
200#b2ddff
300#84caff
400#53b1fd
500#2e90faMain info
600#1570efInfo text
700#175cd3
800#1849a9
900#194185
950#102a56

Main Color: #2e90fa (500 shade)
Text Color: #1570ef (600 shade)
Primary Uses: Info messages, neutral notifications, help text


Success (Green Palette)

25#f6fef9
50#ecfdf3Success BG
100#dcfae6
200#abefc6
300#75e0a7
400#47cd89
500#17b26aMain success
600#079455Success text
700#067647
800#085d3a
900#074d31
950#053321

Main Color: #17b26a (500 shade)
Text Color: #079455 (600 shade)
Primary Uses: Success messages, confirmation, completed states


Color Usage Chart

By Shade Number

ShadeTypical Use Case
25Subtle tints, barely visible backgrounds
50Light backgrounds, cards, panels ⭐
100Hover states on light backgrounds
200Borders, dividers, alert backgrounds ⭐
300Strong dividers, disabled states
400Placeholder text, decorative elements
500Primary/Default color ⭐⭐⭐
600Hover states, emphasized text ⭐⭐
700Active states, strong emphasis ⭐⭐
800Text on light backgrounds ⭐
900Dark backgrounds, maximum emphasis
950Maximum contrast, primary text

Semantic Color Mappings

Primary Colors

SemanticMaps ToHexUse
primarySaudi Green 500#25935fMain brand color
secondaryGold 500#f5bd02Secondary brand

Status Colors

SemanticMaps ToHexUse
successSuccess 500#17b26aSuccess states
infoInfo 500#2e90faInformational
warningWarning 500#f79009Warnings
dangerError 500#f04438Errors, delete

Neutral Colors

SemanticMaps ToHexUse
lightGray 50#f9fafbLight backgrounds
darkGray 900#111927Dark backgrounds

Text Color Hierarchy

For optimal readability on light backgrounds:

Primary Text   → Gray 950   #0d121c  ⭐⭐⭐
Secondary Text → Gray 700   #384250  ⭐⭐
Muted Text     → Gray 600   #4d5761  ⭐

For dark backgrounds:

Primary Text   → White      #ffffff  ⭐⭐⭐
Muted Text     → White 70%  rgba(255,255,255,0.7)  ⭐

For brand text:

Brand Primary  → SA 800     #14573a  ⭐⭐
Brand Accent   → SA 600     #1b8354  ⭐

For semantic text:

Error Text     → Error 600    #d92d20  ⭐⭐
Warning Text   → Warning 600  #dc6803  ⭐⭐
Success Text   → Success 600  #079455  ⭐⭐
Info Text      → Info 600     #1570ef  ⭐⭐

Most Commonly Used Colors

Top 20 Colors by Usage

  1. Gray 50 (#f9fafb) - Background
  2. Primary 500 (#25935f) - Saudi Green (main)
  3. Gray 950 (#0d121c) - Primary text
  4. Gray 200 (#e5e7eb) - Borders
  5. Primary 600 (#1b8354) - Hover states
  6. Gray 700 (#384250) - Secondary text
  7. White (#ffffff) - Backgrounds
  8. Error 50 (#fef3f2) - Error backgrounds
  9. Error 600 (#d92d20) - Error text
  10. Success 50 (#ecfdf3) - Success backgrounds
  11. Success 600 (#079455) - Success text
  12. Warning 50 (#fffaeb) - Warning backgrounds
  13. Warning 600 (#dc6803) - Warning text
  14. Info 50 (#eff8ff) - Info backgrounds
  15. Info 600 (#1570ef) - Info text
  16. Gold 500 (#f5bd02) - Secondary color
  17. Primary 800 (#14573a) - Brand text
  18. Gray 600 (#4d5761) - Muted text
  19. Primary 100 (#dff6e7) - Light green tint
  20. Gray 900 (#111927) - Dark backgrounds

Color Combinations

Best Pairs (High Contrast ✅)

Background          Text Color
━━━━━━━━━━━━━━━━━━  ━━━━━━━━━━━━━━━
White (#ffffff)  →  Gray 950 (#0d121c)
Gray 50          →  Gray 950
Primary 500      →  White
Dark (Gray 900)  →  White
Error 50         →  Error 700
Success 50       →  Success 700
Warning 50       →  Warning 700

Alert Color Schemes

Type     Background    Border         Text
━━━━━━━  ━━━━━━━━━━━━  ━━━━━━━━━━━━━  ━━━━━━━━━━━━━
Error    error-50      error-200      error-700
Warning  warning-50    warning-200    warning-700
Success  success-50    success-200    success-700
Info     info-50       info-200       info-700

Gradient Definitions

All gradients are based on Saudi Green:

scss
Primary    → linear-gradient(90deg, #1b8354, #25935f)
Secondary  → linear-gradient(45deg, #166a45, #1b8354)
Dark       → linear-gradient(45deg, #092a1e, #1b8354)
Medium     → linear-gradient(90deg, #14573a, #1b8354)
Subtle     → linear-gradient(26.5deg, #14573a, #166a45)
Deep       → linear-gradient(45deg, #104631, #1b8354)

Usage: Hero sections, card headers, CTAs


CSS Variable Reference

All colors available as CSS custom properties:

css
/* Gray palette */
--dga-gray-25 through --dga-gray-950

/* Primary (Saudi Green) */
--dga-primary-25 through --dga-primary-950

/* Gold */
--dga-gold-25 through --dga-gold-950

/* Lavender */
--dga-lavender-25 through --dga-lavender-950

/* Semantic palettes */
--dga-error-25 through --dga-error-950
--dga-warning-25 through --dga-warning-950
--dga-info-25 through --dga-info-950
--dga-success-25 through --dga-success-950

Color Psychology

Saudi Green (Primary)

  • Represents: Saudi Arabian identity, nature, growth, prosperity
  • Emotion: Trust, stability, harmony
  • Use: Primary actions, brand elements, success

Gold (Secondary)

  • Represents: Wealth, prestige, quality, Saudi heritage
  • Emotion: Luxury, value, importance
  • Use: Premium features, badges, secondary CTAs

Red (Error)

  • Represents: Danger, urgency, errors
  • Emotion: Alert, stop, attention
  • Use: Errors, delete actions, critical warnings

Orange (Warning)

  • Represents: Caution, warning, in-progress
  • Emotion: Careful attention, pending
  • Use: Warnings, pending states, moderate alerts

Blue (Info)

  • Represents: Information, calm, trust
  • Emotion: Reliable, professional, neutral
  • Use: Info messages, help text, neutral states

Green (Success)

  • Represents: Success, completion, positive
  • Emotion: Accomplishment, safe, go
  • Use: Success messages, confirmations, completed

Color Print Table

For printing this reference with color swatches:

Color NameHexRGBHSL
Primary 500#25935frgb(37, 147, 95)hsl(152, 60%, 36%)
Gray 950#0d121crgb(13, 18, 28)hsl(220, 37%, 8%)
Gold 500#f5bd02rgb(245, 189, 2)hsl(46, 98%, 48%)
Error 500#f04438rgb(240, 68, 56)hsl(4, 86%, 58%)
Warning 500#f79009rgb(247, 144, 9)hsl(34, 94%, 50%)
Info 500#2e90fargb(46, 144, 250)hsl(211, 95%, 58%)
Success 500#17b26argb(23, 178, 106)hsl(152, 77%, 39%)

Accessibility Notes

  • Recommended combinations meet WCAG AA standards
  • Use shade 600-800 for text on light backgrounds
  • Use shade 50-100 for backgrounds in alerts
  • Use white for text on 500-950 backgrounds
  • Always test with contrast checker tools

Total Colors: 96 (8 palettes × 12 shades)
Primary Brand: Saudi Green #25935f
Secondary Brand: Gold #f5bd02

Version: 1.0.0
DGA Design System Color Palette

MIT Licensed — Wael Alghamdi