Using color in online documentation
MathJax 3.2 named colors
The named colors defined in dvipsnames
are CMYK colors. Their conversion to RGB is subject to device profile. In MathJax, this is fixed as follows. They could be different from what you'll get in a PDF file with, e.g., pdflatex
.
- \(\color{GreenYellow}\blacksquare \text{GreenYellow}\) GreenYellow #DFE674
- \(\color{Yellow}\blacksquare \text{Yellow}\) Yellow #FFF200
- \(\color{Goldenrod}\blacksquare \text{Goldenrod}\) Goldenrod #FFDF42
- \(\color{Dandelion}\blacksquare \text{Dandelion}\) Dandelion #FDBC42
- \(\color{Apricot}\blacksquare \text{Apricot}\) Apricot #FBB982
- \(\color{Peach}\blacksquare \text{Peach}\) Peach #F7965A
- \(\color{Melon}\blacksquare \text{Melon}\) Melon #F89E7B
- \(\color{YellowOrange}\blacksquare \text{YellowOrange}\) YellowOrange #FAA21A
- \(\color{Orange}\blacksquare \text{Orange}\) Orange #F58137
- \(\color{BurntOrange}\blacksquare \text{BurntOrange}\) BurntOrange #F7921D
- \(\color{Bittersweet}\blacksquare \text{Bittersweet}\) Bittersweet #C04F17
- \(\color{RedOrange}\blacksquare \text{RedOrange}\) RedOrange #F26035
- \(\color{Mahogany}\blacksquare \text{Mahogany}\) Mahogany #A9341F
- \(\color{Maroon}\blacksquare \text{Maroon}\) Maroon #AF3235
- \(\color{BrickRed}\blacksquare \text{BrickRed}\) BrickRed #B6321C
- \(\color{Red}\blacksquare \text{Red}\) Red #ED1B23
- \(\color{OrangeRed}\blacksquare \text{OrangeRed}\) OrangeRed #ED135A
- \(\color{RubineRed}\blacksquare \text{RubineRed}\) RubineRed #ED017D
- \(\color{WildStrawberry}\blacksquare \text{WildStrawberry}\) WildStrawberry #EE2967
- \(\color{Salmon}\blacksquare \text{Salmon}\) Salmon #F69289
- \(\color{CarnationPink}\blacksquare \text{CarnationPink}\) CarnationPink #F282B4
- \(\color{Magenta}\blacksquare \text{Magenta}\) Magenta #EC008C
- \(\color{VioletRed}\blacksquare \text{VioletRed}\) VioletRed #EF58A0
- \(\color{Rhodamine}\blacksquare \text{Rhodamine}\) Rhodamine #EF559F
- \(\color{Mulberry}\blacksquare \text{Mulberry}\) Mulberry #A93C93
- \(\color{RedViolet}\blacksquare \text{RedViolet}\) RedViolet #A1246B
- \(\color{Fuchsia}\blacksquare \text{Fuchsia}\) Fuchsia #8C368C
- \(\color{Lavender}\blacksquare \text{Lavender}\) Lavender #F49EC4
- \(\color{Thistle}\blacksquare \text{Thistle}\) Thistle #D883B7
- \(\color{Orchid}\blacksquare \text{Orchid}\) Orchid #AF72B0
- \(\color{DarkOrchid}\blacksquare \text{DarkOrchid}\) DarkOrchid #A4538A
- \(\color{Purple}\blacksquare \text{Purple}\) Purple #99479B
- \(\color{Plum}\blacksquare \text{Plum}\) Plum #92268F
- \(\color{Violet}\blacksquare \text{Violet}\) Violet #58429B
- \(\color{RoyalPurple}\blacksquare \text{RoyalPurple}\) RoyalPurple #613F99
- \(\color{BlueViolet}\blacksquare \text{BlueViolet}\) BlueViolet #473992
- \(\color{Periwinkle}\blacksquare \text{Periwinkle}\) Periwinkle #7977B8
- \(\color{CadetBlue}\blacksquare \text{CadetBlue}\) CadetBlue #74729A
- \(\color{CornflowerBlue}\blacksquare \text{CornflowerBlue}\) CornflowerBlue #41B0E4
- \(\color{MidnightBlue}\blacksquare \text{MidnightBlue}\) MidnightBlue #006795
- \(\color{NavyBlue}\blacksquare \text{NavyBlue}\) NavyBlue #006EB8
- \(\color{RoyalBlue}\blacksquare \text{RoyalBlue}\) RoyalBlue #0071BC
- \(\color{Blue}\blacksquare \text{Blue}\) Blue #2D2F92
- \(\color{Cerulean}\blacksquare \text{Cerulean}\) Cerulean #00A2E3
- \(\color{Cyan}\blacksquare \text{Cyan}\) Cyan #00AEEF
- \(\color{ProcessBlue}\blacksquare \text{ProcessBlue}\) ProcessBlue #00B0F0
- \(\color{SkyBlue}\blacksquare \text{SkyBlue}\) SkyBlue #46C5DD
- \(\color{Turquoise}\blacksquare \text{Turquoise}\) Turquoise #00B4CE
- \(\color{TealBlue}\blacksquare \text{TealBlue}\) TealBlue #00AEB3
- \(\color{Aquamarine}\blacksquare \text{Aquamarine}\) Aquamarine #00B5BE
- \(\color{BlueGreen}\blacksquare \text{BlueGreen}\) BlueGreen #00B3B8
- \(\color{Emerald}\blacksquare \text{Emerald}\) Emerald #00A99D
- \(\color{JungleGreen}\blacksquare \text{JungleGreen}\) JungleGreen #00A99A
- \(\color{SeaGreen}\blacksquare \text{SeaGreen}\) SeaGreen #3FBC9D
- \(\color{Green}\blacksquare \text{Green}\) Green #00A64F
- \(\color{ForestGreen}\blacksquare \text{ForestGreen}\) ForestGreen #009B55
- \(\color{PineGreen}\blacksquare \text{PineGreen}\) PineGreen #008B72
- \(\color{LimeGreen}\blacksquare \text{LimeGreen}\) LimeGreen #8DC73E
- \(\color{YellowGreen}\blacksquare \text{YellowGreen}\) YellowGreen #98CC70
- \(\color{SpringGreen}\blacksquare \text{SpringGreen}\) SpringGreen #C6DC67
- \(\color{OliveGreen}\blacksquare \text{OliveGreen}\) OliveGreen #3C8031
- \(\color{RawSienna}\blacksquare \text{RawSienna}\) RawSienna #974006
- \(\color{Sepia}\blacksquare \text{Sepia}\) Sepia #671800
- \(\color{Brown}\blacksquare \text{Brown}\) Brown #792500
- \(\color{Tan}\blacksquare \text{Tan}\) Tan #DA9D76
- \(\color{Gray}\blacksquare \text{Gray}\) Gray #949698
- \(\color{Black}\blacksquare \text{Black}\) Black #221E1F
- \(\color{White}\blacksquare \text{White}\) White #FFFFFF
Reference
- file:///usr/share/texlive/texmf-dist/tex/latex/graphics/dvipsnam.def
grep named dvipsnam.def|tr '{}' ' '|awk '{print $3;}'>color.lst
- https://github.com/mathjax/MathJax-src/raw/master/ts/input/tex/color/ColorConstants.ts
for c in $(<color.lst);do s=`grep "'$c'" ColorConstants.ts|sed 's/.*\(#.\+\)..,/\1/'`;echo "<li>\(\color{$c}\blacksquare \text{$c}\) $c $s</li>";done>c.inc
3-digit hex colors
Color picked: #---