aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/css/color_value/index.html
blob: 0f98f05a46529c5e3301d2589274e719ebc05189 (plain)
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
---
title: <color>
slug: Web/CSS/color_value
tags:
  - CSS
  - Layout
  - Necesita Compatibilidad con Navegadores Móviles
  - Referencia
  - Tipos de datos CSS
  - Web
translation_of: Web/CSS/color_value
---
<p>{{CSSRef}}</p>

<h2 id="Resumen">Resumen</h2>

<p><code><font face="Open Sans, Arial, sans-serif">El tipo de datos </font></code><a href="/en-US/docs/Web/CSS">CSS</a><code><font face="Open Sans, Arial, sans-serif"> </font>&lt;color&gt;</code> denota un color en el <a class="external" href="http://en.wikipedia.org/wiki/SRGB">sRGB color space</a>. Un color puede ser descrito de cualquiera de las siguiente maneras:</p>

<ul>
 <li>Usando una <em>palabra clave</em>.</li>
 <li>Usando el sistema  <a class="external" href="http://en.wikipedia.org/wiki/RGB_color_model#Geometric_representation">RGB cubic-coordinate</a>  (usando  #-hexadecimal o las notaciones funcionales <code>rgb()</code> y <code>rgba()</code> )</li>
 <li>Usando el sistema <a class="external" href="http://en.wikipedia.org/wiki/HSL_and_HSV">HSL cylindrical-coordinate</a>  (usando las notaciones funcionales <code>hsl()</code> y <code>hsla() </code>)</li>
</ul>

<p>Hay que destacar que la lista de valores de color aceptados ha ido creciendo conforme la especificación evolucionaba, para acabar con la lista de colores de CSS3.</p>

<p>Asociado con el color en el espacio sRGB, un valor <code>&lt;color&gt;</code> también consiste en una coordenada <a class="external" href="http://en.wikipedia.org/wiki/Alpha_compositing">alpha-channel</a> o valor de transparencia, indicando cómo se debe <a class="external" href="http://www.w3.org/TR/2003/REC-SVG11-20030114/masking.html#SimpleAlphaBlending">composite</a> o mezclar el color con su color de fondo.</p>

<p>Aunque los valores de colores en CSS son definidos de manera precisa existe la posibilidad de que parezcan distintos en dispositivos diferentes. La mayoría de ellos no están calibrados y algunos navegadores no soportan los <a class="external" href="http://en.wikipedia.org/wiki/ICC_profile">color profile</a> de algunos dispositivos de salidas. En esta situación el color puede variar bastante.</p>

<div class="note"><strong>Notas:</strong> La recomendación <a class="external" href="http://www.w3.org/TR/WCAG/#visual-audio-contrast">WCAG 2.0</a> de la W3C aconseja a los autores web de manera clara que no usen  <em>color </em>como el único medido para especificar una información, acción o resultado concreto. Algunos usuarios tienen problemas para diferenciar colores y existe la posibilidad de que la información transmitida no sea captada. Por supuesto esto no impide que se use el color, sólo su uso como único medio para describir alguna información.</div>

<h2 id="Interpolación">Interpolación</h2>

<p>Los valores del tipo de datos CSS <code>&lt;color&gt;</code> pueden ser interpolados para lograr animaciones o para crear valores <code>&lt;gradient&gt;</code>En este caso son interpolados en cada uno de sus componentes rojo, verde y azul, conteniendo, cada uno de ellos, un número decimal con coma flotante.  Debe tenerse en cuenta que la interpolación del color sucede en el <a class="external" href="http://www.gimp.org/docs/plug-in/appendix-alpha.html">alpha-premultiplied sRGBA color space</a> para evitar que aparezcan grises inesperados. En las animaciones, la velocidad de la interpolación viene determinada por la <a href="/en-US/docs/Web/CSS/timing-function">timing function</a> asociada con la animación.</p>

<h2 id="Valores">Valores</h2>

<p>Hay varias formas de describir un valor <code>&lt;color&gt;</code>.</p>

<h3 id="Palabras_clave_de_colores">Palabras clave de colores</h3>

<p>Las palabras clave de colores son identificadores en los que no hay distinción entre mayúsculas y minúsculas y que sirven para representar un color concreto, por ejemplo <code>red, blue, brown, lightseagreen</code>. El nombre describe el color aunque es mayormente artificial. La lista de valores válidos cambia un montón de una especificación a otra:</p>

<ul>
 <li>CSS Nivel 1 sólo acepta 16 colores básicos, los llamados <em>colores</em> <em>VGA </em>ya que son tomados de los colores que son capaces de mostrar las trajetas gráficas <a class="external" href="http://en.wikipedia.org/wiki/VGA">VGA</a>.</li>
 <li>CSS Nivel 2 añadió la palabra clave <code>orange</code>.</li>
 <li>Desde el principio los navegadores aceptarons otros colores, sobre todo la lista de colores X11 con unas pocas diferencias. ya que, los primeros navegadores, eran en su mayoría aplicaciones X11. SVG 1.0  fué el primer estándar  que definió formalmente estas palabras clave. Con frecuencia nos referimos a ello como la lista extendida de colores , los colores X11 o los colores SVG.</li>
</ul>

<p>Hay algunas advertencias a tener en cuenta al usar las palabras clave relativas a colores:</p>

<ul>
 <li>A excepción de los 16 colores básicos, que son comunes en HTML, los otros no pueden ser usados en HTML. HTML convertirá estos valores desconocidos usando un algoritmo específico y se obtendrá colores totalmente diferentes. Estas palabras clave deberían sólo usarse en SGV y CSS.</li>
 <li>Colores desconocidos hacen que la propiedad CSS sea declarada inválida. Las propiedades inválidas son ignoradas y , por tanto, el color no tendrá efecto. Esto es un comportamiento diferente al del HTML</li>
 <li>Ninguna palabra clave de color tiene transparencia en CSS, son colores planos y sólidos.</li>
 <li>Algunas referencian el mismo color:
  <ul>
   <li><code>darkgray</code> / <code>darkgrey</code></li>
   <li><code>darkslategray</code> / <code>darkslategrey</code></li>
   <li><code>dimgray</code> / <code>dimgrey</code></li>
   <li><code>lightgray</code> / <code>lightgrey</code></li>
   <li><code>lightslategray</code> / <code>lightslategrey</code></li>
   <li><code>gray</code> / <code>grey</code></li>
   <li><code>slategray</code> / <code>slategrey</code></li>
  </ul>
 </li>
 <li>Aunque las palabras clave de colores han sido tomadas de los nombres de colores usuales en X11, el color puede ser ligeramente diferente al color en X11 ya que son adaptados por el fabricante para un hardware específico.</li>
</ul>

<table>
 <thead>
  <tr>
   <th scope="col">Especificación</th>
   <th scope="col">Color</th>
   <th scope="col">Palabra clave</th>
   <th scope="col">Valor RGB hexadecimal</th>
   <th scope="col">Muestra</th>
  </tr>
 </thead>
 <tbody>
  <tr style="position: relative;">
   <td rowspan="16">{{SpecName("CSS1")}}</td>
   <td style="background: #000;"> </td>
   <td style="text-align: center;"><code>black</code></td>
   <td><code>#000000</code></td>
   <td style="background: black;"> </td>
  </tr>
  <tr>
   <td style="background: #C0C0C0;"> </td>
   <td style="text-align: center;"><code>silver</code></td>
   <td><code>#c0c0c0</code></td>
   <td style="background: silver;"> </td>
  </tr>
  <tr>
   <td style="background: #808080;"> </td>
   <td style="text-align: center;"><code>gray</code></td>
   <td><code>#808080</code></td>
   <td style="background: gray;"> </td>
  </tr>
  <tr>
   <td style="background: #FFF;"> </td>
   <td style="text-align: center;"><code>white</code></td>
   <td><code>#ffffff</code></td>
   <td style="background: white;"> </td>
  </tr>
  <tr>
   <td style="background: #800000;"> </td>
   <td style="text-align: center;"><code>maroon</code></td>
   <td><code>#800000</code></td>
   <td style="background: maroon;"> </td>
  </tr>
  <tr>
   <td style="background: #F00;"> </td>
   <td style="text-align: center;"><code>red</code></td>
   <td><code>#ff0000</code></td>
   <td style="background: red;"> </td>
  </tr>
  <tr>
   <td style="background: #800080;"> </td>
   <td style="text-align: center;"><code>purple</code></td>
   <td><code>#800080</code></td>
   <td style="background: purple;"> </td>
  </tr>
  <tr>
   <td style="background: #F0F;"> </td>
   <td style="text-align: center;"><code>fuchsia</code></td>
   <td><code>#ff00ff</code></td>
   <td style="background: fuchsia;"> </td>
  </tr>
  <tr>
   <td style="background: #008000;"> </td>
   <td style="text-align: center;"><code>green</code></td>
   <td><code>#008000</code></td>
   <td style="background: green;"> </td>
  </tr>
  <tr>
   <td style="background: #0F0;"> </td>
   <td style="text-align: center;"><code>lime</code></td>
   <td><code>#00ff00</code></td>
   <td style="background: lime;"> </td>
  </tr>
  <tr>
   <td style="background: #808000;"> </td>
   <td style="text-align: center;"><code>olive</code></td>
   <td><code>#808000</code></td>
   <td style="background: olive;"> </td>
  </tr>
  <tr>
   <td style="background: #FF0;"> </td>
   <td style="text-align: center;"><code>yellow</code></td>
   <td><code>#ffff00</code></td>
   <td style="background: yellow;"> </td>
  </tr>
  <tr>
   <td style="background: #000080;"> </td>
   <td style="text-align: center;"><code>navy</code></td>
   <td><code>#000080</code></td>
   <td style="background: navy;"> </td>
  </tr>
  <tr>
   <td style="background: #00F;"> </td>
   <td style="text-align: center;"><code>blue</code></td>
   <td><code>#0000ff</code></td>
   <td style="background: blue;"> </td>
  </tr>
  <tr>
   <td style="background: #008080;"> </td>
   <td style="text-align: center;"><code>teal</code></td>
   <td><code>#008080</code></td>
   <td style="background: teal;"> </td>
  </tr>
  <tr>
   <td style="background: #0FF;"> </td>
   <td style="text-align: center;"><code>aqua</code></td>
   <td><code>#00ffff</code></td>
   <td style="background: aqua;"> </td>
  </tr>
  <tr>
   <td>{{SpecName("CSS2.1")}}</td>
   <td style="background: #FFA500;"> </td>
   <td style="text-align: center;"><code>orange</code></td>
   <td><code>#ffa500</code></td>
   <td style="background: orange;"> </td>
  </tr>
  <tr>
   <td rowspan="128">{{SpecName("CSS3 Colors")}}</td>
   <td style="background: #f0f8ff;"> </td>
   <td style="text-align: center;"><code>aliceblue</code></td>
   <td><code>#f0f8ff</code></td>
   <td style="background: aliceblue;"> </td>
  </tr>
  <tr>
   <td style="background: #faebd7;"> </td>
   <td style="text-align: center;"><code>antiquewhite</code></td>
   <td><code>#faebd7</code></td>
   <td style="background: antiquewhite;"> </td>
  </tr>
  <tr>
   <td style="background: #7fffd4;"> </td>
   <td style="text-align: center;"><code>aquamarine</code></td>
   <td><code>#7fffd4</code></td>
   <td style="background: aquamarine;"> </td>
  </tr>
  <tr>
   <td style="background: #f0ffff;"> </td>
   <td style="text-align: center;"><code>azure</code></td>
   <td><code>#f0ffff</code></td>
   <td style="background: azure;"> </td>
  </tr>
  <tr>
   <td style="background: #f5f5dc;"> </td>
   <td style="text-align: center;"><code>beige</code></td>
   <td><code>#f5f5dc</code></td>
   <td style="background: beige;"> </td>
  </tr>
  <tr>
   <td style="background: #ffe4c4;"> </td>
   <td style="text-align: center;"><code>bisque</code></td>
   <td><code>#ffe4c4</code></td>
   <td style="background: bisque;"> </td>
  </tr>
  <tr>
   <td style="background: #ffebcd;"> </td>
   <td style="text-align: center;"><code>blanchedalmond</code></td>
   <td><code>#ffe4c4</code></td>
   <td style="background: blanchedalmond;"> </td>
  </tr>
  <tr>
   <td style="background: #8a2be2;"> </td>
   <td style="text-align: center;"><code>blueviolet</code></td>
   <td><code>#8a2be2</code></td>
   <td style="background: blueviolet;"> </td>
  </tr>
  <tr>
   <td style="background: #a52a2a;"> </td>
   <td style="text-align: center;"><code>brown</code></td>
   <td><code>#a52a2a</code></td>
   <td style="background: brown;"> </td>
  </tr>
  <tr>
   <td style="background: #deb887;"> </td>
   <td style="text-align: center;"><code>burlywood</code></td>
   <td><code>#deb887</code></td>
   <td style="background: burlywood;"> </td>
  </tr>
  <tr>
   <td style="background: #5f9ea0;"> </td>
   <td style="text-align: center;"><code>cadetblue</code></td>
   <td><code>#5f9ea0</code></td>
   <td style="background: cadetblue;"> </td>
  </tr>
  <tr>
   <td style="background: #7fff00;"> </td>
   <td style="text-align: center;"><code>chartreuse</code></td>
   <td><code>#7fff00</code></td>
   <td style="background: chartreuse;"> </td>
  </tr>
  <tr>
   <td style="background: #d2691e;"> </td>
   <td style="text-align: center;"><code>chocolate</code></td>
   <td><code>#d2691e</code></td>
   <td style="background: chocolate;"> </td>
  </tr>
  <tr>
   <td style="background: #ff7f50;"> </td>
   <td style="text-align: center;"><code>coral</code></td>
   <td><code>#ff7f50</code></td>
   <td style="background: coral;"> </td>
  </tr>
  <tr>
   <td style="background: #6495ed;"> </td>
   <td style="text-align: center;"><code>cornflowerblue</code></td>
   <td><code>#6495ed</code></td>
   <td style="background: cornflowerblue;"> </td>
  </tr>
  <tr>
   <td style="background: #fff8dc;"> </td>
   <td style="text-align: center;"><code>cornsilk</code></td>
   <td><code>#fff8dc</code></td>
   <td style="background: cornsilk;"> </td>
  </tr>
  <tr>
   <td style="background: #dc143c;"> </td>
   <td style="text-align: center;"><code>crimson</code></td>
   <td><code>#dc143c</code></td>
   <td style="background: crimson;"> </td>
  </tr>
  <tr>
   <td style="background: #00008b;"> </td>
   <td style="text-align: center;"><code>darkblue</code></td>
   <td><code>#00008b</code></td>
   <td style="background: darkblue;"> </td>
  </tr>
  <tr>
   <td style="background: #008b8b;"> </td>
   <td style="text-align: center;"><code>darkcyan</code></td>
   <td><code>#008b8b</code></td>
   <td style="background: darkcyan;"> </td>
  </tr>
  <tr>
   <td style="background: #b8860b;"> </td>
   <td style="text-align: center;"><code>darkgoldenrod</code></td>
   <td><code>#b8860b</code></td>
   <td style="background: darkgoldenrod;"> </td>
  </tr>
  <tr>
   <td style="background: #a9a9a9;"> </td>
   <td style="text-align: center;"><code>darkgray</code></td>
   <td><code>#a9a9a9</code></td>
   <td style="background: darkgray;"> </td>
  </tr>
  <tr>
   <td style="background: #006400;"> </td>
   <td style="text-align: center;"><code>darkgreen</code></td>
   <td><code>#006400</code></td>
   <td style="background: darkgreen;"> </td>
  </tr>
  <tr>
   <td style="background: #a9a9a9;"> </td>
   <td style="text-align: center;"><code>darkgrey</code></td>
   <td><code>#a9a9a9</code></td>
   <td style="background: darkgrey;"> </td>
  </tr>
  <tr>
   <td style="background: #bdb76b;"> </td>
   <td style="text-align: center;"><code>darkkhaki</code></td>
   <td><code>#bdb76b</code></td>
   <td style="background: darkkhaki;"> </td>
  </tr>
  <tr>
   <td style="background: #8b008b;"> </td>
   <td style="text-align: center;"><code>darkmagenta</code></td>
   <td><code>#8b008b</code></td>
   <td style="background: darkmagenta;"> </td>
  </tr>
  <tr>
   <td style="background: #556b2f;"> </td>
   <td style="text-align: center;"><code>darkolivegreen</code></td>
   <td><code>#556b2f</code></td>
   <td style="background: darkolivegreen;"> </td>
  </tr>
  <tr>
   <td style="background: #ff8c00;"> </td>
   <td style="text-align: center;"><code>darkorange</code></td>
   <td><code>#ff8c00</code></td>
   <td style="background: darkorange;"> </td>
  </tr>
  <tr>
   <td style="background: #9932cc;"> </td>
   <td style="text-align: center;"><code>darkorchid</code></td>
   <td><code>#9932cc</code></td>
   <td style="background: darkorchid;"> </td>
  </tr>
  <tr>
   <td style="background: #8b0000;"> </td>
   <td style="text-align: center;"><code>darkred</code></td>
   <td><code>#8b0000</code></td>
   <td style="background: darkred;"> </td>
  </tr>
  <tr>
   <td style="background: #e9967a;"> </td>
   <td style="text-align: center;"><code>darksalmon</code></td>
   <td><code>#e9967a</code></td>
   <td style="background: darksalmon;"> </td>
  </tr>
  <tr>
   <td style="background: #8fbc8f;"> </td>
   <td style="text-align: center;"><code>darkseagreen</code></td>
   <td><code>#8fbc8f</code></td>
   <td style="background: darkseagreen;"> </td>
  </tr>
  <tr>
   <td style="background: #483d8b;"> </td>
   <td style="text-align: center;"><code>darkslateblue</code></td>
   <td><code>#483d8b</code></td>
   <td style="background: darkslateblue;"> </td>
  </tr>
  <tr>
   <td style="background: #2f4f4f;"> </td>
   <td style="text-align: center;"><code>darkslategray</code></td>
   <td><code>#2f4f4f</code></td>
   <td style="background: darkslategray;"> </td>
  </tr>
  <tr>
   <td style="background: #2f4f4f;"> </td>
   <td style="text-align: center;"><code>darkslategrey</code></td>
   <td><code>#2f4f4f</code></td>
   <td style="background: darkslategrey;"> </td>
  </tr>
  <tr>
   <td style="background: #00ced1;"> </td>
   <td style="text-align: center;"><code>darkturquoise</code></td>
   <td><code>#00ced1</code></td>
   <td style="background: darkturquoise;"> </td>
  </tr>
  <tr>
   <td style="background: #9400d3;"> </td>
   <td style="text-align: center;"><code>darkviolet</code></td>
   <td><code>#9400d3</code></td>
   <td style="background: darkviolet;"> </td>
  </tr>
  <tr>
   <td style="background: #ff1493;"> </td>
   <td style="text-align: center;"><code>deeppink</code></td>
   <td><code>#ff1493</code></td>
   <td style="background: deeppink;"> </td>
  </tr>
  <tr>
   <td style="background: #00bfff;"> </td>
   <td style="text-align: center;"><code>deepskyblue</code></td>
   <td><code>#00bfff</code></td>
   <td style="background: deepskyblue;"> </td>
  </tr>
  <tr>
   <td style="background: #696969;"> </td>
   <td style="text-align: center;"><code>dimgray</code></td>
   <td><code>#696969</code></td>
   <td style="background: dimgray;"> </td>
  </tr>
  <tr>
   <td style="background: #696969;"> </td>
   <td style="text-align: center;"><code>dimgrey</code></td>
   <td><code>#696969</code></td>
   <td style="background: dimgrey;"> </td>
  </tr>
  <tr>
   <td style="background: #1e90ff;"> </td>
   <td style="text-align: center;"><code>dodgerblue</code></td>
   <td><code>#1e90ff</code></td>
   <td style="background: dodgerblue;"> </td>
  </tr>
  <tr>
   <td style="background: #b22222;"> </td>
   <td style="text-align: center;"><code>firebrick</code></td>
   <td><code>#b22222</code></td>
   <td style="background: firebrick;"> </td>
  </tr>
  <tr>
   <td style="background: #fffaf0;"> </td>
   <td style="text-align: center;"><code>floralwhite</code></td>
   <td><code>#fffaf0</code></td>
   <td style="background: floralwhite;"> </td>
  </tr>
  <tr>
   <td style="background: #228b22;"> </td>
   <td style="text-align: center;"><code>forestgreen</code></td>
   <td><code>#228b22</code></td>
   <td style="background: forestgreen;"> </td>
  </tr>
  <tr>
   <td style="background: #dcdcdc;"> </td>
   <td style="text-align: center;"><code>gainsboro</code></td>
   <td><code>#dcdcdc</code></td>
   <td style="background: gainsboro;"> </td>
  </tr>
  <tr>
   <td style="background: #f8f8ff;"> </td>
   <td style="text-align: center;"><code>ghostwhite</code></td>
   <td><code>#f8f8ff</code></td>
   <td style="background: ghostwhite;"> </td>
  </tr>
  <tr>
   <td style="background: #ffd700;"> </td>
   <td style="text-align: center;"><code>gold</code></td>
   <td><code>#ffd700</code></td>
   <td style="background: gold;"> </td>
  </tr>
  <tr>
   <td style="background: #daa520;"> </td>
   <td style="text-align: center;"><code>goldenrod</code></td>
   <td><code>#daa520</code></td>
   <td style="background: goldenrod;"> </td>
  </tr>
  <tr>
   <td style="background: #adff2f;"> </td>
   <td style="text-align: center;"><code>greenyellow</code></td>
   <td><code>#adff2f</code></td>
   <td style="background: greenyellow ;"> </td>
  </tr>
  <tr>
   <td style="background: #808080;"> </td>
   <td style="text-align: center;"><code>grey</code></td>
   <td><code>#808080</code></td>
   <td style="background: grey;"> </td>
  </tr>
  <tr>
   <td style="background: #f0fff0;"> </td>
   <td style="text-align: center;"><code>honeydew</code></td>
   <td><code>#f0fff0</code></td>
   <td style="background: honeydew;"> </td>
  </tr>
  <tr>
   <td style="background: #ff69b4;"> </td>
   <td style="text-align: center;"><code>hotpink</code></td>
   <td><code>#ff69b4</code></td>
   <td style="background: hotpink;"> </td>
  </tr>
  <tr>
   <td style="background: #cd5c5c;"> </td>
   <td style="text-align: center;"><code>indianred</code></td>
   <td><code>#cd5c5c</code></td>
   <td style="background: indianred;"> </td>
  </tr>
  <tr>
   <td style="background: #4b0082;"> </td>
   <td style="text-align: center;"><code>indigo</code></td>
   <td><code>#4b0082</code></td>
   <td style="background: indigo;"> </td>
  </tr>
  <tr>
   <td style="background: #fffff0;"> </td>
   <td style="text-align: center;"><code>ivory</code></td>
   <td><code>#fffff0</code></td>
   <td style="background: ivory;"> </td>
  </tr>
  <tr>
   <td style="background: #f0e68c;"> </td>
   <td style="text-align: center;"><code>khaki</code></td>
   <td><code>#f0e68c</code></td>
   <td style="background: khaki;"> </td>
  </tr>
  <tr>
   <td style="background: #e6e6fa;"> </td>
   <td style="text-align: center;"><code>lavender</code></td>
   <td><code>#e6e6fa</code></td>
   <td style="background: lavender;"> </td>
  </tr>
  <tr>
   <td style="background: #fff0f5;"> </td>
   <td style="text-align: center;"><code>lavenderblush</code></td>
   <td><code>#fff0f5</code></td>
   <td style="background: lavenderblush ;"> </td>
  </tr>
  <tr>
   <td style="background: #7cfc00;"> </td>
   <td style="text-align: center;"><code>lawngreen</code></td>
   <td><code>#7cfc00</code></td>
   <td style="background: lawngreen;"> </td>
  </tr>
  <tr>
   <td style="background: #fffacd;"> </td>
   <td style="text-align: center;"><code>lemonchiffon</code></td>
   <td><code>#fffacd</code></td>
   <td style="background: lemonchiffon;"> </td>
  </tr>
  <tr>
   <td style="background: #add8e6;"> </td>
   <td style="text-align: center;"><code>lightblue</code></td>
   <td><code>#add8e6</code></td>
   <td style="background: lightblue;"> </td>
  </tr>
  <tr>
   <td style="background: #f08080;"> </td>
   <td style="text-align: center;"><code>lightcoral</code></td>
   <td><code>#f08080</code></td>
   <td style="background: lightcoral;"> </td>
  </tr>
  <tr>
   <td style="background: #e0ffff;"> </td>
   <td style="text-align: center;"><code>lightcyan</code></td>
   <td><code>#e0ffff</code></td>
   <td style="background: lightcyan;"> </td>
  </tr>
  <tr>
   <td style="background: #fafad2;"> </td>
   <td style="text-align: center;"><code>lightgoldenrodyellow</code></td>
   <td><code>#fafad2</code></td>
   <td style="background: lightgoldenrodyellow ;"> </td>
  </tr>
  <tr>
   <td style="background: #d3d3d3;"> </td>
   <td style="text-align: center;"><code>lightgray</code></td>
   <td><code>#d3d3d3</code></td>
   <td style="background: lightgray;"> </td>
  </tr>
  <tr>
   <td style="background: #90ee90;"> </td>
   <td style="text-align: center;"><code>lightgreen</code></td>
   <td><code>#90ee90</code></td>
   <td style="background: lightgreen;"> </td>
  </tr>
  <tr>
   <td style="background: #d3d3d3;"> </td>
   <td style="text-align: center;"><code>lightgrey</code></td>
   <td><code>#d3d3d3</code></td>
   <td style="background: lightgrey;"> </td>
  </tr>
  <tr>
   <td style="background: #ffb6c1;"> </td>
   <td style="text-align: center;"><code>lightpink</code></td>
   <td><code>#ffb6c1</code></td>
   <td style="background: lightpink;"> </td>
  </tr>
  <tr>
   <td style="background: #ffa07a;"> </td>
   <td style="text-align: center;"><code>lightsalmon</code></td>
   <td><code>#ffa07a</code></td>
   <td style="background: lightsalmon;"> </td>
  </tr>
  <tr>
   <td style="background: #20b2aa;"> </td>
   <td style="text-align: center;"><code>lightseagreen</code></td>
   <td><code>#20b2aa</code></td>
   <td style="background: lightseagreen;"> </td>
  </tr>
  <tr>
   <td style="background: #87cefa;"> </td>
   <td style="text-align: center;"><code>lightskyblue</code></td>
   <td><code>#87cefa</code></td>
   <td style="background: lightskyblue;"> </td>
  </tr>
  <tr>
   <td style="background: #778899;"> </td>
   <td style="text-align: center;"><code>lightslategray</code></td>
   <td><code>#778899</code></td>
   <td style="background: lightslategray;"> </td>
  </tr>
  <tr>
   <td style="background: #778899;"> </td>
   <td style="text-align: center;"><code>lightslategrey</code></td>
   <td><code>#778899</code></td>
   <td style="background: lightslategrey;"> </td>
  </tr>
  <tr>
   <td style="background: #b0c4de;"> </td>
   <td style="text-align: center;"><code>lightsteelblue</code></td>
   <td><code>#b0c4de</code></td>
   <td style="background: lightsteelblue;"> </td>
  </tr>
  <tr>
   <td style="background: #ffffe0;"> </td>
   <td style="text-align: center;"><code>lightyellow</code></td>
   <td><code>#ffffe0</code></td>
   <td style="background: lightyellow;"> </td>
  </tr>
  <tr>
   <td style="background: #32cd32;"> </td>
   <td style="text-align: center;"><code>limegreen</code></td>
   <td><code>#32cd32</code></td>
   <td style="background: limegreen;"> </td>
  </tr>
  <tr>
   <td style="background: #faf0e6;"> </td>
   <td style="text-align: center;"><code>linen</code></td>
   <td><code>#faf0e6</code></td>
   <td style="background: linen;"> </td>
  </tr>
  <tr>
   <td style="background: #66cdaa;"> </td>
   <td style="text-align: center;"><code>mediumaquamarine</code></td>
   <td><code>#66cdaa</code></td>
   <td style="background: mediumaquamarine;"> </td>
  </tr>
  <tr>
   <td style="background: #0000cd;"> </td>
   <td style="text-align: center;"><code>mediumblue</code></td>
   <td><code>#0000cd</code></td>
   <td style="background: mediumblue;"> </td>
  </tr>
  <tr>
   <td style="background: #ba55d3;"> </td>
   <td style="text-align: center;"><code>mediumorchid</code></td>
   <td><code>#ba55d3</code></td>
   <td style="background: mediumorchid;"> </td>
  </tr>
  <tr>
   <td style="background: #9370db;"> </td>
   <td style="text-align: center;"><code>mediumpurple</code></td>
   <td><code>#9370db</code></td>
   <td style="background: mediumpurple;"> </td>
  </tr>
  <tr>
   <td style="background: #3cb371;"> </td>
   <td style="text-align: center;"><code>mediumseagreen</code></td>
   <td><code>#3cb371</code></td>
   <td style="background: mediumseagreen;"> </td>
  </tr>
  <tr>
   <td style="background: #7b68ee;"> </td>
   <td style="text-align: center;"><code>mediumslateblue</code></td>
   <td><code>#7b68ee</code></td>
   <td style="background: mediumslateblue;"> </td>
  </tr>
  <tr>
   <td style="background: #00fa9a;"> </td>
   <td style="text-align: center;"><code>mediumspringgreen</code></td>
   <td><code>#00fa9a</code></td>
   <td style="background: mediumspringgreen;"> </td>
  </tr>
  <tr>
   <td style="background: #48d1cc;"> </td>
   <td style="text-align: center;"><code>mediumturquoise</code></td>
   <td><code>#48d1cc</code></td>
   <td style="background: mediumturquoise;"> </td>
  </tr>
  <tr>
   <td style="background: #c71585;"> </td>
   <td style="text-align: center;"><code>mediumvioletred</code></td>
   <td><code>#c71585</code></td>
   <td style="background: mediumvioletred;"> </td>
  </tr>
  <tr>
   <td style="background: #191970;"> </td>
   <td style="text-align: center;"><code>midnightblue</code></td>
   <td><code>#191970</code></td>
   <td style="background: midnightblue;"> </td>
  </tr>
  <tr>
   <td style="background: #f5fffa;"> </td>
   <td style="text-align: center;"><code>mintcream</code></td>
   <td><code>#f5fffa</code></td>
   <td style="background: mintcream;"> </td>
  </tr>
  <tr>
   <td style="background: #ffe4e1;"> </td>
   <td style="text-align: center;"><code>mistyrose</code></td>
   <td><code>#ffe4e1</code></td>
   <td style="background: mistyrose;"> </td>
  </tr>
  <tr>
   <td style="background: #ffe4b5;"> </td>
   <td style="text-align: center;"><code>moccasin</code></td>
   <td><code>#ffe4b5</code></td>
   <td style="background: moccasin;"> </td>
  </tr>
  <tr>
   <td style="background: #ffdead;"> </td>
   <td style="text-align: center;"><code>navajowhite</code></td>
   <td><code>#ffdead</code></td>
   <td style="background: navajowhite;"> </td>
  </tr>
  <tr>
   <td style="background: #fdf5e6;"> </td>
   <td style="text-align: center;"><code>oldlace</code></td>
   <td><code>#fdf5e6</code></td>
   <td style="background: oldlace;"> </td>
  </tr>
  <tr>
   <td style="background: #6b8e23;"> </td>
   <td style="text-align: center;"><code>olivedrab</code></td>
   <td><code>#6b8e23</code></td>
   <td style="background: olivedrab;"> </td>
  </tr>
  <tr>
   <td style="background: #ff4500;"> </td>
   <td style="text-align: center;"><code>orangered</code></td>
   <td><code>#ff4500</code></td>
   <td style="background: orangered;"> </td>
  </tr>
  <tr>
   <td style="background: #da70d6;"> </td>
   <td style="text-align: center;"><code>orchid</code></td>
   <td><code>#da70d6</code></td>
   <td style="background: orchid;"> </td>
  </tr>
  <tr>
   <td style="background: #eee8aa;"> </td>
   <td style="text-align: center;"><code>palegoldenrod</code></td>
   <td><code>#eee8aa</code></td>
   <td style="background: palegoldenrod;"> </td>
  </tr>
  <tr>
   <td style="background: #98fb98;"> </td>
   <td style="text-align: center;"><code>palegreen</code></td>
   <td><code>#98fb98</code></td>
   <td style="background: palegreen;"> </td>
  </tr>
  <tr>
   <td style="background: #afeeee;"> </td>
   <td style="text-align: center;"><code>paleturquoise</code></td>
   <td><code>#afeeee</code></td>
   <td style="background: paleturquoise;"> </td>
  </tr>
  <tr>
   <td style="background: #db7093;"> </td>
   <td style="text-align: center;"><code>palevioletred</code></td>
   <td><code>#db7093</code></td>
   <td style="background: palevioletred;"> </td>
  </tr>
  <tr>
   <td style="background: #ffefd5;"> </td>
   <td style="text-align: center;"><code>papayawhip</code></td>
   <td><code>#ffefd5</code></td>
   <td style="background: papayawhip;"> </td>
  </tr>
  <tr>
   <td style="background: #ffdab9;"> </td>
   <td style="text-align: center;"><code>peachpuff</code></td>
   <td><code>#ffdab9</code></td>
   <td style="background: peachpuff;"> </td>
  </tr>
  <tr>
   <td style="background: #cd853f;"> </td>
   <td style="text-align: center;"><code>peru</code></td>
   <td><code>#cd853f</code></td>
   <td style="background: peru;"> </td>
  </tr>
  <tr>
   <td style="background: #ffc0cb;"> </td>
   <td style="text-align: center;"><code>pink</code></td>
   <td><code>#ffc0cb</code></td>
   <td style="background: pink;"> </td>
  </tr>
  <tr>
   <td style="background: #dda0dd;"> </td>
   <td style="text-align: center;"><code>plum</code></td>
   <td><code>#dda0dd</code></td>
   <td style="background: plum;"> </td>
  </tr>
  <tr>
   <td style="background: #b0e0e6;"> </td>
   <td style="text-align: center;"><code>powderblue</code></td>
   <td><code>#b0e0e6</code></td>
   <td style="background: powderblue;"> </td>
  </tr>
  <tr>
   <td style="background: #bc8f8f;"> </td>
   <td style="text-align: center;"><code>rosybrown</code></td>
   <td><code>#bc8f8f</code></td>
   <td style="background: rosybrown;"> </td>
  </tr>
  <tr>
   <td style="background: #4169e1;"> </td>
   <td style="text-align: center;"><code>royalblue</code></td>
   <td><code>#4169e1</code></td>
   <td style="background: royalblue;"> </td>
  </tr>
  <tr>
   <td style="background: #8b4513;"> </td>
   <td style="text-align: center;"><code>saddlebrown</code></td>
   <td><code>#8b4513</code></td>
   <td style="background: saddlebrown;"> </td>
  </tr>
  <tr>
   <td style="background: #fa8072;"> </td>
   <td style="text-align: center;"><code>salmon</code></td>
   <td><code>#fa8072</code></td>
   <td style="background: salmon;"> </td>
  </tr>
  <tr>
   <td style="background: #f4a460;"> </td>
   <td style="text-align: center;"><code>sandybrown</code></td>
   <td><code>#f4a460</code></td>
   <td style="background: sandybrown;"> </td>
  </tr>
  <tr>
   <td style="background: #2e8b57;"> </td>
   <td style="text-align: center;"><code>seagreen</code></td>
   <td><code>#2e8b57</code></td>
   <td style="background: seagreen;"> </td>
  </tr>
  <tr>
   <td style="background: #fff5ee;"> </td>
   <td style="text-align: center;"><code>seashell</code></td>
   <td><code>#fff5ee</code></td>
   <td style="background: seashell;"> </td>
  </tr>
  <tr>
   <td style="background: #a0522d;"> </td>
   <td style="text-align: center;"><code>sienna</code></td>
   <td><code>#a0522d</code></td>
   <td style="background: sienna;"> </td>
  </tr>
  <tr>
   <td style="background: #87ceeb;"> </td>
   <td style="text-align: center;"><code>skyblue</code></td>
   <td><code>#87ceeb</code></td>
   <td style="background: skyblue;"> </td>
  </tr>
  <tr>
   <td style="background: #6a5acd;"> </td>
   <td style="text-align: center;"><code>slateblue</code></td>
   <td><code>#6a5acd</code></td>
   <td style="background: slateblue;"> </td>
  </tr>
  <tr>
   <td style="background: #708090;"> </td>
   <td style="text-align: center;"><code>slategray</code></td>
   <td><code>#708090</code></td>
   <td style="background: slategray;"> </td>
  </tr>
  <tr>
   <td style="background: #708090;"> </td>
   <td style="text-align: center;"><code>slategrey</code></td>
   <td><code>#708090</code></td>
   <td style="background: slategrey;"> </td>
  </tr>
  <tr>
   <td style="background: #fffafa;"> </td>
   <td style="text-align: center;"><code>snow</code></td>
   <td><code>#fffafa</code></td>
   <td style="background: snow;"> </td>
  </tr>
  <tr>
   <td style="background: #00ff7f;"> </td>
   <td style="text-align: center;"><code>springgreen</code></td>
   <td><code>#00ff7f</code></td>
   <td style="background: springgreen;"> </td>
  </tr>
  <tr>
   <td style="background: #4682b4;"> </td>
   <td style="text-align: center;"><code>steelblue</code></td>
   <td><code>#4682b4</code></td>
   <td style="background: steelblue;"> </td>
  </tr>
  <tr>
   <td style="background: #d2b48c;"> </td>
   <td style="text-align: center;"><code>tan</code></td>
   <td><code>#d2b48c</code></td>
   <td style="background: tan;"> </td>
  </tr>
  <tr>
   <td style="background: #d8bfd8;"> </td>
   <td style="text-align: center;"><code>thistle</code></td>
   <td><code>#d8bfd8</code></td>
   <td style="background: thistle;"> </td>
  </tr>
  <tr>
   <td style="background: #ff6347;"> </td>
   <td style="text-align: center;"><code>tomato</code></td>
   <td><code>#ff6347</code></td>
   <td style="background: tomato;"> </td>
  </tr>
  <tr>
   <td style="background: #40e0d0;"> </td>
   <td style="text-align: center;"><code>turquoise</code></td>
   <td><code>#40e0d0</code></td>
   <td style="background: turquoise;"> </td>
  </tr>
  <tr>
   <td style="background: #ee82ee;"> </td>
   <td style="text-align: center;"><code>violet</code></td>
   <td><code>#ee82ee</code></td>
   <td style="background: violet;"> </td>
  </tr>
  <tr>
   <td style="background: #f5deb3;"> </td>
   <td style="text-align: center;"><code>wheat</code></td>
   <td><code>#f5deb3</code></td>
   <td style="background: wheat;"> </td>
  </tr>
  <tr>
   <td style="background: #f5f5f5;"> </td>
   <td style="text-align: center;"><code>whitesmoke</code></td>
   <td><code>#f5f5f5</code></td>
   <td style="background: whitesmoke;"> </td>
  </tr>
  <tr>
   <td style="background: #9acd32;"> </td>
   <td style="text-align: center;"><code>yellowgreen</code></td>
   <td><code>#9acd32</code></td>
   <td style="background: yellowgreen;"> </td>
  </tr>
  <tr>
   <td>{{SpecName("CSS4 Colors")}}</td>
   <td style="background: #639;"> </td>
   <td style="text-align: center;"><code>rebeccapurple</code></td>
   <td><code>#663399</code></td>
   <td style="background: rebeccapurple;"> </td>
  </tr>
 </tbody>
</table>

<p>El color <code>rebeccapurple</code> es equivalente al color  <code>#639</code>, y se puede encontrar información adicional sobre por qué fue introducidoa en el blog Codepen blog en un post realizado por Trezy "<a href="http://codepen.io/trezy/blog/honoring-a-great-man">Honoring a Great Man</a>."</p>

<h3 id="Palabra_clave_transparent"><code>Palabra clave transparent</code></h3>

<p>La palaba <code>transparent</code> representa un color totalmente transparente, es decir, el color que veremos será el colore de fondo. Técnicamente es un color negro con un valor mínimo en el canal alfa y la manera de representarlo es <code>rgba(0,0,0,0)</code>.</p>

<div class="note"><strong>Nota histórica</strong><br>
La palabra clave <code>transparent</code> no fue  un color en CSS hasta CSS Nivel 2 (Revisión 1). Podía ser usada en lugar de un valor &lt;color&gt; regular en dos propiedades CSS: {{Cssxref("background")}}{{Cssxref("border")}}. En esencia fue añadida para permitir sobreescribir valores sólidos heredados.<br>
<br>
Con el soporte de la opacidad que nos proporcionan los <a class="external" href="http://en.wikipedia.org/wiki/Alpha_compositing">alpha channels</a>, <code>transparent fue redefinido como un color verdadero más en </code>CSS Nivel 3 permitiendo su use en cualquier sitio donde de requiera un valor<code>&lt;color&gt;</code> , como la propiedad {{Cssxref("color")}}.</div>

<h3 id="Palabra_clave_currentColor"><code>Palabra clave currentColor</code></h3>

<p>La palabra clave <code>currentColor</code> representa el valor calculado para la la propiedad del elemento {{Cssxref("color")}} . Permite hacer que las propiedades de color sean heredadas por los elementos hijo, que no lo hacen por defecto.</p>

<p>También puede ser usada en propiedades que heredan el valor calculado de la propiedad del elemento {{Cssxref("color")}}, en este caso, será equivalente a la plabara clave <code>inherit</code> en estos elementos, si es que la hubiera.</p>

<h4 id="Ejemplo">Ejemplo</h4>

<p>El color de la una line (un div relleno de color) se adapta al color de su propiedad  {Cssxref("color")}} , heredada de su padre.</p>

<div style="width: 50%;">
<h5 id="Live_example_1">Live example 1</h5>

<pre class="brush: html">&lt;div style="color:darkred"&gt;
 EL color de este texto es el mismo que el de la línea  &lt;div style="background:currentcolor; height:1px"&gt;&lt;/div&gt;
 Algo más de texto
&lt;/div&gt;
</pre>

<p>{{EmbedLiveSample('Live_example_1')}}</p>

<h5 id="Live_example_2">Live example 2</h5>

<pre class="brush: html">&lt;div style="color:blue; border-bottom: 1px dashed currentcolor;"&gt;
 El color de este texto es el mimso que el color de la línea:
  &lt;div style="background:currentcolor; height:1px"&gt;&lt;/div&gt;
 Algo más de texto.
&lt;/div&gt; </pre>

<p>{{EmbedLiveSample('Live_example_2')}}</p>
</div>

<h3 id="rgb()"><a id="rgb" name="rgb"><code>rgb()</code></a></h3>

<p>Los colores puede ser definidos usando el modelo RGB (rojo-verde-azul) de dos maneras:ways:</p>

<dl>
 <dt>Notación Hexadecimal <code>#RRGGBB</code> ay <code>#RGB</code></dt>
 <dd>
 <ul style="margin-bottom: 0;">
  <li>"<code>#</code>", seguido de seis caracteres hexadecimales (0-9, A-F).</li>
  <li>"<code>#</code>", seguido de tres caracteres hexadecimales (0-9, A-F).</li>
 </ul>
 La notación de tres dígitos (<code>#RGB</code>) y la de seis (<code>#RRGGBB</code>) son iguales.<br>
 Por ejemplo,  <code>#f03</code> y <code>#ff0033</code> representan el mismo color.</dd>
 <dt>Notación funcional <code>rgb(R,G,B)</code></dt>
 <dd>"<code>rgb</code>", seguido por tres valores  {{cssxref("&lt;integer&gt;")}} o tres  {{cssxref("&lt;percentage&gt;")}} values.<br>
 El número entero 255 representa el 100%, y F o FF en notación hexadecimal.</dd>
</dl>

<pre class="eval">/* Todos estos ejemplos son el mismo color RGB: */

 #f03
 #F03
 #ff0033
 #FF0033
 rgb(255,0,51)
 rgb(255, 0, 51)
 <s>rgb(255, 0, 51.2)</s> /* ¡ERROR! No uses número decimales , usa enteros*/
 rgb(100%,0%,20%)
 rgb(100%, 0%, 20%)
 <s>rgb(100%, 0, 20%)</s> /* ¡ERROR! No mezcles notaciones de enteros y de porcentajes*/
</pre>

<h3 id="hsl()"><a id="hsl" name="hsl"><code>hsl()</code></a></h3>

<p>Los colores también puede ser definidos usando el modelo  tono (hue) - saturación (saturation) - brillo (lightness) (HSL) con la notación funcional hsl(). La ventaja del modelo HSL sobre el modelo RGB es que es mucho más intuitivo: puedes adivinar los colores que tú quieres y luego modificarlos. Es también más fácil crear conjuntos de colores (manteniendo el tono (hue)  igual y modificando el brillo y la saturación.</p>

<p><strong>El tono (Hue)  </strong>se representa como un ángulo del círculo de color (por así decir, el arco iris representado en un círculo). El ángulo se proporciona como un  {{cssxref("&lt;number&gt;")}} sin unidades. Por definición <strong>rojo=0=360</strong>, y los demas colores están dispersos por el círculo, <strong>verde=120</strong>, <strong>azul=240</strong>, etc. Al ser un ánguilo implítamente -120=240 y 480=120.</p>

<p>La saturación y el brillo son representados por porcentajes.<br>
 <code>100%</code>  es <strong>saturacion </strong>completa, y <code>0%</code> es una sombra de gris..<br>
 <code>100%</code> <strong>brillo</strong> es blanco, <code>0%</code>  negro, y <code>50%</code> es brillo "normal".</p>

<pre class="brush: css" style="text-shadow: rgba(255,255,255,0.4) -1px -1px;">hsl(0,  100%,50%)   <span style="background-color: hsl(0,100%,50%);"> /* red */   </span>
hsl(30, 100%,50%)   <span style="background: hsl(30,100%,50%);">             </span>
hsl(60, 100%,50%)   <span style="background: hsl(60,100%,50%);">             </span>
hsl(90, 100%,50%)   <span style="background: hsl(90,100%,50%);">             </span>
hsl(120,100%,50%)   <span style="background: hsl(120,100%,50%);"> /* green */ </span>
hsl(150,100%,50%)   <span style="background: hsl(150,100%,50%);">             </span>
hsl(180,100%,50%)   <span style="background: hsl(180,100%,50%);">             </span>
hsl(210,100%,50%)   <span style="background: hsl(210,100%,50%);">             </span>
hsl(240,100%,50%)   <span style="background: hsl(240,100%,50%);"> /* blue */  </span>
hsl(270,100%,50%)   <span style="background: hsl(270,100%,50%);">             </span>
hsl(300,100%,50%)   <span style="background: hsl(300,100%,50%);">             </span>
hsl(330,100%,50%)   <span style="background: hsl(330,100%,50%);">             </span>
hsl(360,100%,50%)   <span style="background: hsl(360,100%,50%);"> /* red */   </span>

hsl(120,100%,25%)   <span style="background: hsl(120,100%,25%);"> /* dark green */  </span>
hsl(120,100%,50%)   <span style="background: hsl(120,100%,50%);"> /* green */       </span>
hsl(120,100%,75%)   <span style="background: hsl(120,100%,75%);"> /* light green */ </span>

hsl(120,100%,50%)   <span style="background: hsl(120,100%,50%);"> /* green */  </span>
hsl(120, 67%,50%)   <span style="background: hsl(120,67%,50%);">              </span>
hsl(120, 33%,50%)   <span style="background: hsl(120,33%,50%);">              </span>
hsl(120,  0%,50%)   <span style="background: hsl(120,0%,50%);">              </span>

hsl(120, 60%,70%)   <span style="background: hsl(120,60%,70%);"> /* pastel green */ </span>
</pre>

<h3 id="rgba()"><a id="rgba" name="rgba"><code>rgba()</code></a></h3>

<p>Podemos definir los colores con el modelo Rojo (red) - Verde (green) - Azul (blue) - alpha (RGBa) usando la notación funcional <code>rgba()</code>. RGBa amplia el modelo RGA añadiendo un canal alfa, permitiendo de esta manera especificar la opacidad de un color.<br>
 <strong>a</strong> representa opacidad: 0=transparente; 1=opaco;</p>

<pre class="brush: css">rgba(255,0,0,0.1)   <span style="background: rgba(255,0,0,0.1);"> /* 10% opaque red */  </span>
rgba(255,0,0,0.4)   <span style="background: rgba(255,0,0,0.4);"> /* 40% opaque red */  </span>
rgba(255,0,0,0.7)   <span style="background: rgba(255,0,0,0.7);"> /* 70% opaque red */  </span>
rgba(255,0,0,  1)   <span style="background: rgba(255,0,0,1);"> /* full opaque red */ </span>
</pre>

<h3 id="hsla()"><a id="hsla" name="hsla"><code>hsla()</code></a></h3>

<p>Podemos definir los colores usando el modelo saturación tono (hue) - (saturation) - brillo (lightness)  (HSLa) usando lla notación funcional <code>hsla()</code>. HSLa amplía el modelo HSL incluyendo el canal alfa, permitiendo de esta manera especificar la opacidad de un color.<br>
 <strong>a</strong> es la opacidad: 0=transparente; 1=opaco;</p>

<pre class="brush: css" style="text-shadow: rgba(255,255,255,0.4) -1px -1px;">hsla(240,100%,50%,0.05)  <span style="background: hsla(240,100%,50%,0.05);"> /* 5% opaque blue */   </span>
hsla(240,100%,50%, 0.4)  <span style="background: hsla(240,100%,50%,0.4);"> /* 40% opaque blue */  </span>
hsla(240,100%,50%, 0.7)  <span style="background: hsla(240,100%,50%,0.7);"> /* 70% opaque blue */  </span>
hsla(240,100%,50%,   1)  <span style="background: hsla(240,100%,50%,1);"> /* full opaque blue */ </span>
</pre>

<h3 id="Colores_de_Sistema">Colores de Sistema</h3>

<p>No todos los colores de sistema son soportados por todos los sistemas. {{deprecated_inline}} para usar en páginas web públicas..</p>

<dl style="font: small Tahoma,'Liberation Sans','Nimbus Sans L',sans-serif; border: 1px solid powderblue; padding: 0.5em 0pt 0.5em 0.5em; -moz-column-rule: 1px solid powderblue; -moz-column-width: 15em; background: #eee; -webkit-columns: 15em; -webkit-column-rule: 1px solid powderblue; columns: 17em; column-rule: 1px solid powderblue;">
 <dt>ActiveBorder</dt>
 <dd>Borde de la ventana activa</dd>
 <dt>ActiveCaption</dt>
 <dd>Título de la ventana activa. Deb usarse con <code>CaptionText</code> como color de fondo</dd>
 <dt>AppWorkspace</dt>
 <dd>Color de fondo para el interfaz de múltiples documentos.</dd>
 <dt>Background</dt>
 <dd>Fondo de escritorio.</dd>
 <dt>ButtonFace</dt>
 <dd>Color de fondo frontal para elementos 3-D que parecen 3-D debido a una capa del borde próximo. Debe usar con el color de frente <code>ButtonText</code> .</dd>
 <dt>ButtonHighlight</dt>
 <dd>The color of the border facing the light source for 3-D elements that appear 3-D due to that layer of surrounding border.</dd>
 <dt>ButtonShadow</dt>
 <dd>The color of the border away from the light source for 3-D elements that appear 3-D due to that layer of surrounding border.</dd>
 <dt>ButtonText</dt>
 <dd>Text on push buttons. Should be used with the <code>ButtonFace</code> or <code>ThreeDFace</code> background color.</dd>
 <dt>CaptionText</dt>
 <dd>Text in caption, size box, and scrollbar arrow box. Should be used with the <code>ActiveCaption</code> background color.</dd>
 <dt>GrayText</dt>
 <dd>Gris para el texto deshabilitado:</dd>
 <dt>Highlight</dt>
 <dd>Elemento(s) seleccionados en un control. Debe ser usado con el color de frente <code>HighlightText.</code></dd>
 <dt>HighlightText</dt>
 <dd>Texto de los elemento(s) seleccionados en un control. Debe usar con el color de fondo <code>Highlight</code>.</dd>
 <dt>InactiveBorder</dt>
 <dd>Borde de ventana inactivo.</dd>
 <dt>InactiveCaption</dt>
 <dd>Inactive window caption. Should be used with the <code>InactiveCaptionText</code> foreground color.</dd>
 <dt>InactiveCaptionText</dt>
 <dd>Color of text in an inactive caption.  Should be used with the <code>InactiveCaption</code> background color.</dd>
 <dt>InfoBackground</dt>
 <dd>Color de foBackground color for tooltip controls. Should be used with the <code>InfoText</code> foreground color.</dd>
 <dt>InfoText</dt>
 <dd>Text color for tooltip controls.  Should be used with the <code>InfoBackground</code> background color.</dd>
 <dt>Menu</dt>
 <dd>Fondo del menú. Debe ser usado Menu background. Should be used with the <code>MenuText</code> or  <code>-moz-MenuBarText</code> foreground color.</dd>
 <dt>MenuText</dt>
 <dd>Texto en el menú. Debe ser usado Text in menus. Should be used with the <code>Menu</code> background color.</dd>
 <dt>Scrollbar</dt>
 <dd>Color de fondo para las barras de scroll.</dd>
 <dt>ThreeDDarkShadow</dt>
 <dd>The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.</dd>
 <dt>ThreeDFace</dt>
 <dd>The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border. Should be used with the <code>ButtonText</code> foreground color.</dd>
 <dt>ThreeDHighlight</dt>
 <dd>The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two<br>
 concentric layers of surrounding border.</dd>
 <dt>ThreeDLightShadow</dt>
 <dd>The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two<br>
 concentric layers of surrounding border.</dd>
 <dt>ThreeDShadow</dt>
 <dd>The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.</dd>
 <dt>Window</dt>
 <dd>Fondo de las ventanas. Debe usarse con el color de frente <code>WindowText</code>.</dd>
 <dt>WindowFrame</dt>
 <dd>Marco de ventana</dd>
 <dt>WindowText</dt>
 <dd>Texto en las ventanas.Debe usarse con el color de fono de ventana.</dd>
</dl>

<h3 id="Extensiones_de_Mozilla_al_Sistema_de_Colores">Extensiones de Mozilla al Sistema de Colores</h3>

<dl style="font: small Tahoma,'Liberation Sans','Nimbus Sans L',sans-serif; border: 1px solid powderblue; padding: 0.5em 0 0.5em 0.5em; -moz-column-rule: 1px solid powderblue; -moz-column-width: 17em; background: #eee; -webkit-columns: 17em; -webkit-column-rule: 1px solid powderblue; columns: 17em; column-rule: 1px solid powderblue;">
 <dt>-moz-ButtonDefault</dt>
 <dd>The border color that goes around buttons that represent the default action for a dialog box.</dd>
 <dt>-moz-ButtonHoverFace</dt>
 <dd>The background color of a button that the mouse pointer is over (which would be <code>ThreeDFace</code> or <code>ButtonFace</code> when the mouse pointer is not over it). Should be used with the <code>-moz-ButtonHoverText</code> foreground color.</dd>
 <dt>-moz-ButtonHoverText</dt>
 <dd>The text color of a button that the mouse pointer is over (which would be ButtonText when the mouse pointer is not over it).  Should be used with the <code>-moz-ButtonHoverFace background</code> color.</dd>
 <dt>-moz-CellHighlight</dt>
 <dd>Background color for selected item in a tree widget.  Should be used with the <code>-moz-CellHighlightText</code> foreground color. See also <code>-moz-html-CellHighlight</code>.</dd>
 <dt>-moz-CellHighlightText</dt>
 <dd>Text color for a selected item in a tree. Should be used with the <code>-moz-CellHighlight background</code> color. See also <code>-moz-html-CellHighlightText</code>.</dd>
 <dt>-moz-Combobox</dt>
 <dd>{{Gecko_minversion_inline("1.9.2")}} Background color for combo-boxes.  Should be used with the <code>-moz-ComboboxText</code> foreground color. In versions prior to 1.9.2, use <code>-moz-Field</code> instead.</dd>
 <dt>-moz-ComboboxText</dt>
 <dd>{{Gecko_minversion_inline("1.9.2")}} Text color for combo-boxes. Should be used with the <code>-moz-Combobox</code> background color.  In versions prior to 1.9.2, use <code>-moz-FieldText</code> instead.</dd>
 <dt>-moz-Dialog</dt>
 <dd>Color de fondo para cuadros de diálogo. Debe usarse con el color de frente <code>-moz-DialogText</code></dd>
 <dt>-moz-DialogText</dt>
 <dd>Text color for dialog boxes. Should be used with the <code>-moz-Dialog</code> background color.</dd>
 <dt>-moz-dragtargetzone</dt>
 <dt>-moz-EvenTreeRow</dt>
 <dd>{{gecko_minversion_inline("1.9")}} Background color for even-numbered rows in a tree.  Should be used with the <code>-moz-FieldText</code> foreground color. In Gecko versions prior to 1.9, use <code>-moz-Field</code>.  See also <code>-moz-OddTreeRow</code>.</dd>
 <dt>-moz-Field</dt>
 <dd>Text field background color.  Should be used with the <code>-moz-FieldText</code> foreground color.</dd>
 <dt>-moz-FieldText</dt>
 <dd>Text field text color. Should be used with the <code>-moz-Field</code>, <code>-moz-EvenTreeRow</code>, or <code>-moz-OddTreeRow</code> background color.</dd>
 <dt>-moz-html-CellHighlight</dt>
 <dd>{{gecko_minversion_inline("1.9")}} Background color for highlighted item in HTML {{HTMLElement("select")}}s. Should be used with the <code>-moz-html-CellHighlightText</code> foreground color. Prior to Gecko 1.9, use <code>-moz-CellHighlight</code>.</dd>
 <dt>-moz-html-CellHighlightText</dt>
 <dd>{{gecko_minversion_inline("1.9")}} Text color for highlighted items in HTML {{HTMLElement("select")}}s.  Should be used with the <code>-moz-html-CellHighlight</code> background color. Prior to Gecko 1.9, use <code>-moz-CellHighlightText</code>.</dd>
 <dt>-moz-mac-accentdarkestshadow</dt>
 <dt>-moz-mac-accentdarkshadow</dt>
 <dt>-moz-mac-accentface</dt>
 <dt>-moz-mac-accentlightesthighlight</dt>
 <dt>-moz-mac-accentlightshadow</dt>
 <dt>-moz-mac-accentregularhighlight</dt>
 <dt>-moz-mac-accentregularshadow</dt>
 <dt>-moz-mac-chrome-active</dt>
 <dd>{{Gecko_minversion_inline("1.9.1")}}</dd>
 <dt>-moz-mac-chrome-inactive</dt>
 <dd>{{Gecko_minversion_inline("1.9.1")}}</dd>
 <dt>-moz-mac-focusring</dt>
 <dt>-moz-mac-menuselect</dt>
 <dt>-moz-mac-menushadow</dt>
 <dt>-moz-mac-menutextselect</dt>
 <dt>-moz-MenuHover</dt>
 <dd>Background color for hovered menu items. Often similar to <code>Highlight</code>. Should be used with the <code>-moz-MenuHoverText</code> or <code>-moz-MenuBarHoverText</code> foreground color.</dd>
 <dt>-moz-MenuHoverText</dt>
 <dd>Text color for hovered menu items. Often similar to <code>HighlightText</code>.  Should be used with the <code>-moz-MenuHover</code> background color.</dd>
 <dt>-moz-MenuBarText</dt>
 <dd>{{Gecko_minversion_inline("1.9.2")}} Text color in menu bars. Often similar to <code>MenuText</code>. Should be used on top of <code>Menu</code> background.</dd>
 <dt>-moz-MenuBarHoverText</dt>
 <dd>Color for hovered text in menu bars. Often similar to <code>-moz-MenuHoverText</code>. Should be used on top of <code>-moz-MenuHover</code> background.</dd>
 <dt>-moz-nativehyperlinktext</dt>
 <dd>{{Gecko_minversion_inline("1.9.1")}} Default platform hyperlink color.</dd>
 <dt>-moz-OddTreeRow</dt>
 <dd>{{gecko_minversion_inline("1.9")}} Background color for odd-numbered rows in a tree.  Should be used with the <code>-moz-FieldText</code> foreground color. In Gecko versions prior to 1.9, use <code>-moz-Field</code>. See also <code>-moz-EvenTreeRow</code>.</dd>
 <dt>-moz-win-communicationstext</dt>
 <dd>{{gecko_minversion_inline("1.9")}} Should be used for text in objects with <code>{{cssxref("-moz-appearance")}}: -moz-win-communications-toolbox;</code>.</dd>
 <dt>-moz-win-mediatext</dt>
 <dd>{{gecko_minversion_inline("1.9")}} Should be used for text in objects with <code>{{cssxref("-moz-appearance")}}: -moz-win-media-toolbox</code>.</dd>
</dl>

<h3 id="Extensiones_de_Mozilla_a_las_Preferencias_de_Color">Extensiones de Mozilla a las Preferencias de Color</h3>

<dl style="font: small Tahoma,'Liberation Sans','Nimbus Sans L',sans-serif; border: 1px solid powderblue; padding: 0.5em 0 0.5em 0.5em; background: #eee;">
 <dt>-moz-activehyperlinktext</dt>
 <dd>Preferencias de usuario para el color de texto de los enlaces activos. Debe ser usado con el color de fondo por defecto del documento.</dd>
 <dt>-moz-default-background-color</dt>
 <dd>{{Gecko_minversion_inline("5.0")}} Preferencias de usuario  para el color de fondo del documento.</dd>
 <dt>-moz-default-color</dt>
 <dd>{{Gecko_minversion_inline("5.0")}} Preferencias de usuario para el color del texto.</dd>
 <dt>-moz-hyperlinktext</dt>
 <dd>Preferencias de usuario para el color del texto de los enlaces sin visitar. Debe ser usado con el color de fondo por defecto del documento.</dd>
 <dt>-moz-visitedhyperlinktext</dt>
 <dd>Preferencias de usuario para el color del texto de los enlaces ya visitados. Debe ser usado con el color de fondo por defecto del documento.</dd>
</dl>

<h2 id="Especificaciones">Especificaciones</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Especificación</th>
   <th scope="col">Estado</th>
   <th scope="col">Comentario</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS4 Colors', '#colorunits', '&lt;color&gt;')}}</td>
   <td>{{Spec2('CSS4 Colors')}}</td>
   <td>Añadido el color <code>rebeccapurple</code>.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS3 Colors', '#colorunits', '&lt;color&gt;')}}</td>
   <td>{{Spec2('CSS3 Colors')}}</td>
   <td>Colores de sistema depreciados; añadidos colores SVG; añadidos las notaciones funcionales <code>rgba()</code>, <code>hsl()</code>, <code>hsla().</code></td>
  </tr>
  <tr style="vertical-align: top;">
   <td style="vertical-align: top;">{{SpecName('CSS2.1', 'syndata.html#value-def-color', '&lt;color&gt;')}}</td>
   <td style="vertical-align: top;">{{Spec2('CSS2.1')}}</td>
   <td style="vertical-align: top;">Añadidos el naranja y los colores de sistema.</td>
  </tr>
  <tr>
   <td style="vertical-align: top;">{{SpecName('CSS1', '#color-units', '&lt;color&gt;')}}</td>
   <td style="vertical-align: top;">{{Spec2('CSS1')}}</td>
   <td style="vertical-align: top;">Definición Inicial</td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilidad_con_los_distintos_navegadores">Compatibilidad con los distintos navegadores</h2>

{{Compat("css.types.color")}}

<h2 id="Ver_además">Ver además</h2>

<ul>
 <li>La propiedad  {{Cssxref("opacity")}} , que permite definir la transparencia a nivel de elemento.</li>
 <li>Las propiedades {{Cssxref("color")}}, {{Cssxref("background-color")}}, {{Cssxref("border-color")}}, {{Cssxref("outline-color")}}, {{Cssxref("text-shadow")}}, {{Cssxref("box-shadow")}}.</li>
</ul>