Calcorithmevery number has an answer
πŸ”
All tools β†’
← Developer Tools

Color Picker

Pick a color and get its HEX, RGB, HSL and CSS values instantly.

Pick color
#4F8AFF
HEX
#4F8AFF
RGB
rgb(79, 138, 255)
HSL
hsl(220, 100%, 65%)
CSS var
--color: #4f8aff
Shades

Colour formats explained

Digital colours can be expressed in several formats, each optimised for different contexts. HEX is most common in web design; RGB is used in CSS and design software; HSL makes it easier to reason about colour relationships; HSB (also called HSV) is used in many design tools.

FormatExampleBest for
HEX#4f8affCSS stylesheets, design handoff, most common in web
RGBrgb(79, 138, 255)CSS, screen design; intuitive for mixing light primaries
RGBArgba(79, 138, 255, 0.8)CSS with transparency (0=transparent, 1=opaque)
HSLhsl(221, 100%, 65%)CSS; Hue-Saturation-Lightness, best for colour relationships
HSLAhsla(221, 100%, 65%, 0.8)CSS HSL with transparency
HSB/HSVhsb(221Β°, 69%, 100%)Photoshop, Figma, design tools; intuitive colour adjustment
CMYKC:69 M:46 Y:0 K:0Print design; Cyan-Magenta-Yellow-Key (Black)
PantonePMS 2727 CBrand colour matching for physical print production

Accessibility: colour contrast ratios

WCAG 2.1 (Web Content Accessibility Guidelines) specifies minimum contrast ratios between text and background colours to ensure readability for people with visual impairments. Failing contrast requirements can exclude users with low vision and may violate accessibility laws in the EU, UK, and US.

WCAG contrast ratio requirements: AA (minimum): Normal text (< 18pt): 4.5:1 ratio Large text (β‰₯ 18pt): 3.0:1 ratio UI components: 3.0:1 ratio AAA (enhanced): Normal text: 7.0:1 ratio Large text: 4.5:1 ratio Examples: Black (#000) on white (#fff): 21:1 βœ“ AAA #767676 on white: 4.54:1 βœ“ AA #949494 on white: 3.03:1 βœ— fails AA for normal text Navy (#003366) on white: ~11:1 βœ“ AAA

Colour psychology in design

Red
Energy, urgency, danger, passion. Used by Netflix, YouTube, Coca-Cola.
Blue
Trust, calm, professionalism. Used by Facebook, LinkedIn, PayPal.
Green
Growth, health, money, nature. Used by WhatsApp, Spotify, Whole Foods.
Yellow
Optimism, warmth, caution. Used by McDonald’s, IKEA, Snapchat.
Purple
Luxury, creativity, wisdom. Used by Cadbury, Hallmark, Twitch.
Orange
Enthusiasm, affordability, fun. Used by Amazon, Fanta, Harley-Davidson.

Frequently asked questions

What is the difference between HEX, RGB and HSL?

They are three ways to describe the same colour. HEX (#4f8aff) is compact and common in CSS, RGB defines red/green/blue channels, and HSL uses hue, saturation and lightness, which is more intuitive for adjusting colours.

What does the alpha value mean?

Alpha controls opacity, from 0 (fully transparent) to 1 (fully opaque). In CSS it appears as the fourth value in rgba() or an extra pair of hex digits.

How do I get an accessible colour contrast?

For readable text, aim for a contrast ratio of at least 4.5:1 between text and background (3:1 for large text), as recommended by the WCAG accessibility guidelines.

Can I convert a colour between formats here?

Yes. Pick or enter a colour and the tool shows its HEX, RGB and HSL values together so you can copy whichever your project needs.

Related Developer Tools tools

JSON Formatter
Format, beautify and validate JSON data online
Regex Tester
Test regular expressions live
Diff Checker
Compare two texts side by side
HTML Minifier
Minify HTML code to reduce page size and improve load times
CSS Minifier
Minify and compress CSS code to shrink file size and speed up your site
SQL Formatter
Format and beautify SQL queries
JWT Decoder
Decode and inspect JWT tokens
Cron Parser
Parse and explain cron expressions