RGB Colour Calculator
Enter red, green, and blue values from 0 to 255 to instantly convert to HEX, HSL, and CMYK. You will also get a live preview and a readability hint.
- RGB: rgb(30, 115, 190)
- HEX: #1E73BE
- HSL: hsl(208, 73%, 43%)
- CMYK: 84%, 39%, 0%, 25%
- Complementary Colour: #E18C41
- Recommended Text Colour: #FFFFFF
- Contrast (with white/black): 4.84 / 4.34
Why an RGB colour calculator matters
When people search for a colour calculator rgb, they usually want speed and confidence. You have a colour idea in mind, but you need practical values that work across design tools, code editors, and publishing platforms. RGB is the most common digital colour model, and converting it cleanly saves time and avoids mistakes.
This page gives you one place to calculate and understand your colour output. Instead of guessing at values, you can move from RGB to HEX, HSL, and CMYK in seconds.
How RGB works (in plain language)
RGB stands for Red, Green, Blue. Each channel has a value from 0 to 255:
- 0 means none of that channel
- 255 means full intensity
- Mixing all three channels creates your final digital colour
For example:
- rgb(255, 0, 0) is pure red
- rgb(0, 255, 0) is pure green
- rgb(0, 0, 255) is pure blue
- rgb(255, 255, 255) is white
- rgb(0, 0, 0) is black
Understanding the calculator outputs
1) HEX
HEX is the format most web designers use in CSS. It starts with # followed by six characters like #1E73BE. Each pair represents red, green, and blue in base-16.
2) HSL
HSL stands for Hue, Saturation, Lightness. This model is useful when you want to adjust colour creatively:
- Hue controls the colour family
- Saturation controls intensity
- Lightness controls brightness
If you are building colour systems or themes, HSL makes controlled variations easier than raw RGB numbers.
3) CMYK
CMYK is a print-oriented colour model. Even if you mainly work on screens, having CMYK values gives you a starting point when handing assets to printers or production teams.
4) Complementary colour
A complementary colour is the opposite balance in the RGB space. It is useful for buttons, accents, charts, and visual contrast in UI layouts.
Accessibility: don’t skip contrast
Good colour choice is not only visual style; it is readability. This calculator checks your selected background colour and compares contrast with white and black text. It then suggests the more readable text colour. That’s a practical first step toward WCAG-friendly interfaces.
- Higher contrast generally means better readability
- Body text often targets at least 4.5:1 contrast
- Large text can use a slightly lower threshold
Practical workflow for designers and developers
- Choose your RGB values with intent (brand, mood, or hierarchy).
- Use HEX for implementation in CSS and UI tools.
- Use HSL to create lighter/darker variants consistently.
- Check contrast before shipping interface text.
- Save approved colour pairs in a simple design token list.
Common mistakes to avoid
- Using colour-only indicators without text or icons
- Picking low-contrast text because it “looks soft”
- Mixing random shades without a repeatable system
- Copying colours from screenshots without checking actual values
Final thoughts
A reliable RGB calculator is a small tool that improves real work: faster prototyping, cleaner handoff, better accessibility, and fewer visual bugs. Use the calculator above whenever you need quick conversions and readability checks in one step.