HEX Color Picker
Advanced color command center featuring EyeDropper integration, WCAG accessibility scoring, automatic harmony generation, and real-time RGB/HSL/CMYK conversion.
About
Color selection is not merely aesthetic; it is a rigid engineering constraint in web development. Precision in chromatic values ensures brand consistency across varied displays and viewports. More critically, the Web Content Accessibility Guidelines (WCAG) mandate specific contrast ratios between foreground text and background colors to ensure readability for visually impaired users. Failing to meet these standards results in inaccessible digital products and potential legal liabilities.
This tool functions as a complete chromatic command center. It bypasses standard operating system pickers to provide direct access to the raw data channels of color: Hue, Saturation, Lightness, and Alpha. It integrates algorithmic harmony engines to calculate complementary and analogous relationships mathematically, rather than intuitively. Furthermore, it incorporates a real-time accessibility auditor, validating your selection against WCAG 2.1 Level AA and AAA standards instantly.
Formulas
Accurate digital color reproduction relies on transformations between coordinate systems. The contrast ratio, vital for accessibility, is derived from relative luminance.
1. Relative Luminance (L)
For sRGB colors, the spectral channels (R, G, B) are first linearized:
Then, luminance is calculated using human perception coefficients:
L = 0.2126R + 0.7152G + 0.0722B
2. WCAG Contrast Ratio
Ratio = L1 + 0.05L2 + 0.05
Where L1 is the luminance of the lighter color and L2 is the darker.
Reference Data
| Color Name | HEX | RGB | HSL | Luminance (Y) |
|---|---|---|---|---|
| AliceBlue | #F0F8FF | 240, 248, 255 | 208°, 100%, 97% | 0.92 |
| AntiqueWhite | #FAEBD7 | 250, 235, 215 | 34°, 78%, 91% | 0.86 |
| Aqua | #00FFFF | 0, 255, 255 | 180°, 100%, 50% | 0.78 |
| Aquamarine | #7FFFD4 | 127, 255, 212 | 160°, 100%, 75% | 0.80 |
| Azure | #F0FFFF | 240, 255, 255 | 180°, 100%, 97% | 0.97 |
| Beige | #F5F5DC | 245, 245, 220 | 60°, 56%, 91% | 0.89 |
| Bisque | #FFE4C4 | 255, 228, 196 | 33°, 100%, 88% | 0.80 |
| Black | #000000 | 0, 0, 0 | 0°, 0%, 0% | 0.00 |
| BlanchedAlmond | #FFEBCD | 255, 235, 205 | 36°, 100%, 90% | 0.85 |
| Blue | #0000FF | 0, 0, 255 | 240°, 100%, 50% | 0.07 |
| BlueViolet | #8A2BE2 | 138, 43, 226 | 271°, 76%, 53% | 0.12 |
| Brown | #A52A2A | 165, 42, 42 | 0°, 59%, 41% | 0.10 |
| BurlyWood | #DEB887 | 222, 184, 135 | 34°, 57%, 70% | 0.51 |
| CadetBlue | #5F9EA0 | 95, 158, 160 | 182°, 25%, 50% | 0.29 |
| Chartreuse | #7FFF00 | 127, 255, 0 | 90°, 100%, 50% | 0.76 |
| Chocolate | #D2691E | 210, 105, 30 | 25°, 75%, 47% | 0.24 |
| Coral | #FF7F50 | 255, 127, 80 | 16°, 100%, 66% | 0.37 |
| CornflowerBlue | #6495ED | 100, 149, 237 | 219°, 79%, 66% | 0.31 |
| Cornsilk | #FFF8DC | 255, 248, 220 | 48°, 100%, 93% | 0.94 |
| Crimson | #DC143C | 220, 20, 60 | 348°, 83%, 47% | 0.16 |
| Cyan | #00FFFF | 0, 255, 255 | 180°, 100%, 50% | 0.78 |
| DarkBlue | #00008B | 0, 0, 139 | 240°, 100%, 27% | 0.01 |
| DarkCyan | #008B8B | 0, 139, 139 | 180°, 100%, 27% | 0.20 |
| DarkGoldenRod | #B8860B | 184, 134, 11 | 43°, 89%, 38% | 0.27 |
| DarkGray | #A9A9A9 | 169, 169, 169 | 0°, 0%, 66% | 0.39 |
| DarkGreen | #006400 | 0, 100, 0 | 120°, 100%, 20% | 0.09 |
| DarkKhaki | #BDB76B | 189, 183, 107 | 56°, 38%, 58% | 0.45 |
| DarkMagenta | #8B008B | 139, 0, 139 | 300°, 100%, 27% | 0.08 |
| DarkOliveGreen | #556B2F | 85, 107, 47 | 82°, 39%, 30% | 0.12 |
| DarkOrange | #FF8C00 | 255, 140, 0 | 33°, 100%, 50% | 0.38 |
| DarkOrchid | #9932CC | 153, 50, 204 | 280°, 61%, 50% | 0.13 |
| DarkRed | #8B0000 | 139, 0, 0 | 0°, 100%, 27% | 0.05 |
| DarkSalmon | #E9967A | 233, 150, 122 | 15°, 72%, 70% | 0.40 |
| DarkSeaGreen | #8FBC8F | 143, 188, 143 | 120°, 25%, 65% | 0.44 |
| DarkSlateBlue | #483D8B | 72, 61, 139 | 248°, 39%, 39% | 0.06 |
| DarkSlateGray | #2F4F4F | 47, 79, 79 | 180°, 25%, 25% | 0.06 |
| DarkTurquoise | #00CED1 | 0, 206, 209 | 181°, 100%, 41% | 0.48 |
| DarkViolet | #9400D3 | 148, 0, 211 | 282°, 100%, 41% | 0.10 |
| DeepPink | #FF1493 | 255, 20, 147 | 328°, 100%, 54% | 0.23 |
| DeepSkyBlue | #00BFFF | 0, 191, 255 | 195°, 100%, 50% | 0.44 |
| DimGray | #696969 | 105, 105, 105 | 0°, 0%, 41% | 0.14 |
| DodgerBlue | #1E90FF | 30, 144, 255 | 210°, 100%, 56% | 0.27 |
| FireBrick | #B22222 | 178, 34, 34 | 0°, 68%, 42% | 0.10 |
| FloralWhite | #FFFAF0 | 255, 250, 240 | 40°, 100%, 97% | 0.96 |
| ForestGreen | #228B22 | 34, 139, 34 | 120°, 61%, 34% | 0.19 |
| Fuchsia | #FF00FF | 255, 0, 255 | 300°, 100%, 50% | 0.28 |
| Gainsboro | #DCDCDC | 220, 220, 220 | 0°, 0%, 86% | 0.72 |
| GhostWhite | #F8F8FF | 248, 248, 255 | 240°, 100%, 99% | 0.94 |
| Gold | #FFD700 | 255, 215, 0 | 51°, 100%, 50% | 0.68 |
| GoldenRod | #DAA520 | 218, 165, 32 | 43°, 74%, 49% | 0.42 |
| Gray | #808080 | 128, 128, 128 | 0°, 0%, 50% | 0.21 |
| Green | #008000 | 0, 128, 0 | 120°, 100%, 25% | 0.15 |