مجاني • فوري • بدون تثبيت

محول وحدات وألوان CSS

حوّل بين تنسيقات ألوان ووحدات CSS فورياً. مجاني وسريع.

المحولات الشائعة — Color

HEX to RGB Converter

Convert HEX color codes to RGB format instantly.

Convert HEX to RGB →

RGB to HEX Converter

Convert RGB color values to HEX format instantly.

Convert RGB to HEX →

HEX to RGBA Converter

Convert HEX color codes to RGBA format with alpha channel.

Convert HEX to RGBA →

RGB to HSL Converter

Convert RGB color values to HSL format.

Convert RGB to HSL →

HSL to RGB Converter

Convert HSL color values to RGB format.

Convert HSL to RGB →

HEX to HSL Converter

Convert HEX color codes to HSL format.

Convert HEX to HSL →

RGBA to HEX Converter

Convert RGBA color values (with alpha) to HEX format.

Convert RGBA to HEX →

HSL to HEX Converter

Convert HSL color values to HEX format.

Convert HSL to HEX →

CSS COLOR NAME to HEX Converter

Convert CSS named colors to HEX codes.

Convert CSS COLOR NAME to HEX →

CSS COLOR NAME to RGB Converter

Convert CSS named colors to RGB format.

Convert CSS COLOR NAME to RGB →

CSS COLOR NAME to HSL Converter

Convert CSS named colors to HSL format.

Convert CSS COLOR NAME to HSL →

HEX to CSS COLOR NAME Converter

Find the CSS named color for a HEX code.

Convert HEX to CSS COLOR NAME →

HEX to CMYK Converter

Convert HEX color codes to CMYK format for print design and prepress workflows.

Convert HEX to CMYK →

RGB to CMYK Converter

Convert RGB color values to CMYK format for print-ready output and prepress.

Convert RGB to CMYK →

HEX to HSV Converter

Convert HEX color codes to HSV (HSB) format used in Photoshop and design tools.

Convert HEX to HSV →

HSV to HEX Converter

Convert HSV (HSB) color values to HEX format for web and CSS use.

Convert HSV to HEX →

فهم ألوان ووحدات CSS

تنسيقات الألوان HEX و RGB و HSL

يدعم CSS عدة تنسيقات ألوان.

<strong>RGB</strong> يستخدم قيماً عشرية من 0 إلى 255.

<strong>HSL</strong> هو الأكثر بديهية للمصممين.

CSS Named Colors

CSS provides 147 named colors like coral, steelblue, and rebeccapurple. While convenient for prototyping, named colors offer limited precision. Converting a CSS color name to HEX or RGB gives you exact values you can fine-tune for production use.

CMYK للطباعة

<strong>CMYK</strong> هو نموذج الألوان القياسي للطباعة.

HSV في أدوات التصميم

<strong>HSV</strong> هو نموذج الألوان الأصلي في Photoshop وFigma وSketch.

PX مقابل REM: شرح وحدات CSS

<strong>البكسل (PX)</strong> وحدات مطلقة.

اقسم البكسل على 16 للحصول على قيم REM.

<strong>وحدات EM</strong> نسبية لحجم خط العنصر الأب وليس الجذر.

  • 1rem = 16px (default browser setting)
  • 1em = parent font-size (context-dependent)
  • 0.75rem = 12px — common for small/caption text
  • 1.25rem = 20px — common for subheadings
  • 2rem = 32px — common for section headings

لماذا تستخدم محولات CSS؟

التحويل اليدوي مرهق وعرضة للأخطاء.

  • Instant results — paste a value and get the converted output immediately, no formulas needed.
  • Copy-ready output — every result includes a one-click copy button with properly formatted CSS syntax.
  • Color preview — see a live swatch of the converted color to visually confirm accuracy.
  • No installation — works in any browser, on any device. No extensions, downloads, or signups.
  • Developer-friendly — shareable URLs with pre-filled values for easy team collaboration.

Common CSS Conversion Workflows

  • Design handoff: Figma and Sketch export colors as HEX. Convert to RGB or HSL if your codebase uses those formats.
  • Dark mode generation: Take your light-mode HSL palette, adjust lightness values, and convert back to HEX.
  • Accessibility checks: Convert colors to RGB to calculate contrast ratios using the WCAG luminance formula.
  • Legacy migration: Convert pixel-based layouts to rem-based responsive systems during refactors.
  • Cross-browser debugging: Quickly convert colors to match your source code format.

Supported Conversions

From To Category
HEXRGB, HSL, RGBA, CSS NameColor
RGBHEX, HSLColor
HSLHEX, RGBColor
RGBAHEXColor
CSS NameHEX, RGB, HSLColor
PXREMUnit
REMPXUnit

FAQ

ما هو لون HEX؟

قيمة سداسية عشرية من 6 أرقام مسبوقة بـ #.

كيف أحول RGB إلى HEX؟

حوّل كل قيمة عشرية إلى سداسية عشرية.

ما هو REM في CSS؟

وحدة نسبية تعتمد على حجم خط العنصر الجذري.

لماذا HSL أفضل من RGB؟

HSL أكثر سهولة في التعامل مع الألوان.