-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
246 lines (232 loc) · 11 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html>
<head>
<title>hex2rgb(a) and hex2hsl(a) | color converter</title>
<meta charset="utf-8">
<meta content="index, follow" name="robots">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords"
content="hex, hex to hsl, hex 2 hsl, hex2hsl, hex2hsla, hex to hsla, rgb2hsl, rgb to hsl, rgba to hsla, hex to hsl converter, rbg, rgba, hex2rgb, github, tgomilar, hex2rgba, converter, hex2rgba converter, hex to rgb converter,hex to rgb, hex to rgba converter, online, free">
<meta name="description"
content="hex2rgb(a) and hex2hsl(a) color converter. Auto copies rgba() or HEX value to clipboard and displays entered color.">
<meta property="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://tgomilar.github.io/hex2rgb/img/hex2rgb.png">
<meta property="og:locale" content="en_GB">
<meta property="og:type" content="website">
<meta property="og:title" content="hex2rgb(a) color converter">
<meta property="og:description"
content="Might be useful to designers, front-end developers... #hex2rgb #colors #web">
<meta property="og:url" content="https://tgomilar.github.io/hex2rgb/">
<meta property="og:site_name" content="hex2rgb(a) color converter">
<meta property="og:image" content="https://tgomilar.github.io/hex2rgb/img/hex2rgb.png">
<meta name="google-site-verification" content="TWTDG5sHkQOekIFUa5uWVmi7yO3pJTU7AGMaIPajIHc"/>
<link rel="icon" href="favicon.ico">
<script src="https://use.fontawesome.com/9576790a31.js"></script>
<link href="https://fonts.googleapis.com/css?family=Shrikhand" rel="stylesheet">
<!--Import CSS-->
<link type="text/css" rel="stylesheet" href="css/style.css" media="screen,projection">
<link href="js/nouislider/nouislider.css" rel="stylesheet">
</head>
<body>
<!--nav-->
<nav>
<div class="nav-wrapper ">
<a href="/hex2rgb/" class="brand-logo center ">
<span>hex</span>
<span>2</span>
<span>rgb(a)</span>
<span>&&</span>
<span>hex</span>
<span>2</span>
<span>hsl(a)</span>
</a>
</div>
</nav>
<!--nav-->
<!--container-->
<div class="container">
<!--about-->
<div class="row mt-4">
<div class="col s12 ">
<blockquote>
Convert color from <b>hex to rgb(a)</b> and <b>hsl(a)</b> or <b>rgb(a) to hex</b> and <b>hsl(a)</b> values.<br>
Converted value is copied to clipboard
and prepared for pasting into CSS, SASS/SCSS, LASS files.
</blockquote>
<blockquote>
Enter your value and press Enter/Return key (<i class="fa fa-keyboard-o" aria-hidden="true"></i>) or
click Convert (<i class="fa fa-mouse-pointer" aria-hidden="true"></i>).
</blockquote>
</div>
</div>
<!--/about-->
<!--card-->
<div class="card">
<div class="card-content">
<!--row-->
<div class="row">
<!--form-->
<form class="col s12">
<!--switch-->
<div class="switch right tooltipped" data-position="bottom" data-delay="50" data-tooltip="Wht's your choice?">
<label>
hex2rgb(a) and
hex2hsl(a)
<input type="checkbox">
<span class="lever"></span>
rgb2hex and
rgb2hsl(a)
</label>
</div>
<!--/switch-->
<div class="clearfix"></div>
<div class="row">
<div class="col m6 s12">
<blockquote><h5>Paste HEX value</h5></blockquote>
<span class="badge"> </span>
</div>
<div class="col m6 s12">
<blockquote><h5>or RGB value</h5></blockquote>
</div>
</div>
<!--row-->
<div class="row">
<div class="input-field col m6 s12">
<input id="hex" type="text">
<label id="hv" for="hex" data-error="wrong HEX value">
HEX value (#fa3, #26a69a, ba3, fffde7)
</label>
</div>
<div class="input-field col m2 s4">
<input id="rgb_r" type="number" min="0" max="255" class="validate">
<label for="rgb_r" data-error="wrong red value">Red</label>
</div>
<div class="input-field col m2 s4">
<input id="rgb_g" type="number" min="0" max="255" class="validate">
<label for="rgb_g" data-error="wrong green value">Green</label>
</div>
<div class="input-field col m2 s4">
<input id="rgb_b" type="number" min="0" max="255" class="validate">
<label for="rgb_b" data-error="wrong blue value">Blue</label>
</div>
</div>
<!--/row-->
<br>
<!--row-->
<div class="row">
<div class="col m6 s12">
<blockquote><h5>Opacity</h5></blockquote>
<div class="row">
<div class="input-field col m2 s3">
<input placeholder="100" id="opacity" type="number" min="0" max="100">
</div>
<div class="col s1 percantage">%</div>
<div class="col m9 s8">
<div class="range-field">
<div type="range" id="opacity_range" min="0" max="100"></div>
</div>
</div>
</div>
</div>
<div class="col m6 s12">
<blockquote><h5>hex2<b>rgb</b>(a)</h5></blockquote>
<div class="row">
<div class="input-field col s6">
<input id="rgba" placeholder="" type="text">
<label for="rgba" data-error="wrong blue value">rgba</label>
</div>
<div class="input-field col s6">
<input id="rgb" placeholder="" type="text">
<label for="rgb">rgb</label>
</div>
</div>
<blockquote><h5>hex2<b>hsl</b>(a)</h5></blockquote>
<div class="row">
<div class="input-field col s6">
<input id="hsla" placeholder="" type="text">
<label for="hsla" data-error="wrong blue value">hsla</label>
</div>
<div class="input-field col s6">
<input id="hsl" placeholder="" type="text">
<label for="hsl">hsl</label>
</div>
<div class="col s12">
<div class="right">
<a class="btn waves-effect waves-light" id="erase"><i class="fa fa-eraser"
aria-hidden="true"></i></a>
<button class="btn waves-effect waves-light red lighten-1" id="subm"
name="action">Convert
</button>
</div>
</div>
</div>
</div>
</div>
<!--/row-->
</form>
<!--/form-->
</div>
<!--/row-->
</div>
<div class="color-cards">
<div class="col s12 m12">
<div id="color-card" class="card lighten-5">
<div class="card-content black-text">
</div>
</div>
<div class="center-align github">
<a href="https://github.com/tgomilar/hex2rgb" class="grey-text text-darken-4">
<i class="fa fa-github fa-3x" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</div>
<!--/card-->
</div>
<!--/container-->
<div class="fixed-action-btn horizontal">
<a class="btn-floating btn-large red">
<i class="fa fa-share-alt" aria-hidden="true"></i>
</a>
<ul>
<li>
<a class="btn-floating"
href="mailto:?Subject=Check%20out%20this%20HEX%20to%20RGBa%20converter&body=hex2rgb(a)%3A%20https%3A%2F%2Ftgomilar.github.io%2Fhex2rgb%2F"
target="_top">
<i class="fa fa-envelope" aria-hidden="true"></i>
</a>
</li>
<li>
<a class="btn-floating facebook-bg"
href="http://www.facebook.com/sharer.php?u=https://tgomilar.github.io/hex2rgb">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a>
</li>
<li>
<a class="btn-floating twitter-bg"
href="http://twitter.com/share?text=Check out this hex to rgb(a) converter: hex2rgb(a) https://tgomilar.github.io/hex2rgb #hex2rgba #hex #rgb #color">
<i class="fa fa-twitter" aria-hidden="true"></i>
</a>
</li>
</ul>
</div>
<footer>
<div class="footer-copyright center-align">
<div class="container">
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>
| <span>hex</span><span>2</span><span>rgb(a)</span>
</div>
</div>
</footer>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/bin/materialize.min.js"></script>
<script type="text/javascript" src="js/nouislider/nouislider.min.js"></script>
<script type="text/javascript" src="js/clipboard.min.js"></script>
<script type="text/javascript" src="js/base.js"></script>
</body>
</html>