Hex to Color Name Finder

How do I find a color name from a hex code?

Paste any 3- or 6-digit hex code into the finder below (or sample a pixel from your screen with the Eyedropper). It compares your color against 546 W3C CSS, Tailwind CSS, Material Design, and brand tokens, returning the closest name plus RGB, HSL, CMYK, and code snippets.

  • #228B22: Forest Green
  • #B2AC88: Sage Green
  • #E2725B: Terracotta

Paste a hex code or use the screen eyedropper to identify the closest standardized color name, copy RGB/HSL/CMYK/Tailwind values, and explore 5 nearest neighbor swatches—free and instant.

#

Popular color lookups:

Standardized Match

Forest Green

Delta: Exact Match (100%)
HEX CodeWeb & UI
#228B22
RGB FormatScreen Displays
rgb(34, 139, 34)
HSL FormatHue, Sat, Lightness
hsl(120, 61%, 34%)
CMYK FormatPrint Inks
cmyk(76%, 0%, 76%, 45%)
CSS VariableDesign Tokens
--color-forest-green: #228B22;
Tailwind ClassUtility CSS
bg-[#228B22] text-[#228B22]

Shades & Tints of Forest Green

Click any swatch to test that variation:

Similar Named Colors

Nearby color families with verified CSS & design system names:

How Our 546-Color Naming Engine Matches Your Hex Code

Out of the 16,777,216 possible 24-bit hex colors (#000000 through #FFFFFF), the official W3C CSS Color specification only assigns human names to 148 keywords. Relying solely on those 148 CSS keywords leaves huge gaps in modern UI design—for instance, pasting a soft Tailwind pastel or a dark-mode surface gray into a basic CSS lookup often returns an unhelpful match like darkslategray or gainsboro.

To give designers and frontend engineers practical, token-ready names, our database combines 546 deduplicated color references across four industry naming systems:

  • W3C CSS Named Colors (140+ keywords): Standard browser-recognized names such as Forest Green (#228B22), Coral (#FF7F50), Rebecca Purple (#663399), and Navy (#000080).
  • Tailwind CSS v3/v4 Scales (50–950 steps): Full neutral and chromatic ramps—including Slate, Zinc, Stone, Emerald, Indigo, Violet, and Rose—so aneyedropped UI color immediately maps to the closest utility token (e.g., Slate 900 for #0F172A).
  • Google Material Design Palettes (50–900 steps): Standardized Android and Material UI color stops from Material Red 50 through Material Gray 900 (#212121).
  • Editorial, Interior & Brand Tokens: Widely searched design names that neither CSS nor Tailwind name explicitly, including Sage Green (#B2AC88), Terracotta (#E2725B), Burgundy (#800020), Dusty Rose (#DCAE96), Charcoal (#36454F), and Spotify Green (#1DB954).

When you type or paste a hex code, the tool normalizes 3-digit shorthand codes (expanding #F0A to #FF00AA), parses the red, green, and blue integers (0–255), and calculates the 3D Euclidean distance D² = (R₁ − R₂)² + (G₁ − G₂)² + (B₁ − B₂)² to every entry in the database. A distance of 0 means your hex is an Exact Match (100%) to a standardized token; otherwise, the tool displays the closest match along with the next 5 nearest neighbors so you can compare subtle warm vs. cool alternatives.

Popular Hex Codes, Standardized Names & Design Guides

Click any hex code below to copy it, or open its dedicated guide for 10-step shade tables, complementary pairings, and WCAG contrast ratios:

SwatchColor NameHex CodeFull Guide
Forest Green#228B22View shades →
Sage Green#B2AC88View shades →
Terracotta#E2725BView shades →
Navy Blue#000080View shades →
Burgundy#800020View shades →
Charcoal#36454FView shades →
Dusty Rose#DCAE96View shades →
Olive Green#808000View shades →
Violet 300 (Lavender)#C4B5FDView shades →
Orange 500 (Sunset)#F97316View shades →
Discord Ash Dark#313338View shades →
WhatsApp Brand Green#25D366View shades →

Choosing Between HEX, RGB, HSL, and CMYK in Your Workflow

Every lookup in the Color Name Finder outputs six synchronized formats. Knowing when to use each representation prevents color shifts between Figma, CSS stylesheets, and commercial print runs:

HEX & RGB (Additive Screen Light)

Both #228B22 and rgb(34, 139, 34) express the exact same sRGB subpixel intensities. Use HEX for compact design-token tables and Figma copy-paste; use RGB when you need alpha transparency in CSS (rgb(34 139 34 / 0.15)) or canvas shaders.

HSL (Human-Intuitive Adjustments)

HSL separates Hue (0°–360° color wheel angle), Saturation (0% gray to 100% vivid), and Lightness (0% black to 100% white). When building hover states or dark-mode surface steps, keeping Hue constant while stepping Lightness by ±5% is much faster than guessing hex digits.

CMYK (Subtractive Process Ink)

CMYK measures Cyan, Magenta, Yellow, and Key (black) ink coverage for physical packaging and stationery. High-saturation screen blues and neon greens sit outside the standard CMYK gamut—use our CMYK readout as a starting point, then soft-proof in Illustrator or InDesign with your press's ICC profile.

CSS Custom Properties & Tailwind Arbitrary Values

If your brand color matches a Tailwind token like Violet 300 (#C4B5FD), use the built-in class bg-violet-300. If it sits between stops, copy the generated CSS variable (--color-sage-green: #B2AC88;) or arbitrary utility (bg-[#B2AC88]).

How to Name Design Tokens in a Production Design System

Once you identify a color's descriptive name in the finder, organize it into a two-tier token architecture so your codebase stays maintainable when you add dark mode or rebrand:

  1. Primitive (literal) layer: Name the raw hex value using the descriptive color name and lightness scale returned by this tool—for example, --palette-forest-green-600: #228B22 or --palette-slate-900: #0F172A. Never use primitive tokens directly inside component styles.
  2. Semantic (role) layer: Map primitives to UI intent—such as --color-action-primary: var(--palette-forest-green-600) or --color-surface-canvas: var(--palette-slate-900). When switching between light and dark themes, only the semantic layer changes its pointer.
  3. Verify contrast before shipping: Check every semantic text-on-surface pair in our WCAG 2.1 contrast checker to confirm at least 4.5:1 for body text and 3:1 for large headings, icons, and button boundaries.

Frequently Asked Questions

What is a color name finder?
A color name finder is a free tool that matches any 3- or 6-digit hex code to the closest human-readable color name—such as Forest Green for #228B22, Sage Green for #B2AC88, or Tailwind Violet 300 for #C4B5FD—along with copy-ready RGB, HSL, CMYK, CSS variable, and Tailwind utility values.
How does this tool calculate the closest color name from a hex code?
The finder converts your hex code into 8-bit sRGB channels (R, G, B from 0 to 255) and computes the squared Euclidean distance D² = (R₁ - R₂)² + (G₁ - G₂)² + (B₁ - B₂)² against 546 standardized colors from the W3C CSS Color Module, Tailwind CSS v3/v4 scales (50–950), Google Material Design palettes, and curated editorial/brand tokens. When D² = 0, the tool flags an Exact Match (100%).
What is the closest color name to #228B22?
Hex #228B22 is an exact match for the W3C CSS named color Forest Green (forestgreen). In RGB it is (34, 139, 34) and in HSL it is (120°, 61%, 34%)—a medium-dark natural green common in outdoor, eco, and financial branding.
What is the closest color name to #B2AC88?
Hex #B2AC88 is an exact match for Sage Green—a muted gray-green with RGB(178, 172, 136) and HSL(51°, 21%, 62%). Designers use it for wellness, interior architecture, organic packaging, and calm UI surfaces.
What is the closest color name to #E2725B?
Hex #E2725B is Terracotta—a warm baked-clay orange-red with RGB(226, 114, 91) and HSL(10°, 70%, 62%). It pairs well with sage green (#B2AC88) and cream (#FFF8F0) in editorial and lifestyle palettes.
What is the closest color name to #000080?
Hex #000080 is the official W3C CSS color Navy. In RGB it is (0, 0, 128)—a deep authoritative blue used for corporate, institutional, and dark-mode navigation systems.
What is the closest color name to #313338?
Hex #313338 is a cool charcoal-violet best known as the Discord dark mode main chat background. In RGB it is (49, 51, 56), sitting near Tailwind Zinc 800 (#27272A) and Gray 700 (#374151).
Why are CMYK values from a hex code considered an approximation?
Hex codes live in the additive sRGB light color space for screens, whereas CMYK describes subtractive cyan, magenta, yellow, and black ink percentages on physical paper. Our tool computes the standard device-independent RGB-to-CMYK formula, but for offset press runs you should convert using your printer’s specific ICC profile (such as Coated FOGRA39 or US Web Coated SWOP v2).

Build full 5-color schemes from your matched hex with our color palette generator, test real dashboard and mobile layouts in the live UI palette previewer, or generate 10-step light and dark ramps in the tint and shade generator.