• Latest
  • Trending
  • All

Color Converter: HEX, RGB, HSL, Contrast Checker, Palette Builder and CSS Tokens

June 14, 2026
ssh command cheatsheet

SSH Command Cheatsheet: Connect, Keys, scp, Tunnels (2026)

June 16, 2026
chmod-chown-cheatsheet

chmod and chown Cheatsheet: Linux Permissions, Decoded (2026)

June 16, 2026
systemctl-journalctl-cheatsheet

systemctl + journalctl Cheatsheet: Services and Logs (2026)

June 16, 2026
grep-cheatsheet

The grep Cheatsheet: Search a File, Search a Tree (2026)

June 16, 2026
rsync-cheatsheet

The rsync Cheatsheet: Mirror, Sync, Copy Over SSH (2026)

June 16, 2026
curl-cheatsheet

curl Cheatsheet: Download Files and Test APIs (2026)

June 16, 2026
iptables-vs-nftables-cheatsheet cheatsheet

iptables vs nftables: Linux Firewall Cheatsheet, Side by Side

June 16, 2026
nmcli-cheatsheet cheatsheet

nmcli Cheatsheet: Wi-Fi and Network Connections From the Linux Terminal

June 16, 2026
powershell-networking-cheatsheet cheatsheet

PowerShell Networking Cheatsheet: Test-NetConnection, IP, DNS (2026)

June 16, 2026
tar command cheatsheet

The tar Command Cheatsheet: Create, Extract, Stop Guessing (2026)

June 16, 2026
Linux find command cheatsheet

The find Command Cheatsheet: Every Recipe You Actually Use (2026)

June 15, 2026
Linux networking commands cheatsheet, ip and ss

Linux Networking Commands in 2026: the ip and ss Cheatsheet

June 15, 2026
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools
Tuesday, June 16, 2026
  • Login
People Are Geek
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools
No Result
View All Result
People Are Geek
No Result
View All Result
Home Developer Tools

Color Converter: HEX, RGB, HSL, Contrast Checker, Palette Builder and CSS Tokens

by People Are Geek
June 14, 2026
in Developer Tools, Online Tools
0
0
SHARES
6
VIEWS
Share on FacebookShare on Twitter

Color converter, WCAG contrast lab, palette builder and CSS token generator

Three tabs open. One to convert a HEX into HSL, one to check it wouldn’t blind anyone, one for the CSS. I got sick of it, so here’s the lot in a single box. Paste a color however you write it. Back comes HEX, RGB, HSL, HSV, CMYK, a live contrast check against your background, tints and shades, some harmony picks, and CSS custom properties you can paste straight in. Palettes save right in your browser. And when you’re handing off to a teammate (or honestly just second-guessing yourself at 11pm), the copy-report button spits out something clean.

Accepted inputs: #0f766e, 0f766e, rgb(15 118 110), rgb(15,118,110), hsl(176 77% 26%) and hsl(176,77%,26%). Contrast is calculated with WCAG relative luminance.

Recommended dev gearWe may earn a commission, at no extra cost to you.
Mechanical KeyboardCheck price on Amazon →Usb C Docking StationCheck price on Amazon →Portable MonitorCheck price on Amazon →Clean Code BookCheck price on Amazon →

A color converter should help you decide, not only translate values

Knowing that #0f766e is also hsl(176 77% 26%) tells you basically nothing about whether you should use it. The question I’m actually chewing on is different. Will this still read once it’s a button, or shrunk to a caption on some dark card nobody asked for? A plain converter just leaves you there. I wanted the one that hands over the exact CSS, calls the contrast, and shows me the colors sitting next to it before I commit a single line to a stylesheet.

And that’s the job here. Feed it any of the usual CSS color formats. Out comes HEX, RGB, HSL, HSV, CMYK, then it runs the contrast against whatever background you handed it and tells you whether black or white text wins up top. It rolls out tints and shades. Throws some complementary and analogous picks your way. Remembers palettes between visits, and writes the CSS custom properties so you drop them straight into your sheet or a design note, no retyping.

How to read the contrast result

Under the hood it’s comparing how bright two colors are against each other, nothing fancier. Body text wants 4.5:1 to clear AA, 7:1 for AAA. Large text gets a pass at 3:1. And maybe it’s just me, but I think that 3:1 loophole gets abused constantly. I’ve watched it wave through pale grey labels and thread-thin nav links nobody over forty can read. So don’t test your brand color floating in a vacuum. Test it at the size and weight it’ll actually ship at, on the background it’ll actually sit on.

  • AA normal text wants 4.5:1 or better. That’s the bar I hold most copy to, no exceptions I can defend.
  • AA large text scrapes by at 3:1. Fine for a heading. Not a license to shrink the body.
  • AAA normal text needs 7:1, which is worth reaching for on anything people actually read at length.
  • Focus states have to stand on their own. Don’t lean on hue, because plenty of folks just won’t catch the shift.
  • Token names should say what the color does, not what it looks like. Future you, six months out, will be grateful.

Common color debugging examples

Brand color failing on white? You’ve got moves. Darken it a notch. Or flip it, make it the background, white text on top. Or just retire the poor thing to borders and icons, where contrast barely matters. When every shade blurs into the next, nudge the lightness and leave saturation where it is. That’s nearly always the fix. A palette that feels dead usually just needs a few quiet neutrals to lean on, with the loud hues held back for actions and alerts. And charts, please, don’t let color carry the whole message on its own. Back it up with a label or a shape. Anyone colorblind in the room will thank you, and so will the next person who prints the thing in grayscale.

Common questions

Is HEX more accurate than RGB or HSL?

Nope. Common myth, though. They’re three ways of writing the very same sRGB color, and the same pixels land on screen either way. I grab HSL when I want to fiddle with lightness by hand, HEX or RGB when I’m dropping values into CSS. Whichever makes the edit less annoying, use that.

Does a contrast ratio guarantee good design?

Not even close. It’s a floor, not a finish line. Clearing 4.5:1 means the text is legible. That’s it. Font size, line spacing, the hover state, whatever else is crowding it on the page, all of that still decides whether the thing reads well or just technically passes.

Are generated palettes production ready?

Treat them as a strong first draft. They’ll carry you most of the way there, but I wouldn’t lock them in as final tokens without dropping them into real buttons and cards first. A color looks like one thing in a tidy swatch grid and something else entirely on an actual screen.

How do I convert a HEX color to RGB?

Chop the six digits into three pairs, then read each pair as a base-16 number. So 0f becomes 15. You really don’t have to do that by hand, though. Paste the color above and the RGB, HSL and alpha all land right away.

What is the difference between HSL and RGB?

RGB mixes light: how much red, green and blue you stack up. HSL talks in hue, saturation and lightness instead, which honestly maps a lot closer to how my brain works. “Same color, just lighter” is one number in HSL. In RGB it’s a guessing game.

What does the alpha channel control?

Transparency, basically. It runs from 0 (you see straight through it) to 1 (fully solid). You write it as the fourth value inside rgba(), or you tack two extra hex digits onto an 8-digit hex color. Same idea, two spellings.

Open Graph PreviewPage Size CheckerMeta Tags CheckerJSON Formatter

Sources & further reading

  • W3C, CSS Color Module Level 4
  • MDN, CSS color values
ShareTweetPin
People Are Geek

People Are Geek

I'm Stephane, a network and systems engineer with over 15 years of hands-on experience on production infrastructure, virtualization (ESXi, Proxmox), networking, and self-hosting. Earlier in my career I built and ran a Linux resource site that became a well-known reference for sysadmins. Today I focus on cybersecurity, and I also work as a technical trainer, teaching networking and security to people who do it for a living. Everything on People Are Geek comes from real-world practice, not theory. I build every tool on this site myself, and I write about what I've actually deployed, broken, and fixed. If it's here, I've used it.

People Are Geek

Copyright © 2017 JNews.

Navigate Site

  • About PeopleAreGeek
  • Affiliate Disclosure
  • All Tools and Articles
  • Contact
  • Cookie Policy
  • Hyper-V Hub: Tools, Error Fixes and Lab Guides
  • Linux Hub: Cross-Distro Reference, Articles, Tools
  • Privacy Policy
  • Sample Page
  • Terms of Service
  • VMware vSphere & ESXi Hub: Tools, Error Fixes and Guides

Follow Us

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools

Copyright © 2017 JNews.