Colors

Elephant Colors API provides some useful methods for manipulating colors. The main goal, though, is finding the adequate font color, based on a solid background. The API can be accessed within templates using the helper object helper.color([name|hexvalue|rgb[a]()]). This function returns a Color object with these methods:

Method

Description

css()

The color in a CSS format #RRGGBB

font()

A Color object representing the adequate font color.

bw()

A gray-scale Color object representing the color.

Default palette

This palette is provided as color choosing helper. Any other color can be used with the Elephant Colors API. The palette uses the API to choose the adequate font color using the Color object:

// assign color using color = helper.color('name or hexvalue or rgb[a]()')

<div style="background-color:${color.css()};color:${color.font().css()}">
  ${color_name} (${color.css()})
</div>
Black (#000000)
Oil (#3B3131)
DarkCoffee (#3B2F2F)
LightBlack (#454545)
BlackCow (#4C4646)
GrayDolphin (#5C5858)
CarbonGray (#625D5D)
RedBlood (#660000)
DimGray (#696969)
SonicSilver (#757575)
PlatinumGray (#797979)
Gray (#808080)
Maroon (#800000)
DarkRed (#8B0000)
RoseDust (#997070)
CrimsonRed (#990000)
Brown (#A52A2A)
DarkGray (#A9A9A9)
FireBrick (#B22222)
RosyBrown (#BC8F8F)
Silver (#C0C0C0)
IndianRed (#CD5C5C)
PlatinumSilver (#CECECE)
LightGray (#D3D3D3)
Gainsboro (#DCDCDC)
LightCoral (#F08080)
WhiteSmoke (#F5F5F5)
White (#FFFFFF)
Snow (#FFFAFA)
Red (#FF0000)
LoveRed (#E41B17)
LightRed (#FFCCCB)
ValentineRed (#E55451)
ChilliPepper (#C11B17)
PinkCoral (#E77471)
BeanRed (#F75D59)
PeachPink (#F98B88)
DeepRose (#FBBBB9)
KhakiRose (#C5908E)
CherryRed (#C24641)
SilverPink (#C4AEAD)
LightRose (#FBCFCD)
Rose (#E8ADAA)
RubyRed (#F62217)
Puce (#7F5A58)
LavaRed (#E42217)
PinkBubbleGum (#FFDFDD)
RosyPink (#B38481)
FireEngineRed (#F62817)
OldBurgundy (#43302E)
TomatoSauceRed (#B21807)
NeonRed (#FD1C03)
MistyRose (#FFE4E1)
Salmon (#FA8072)
RoseGold (#ECC5C0)
GrayBrown (#3D3635)
SalmonPink (#FF8674)
Grapefruit (#DC381F)
GoldPink (#E6C7C2)
Scarlet (#FF2400)
Tomato (#FF6347)
Chestnut (#954535)
BlackBean (#3D0C02)
ShockingOrange (#E55B3C)
ChestnutRed (#C34A2C)
Midnight (#2B1B17)
WesternCharcoal (#49413F)
CloudyGray (#6D6968)
SmokeyGray (#726E6D)
AlienGray (#736F6E)
BloodNight (#551606)
CopperRed (#CB6D51)
SunriseOrange (#E67451)
AshGray (#666362)
DarkSalmon (#E9967A)
Rust (#C36241)
BasketBallOrange (#F88158)
Coral (#FF7F50)
OrangeRed (#FF4500)
Granite (#837E7C)
LightSalmon (#FFA07A)
BrightOrange (#FF5F1F)
BloodRed (#7E3517)
LightSalmonRose (#F9966B)
OrangeSalmon (#C47451)
LightCopper (#DA8A67)
Tangerine (#E78A61)
Sepia (#7F462C)
Sangria (#7E3817)
Sienna (#A0522D)
Mahogany (#C04000)
MangoOrange (#FF8040)
ConstructionConeOrange (#F87431)
PastelBrown (#B1907F)
RedGold (#EB5406)
HalloweenOrange (#E66C2C)
PaleSilver (#C9C0BB)
UnbleachedSilk (#FFDDCA)
DarkSienna (#8A4117)
RedFox (#C35817)
IndianSaffron (#FF7722)
PapayaOrange (#E56717)
PetraGold (#B76734)
NeonOrange (#FF6700)
PumpkinOrange (#F87217)
BakersBrown (#5C3317)
Coffee (#6F4E37)
SeaShell (#FFF5EE)
PastelOrange (#F8B88B)
SaddleBrown (#8B4513)
Chocolate (#D2691E)
DesertSand (#EDC9AF)
DeepPeach (#FFCBA4)
DarkGold (#AA6C39)
DarkAlmond (#AB784E)
Taupe (#483C32)
BrownBear (#835C3B)
SandyBrown (#F4A460)
CarrotOrange (#F88017)
PeachPuff (#FFDAB9)
LightBrown (#B5651D)
TigerOrange (#C88141)
BrownSand (#EE9A4D)
Copper (#B87333)
BrownSugar (#E2A76F)
Peru (#CD853F)
Bronze (#CD7F32)
DarkBrown (#654321)
SepiaBrown (#704214)
Sedona (#CC6600)
DarkWhite (#E1D9D1)
Linen (#FAF0E6)
LightOrange (#FED8B1)
DarkBeige (#9F8C76)
Bisque (#FFE4C4)
Rice (#FAF5EF)
CamelBrown (#C19A6B)
DarkBisque (#B86500)
DarkOrange (#FF8C00)
Sandstone (#786D5F)
BurlyWood (#DEB887)
RedDirt (#7F5217)
Tan (#D2B48C)
AntiqueWhite (#FAEBD7)
YellowOrange (#FFAE42)
Cantaloupe (#FFA62F)
DarkBronze (#804A00)
MilkChocolate (#513B1C)
NavajoWhite (#FFDEAD)
BlanchedAlmond (#FFEBCD)
Wood (#966F33)
DeerBrown (#E6BF83)
MacaroniandCheese (#F2BB66)
Champagne (#F7E7CE)
OffWhite (#F8F0E3)
PapayaWhip (#FFEFD5)
LightFrenchBeige (#C8AD7F)
Moccasin (#FFE4B5)
Orange (#FFA500)
Wheat (#F5DEB3)
OldLace (#FDF5E6)
Peach (#FFE5B4)
Cinnamon (#C58917)
SoftIvory (#FAF0DD)
Mocha (#493D26)
Iridium (#3D3C3A)
GrayGoose (#D1D0CE)
Platinum (#E5E4E2)
GoldenSilk (#F3E3C3)
FloralWhite (#FFFAF0)
SchoolBusYellow (#E8A317)
Beer (#FBB117)
Caramel (#C68E17)
WhiteChocolate (#EDE6D6)
BeeYellow (#E9AB17)
DarkGoldenRod (#B8860B)
Saffron (#FBB917)
GoldenRod (#DAA520)
OrangeGold (#D4A017)
BoneWhite (#F9F6EE)
ChromeGold (#FFCE44)
OakBrown (#806517)
NeonGold (#FDBD01)
BulletShell (#AF9B60)
BronzeGold (#C9AE5D)
PearlWhite (#F8F6F0)
Sand (#C2B280)
DarkBlonde (#F0E2B6)
AshWhite (#E9E4D4)
MetallicGold (#D4AF37)
DeepYellow (#F6BE00)
GoldenBlonde (#FBE7A1)
MustardYellow (#FFDB58)
EggShell (#FFF9E3)
ArmyBrown (#827B60)
CookieBrown (#C7A317)
Hazel (#8E7618)
Cornsilk (#FFF8DC)
BrightGold (#FDD017)
GoldenBrown (#EAC117)
Vanilla (#F3E5AB)
FallLeafBrown (#C8B560)
SunYellow (#FFE87C)
LightGold (#F1E5AC)
CardboardBrown (#EDDA74)
Gold (#FFD700)
RubberDuckyYellow (#FFD801)
Blonde (#FBF6D9)
BoldYellow (#F9DB24)
DarkMoccasin (#827839)
Brass (#B5A642)
TanBrown (#ECE5B6)
DirtyWhite (#E8E4C9)
GoldenYellow (#FFDF00)
AntiqueBronze (#665D1E)
GingerBrown (#C9BE62)
Khaki (#F0E68C)
LemonChiffon (#FFFACD)
CornYellow (#FFF380)
HarvestGold (#EDE275)
KhakiGreen (#8A865D)
PaleGoldenRod (#EEE8AA)
MilleniumJade (#93917C)
BananaYellow (#F5E216)
Sage (#BCB88A)
DarkYellow (#8B8000)
DarkKhaki (#BDB76B)
CanaryYellow (#FFEF00)
CreamWhite (#FFFDD0)
OliveGreen (#BAB86C)
PastelYellow (#FAF884)
Olive (#808000)
BattleshipGray (#848482)
GrayCloud (#B6B6B4)
Beige (#F5F5DC)
LightGoldenRodYellow (#FAFAD2)
Cotton (#FBFBF9)
LightWhite (#FFFFF7)
WhiteGold (#FFFFF4)
Ivory (#FFFFF0)
LightYellow (#FFFFE0)
Cream (#FFFFCC)
Parchment (#FFFFC2)
NeonYellow (#FFFF33)
Yellow (#FFFF00)
NeonYellowGreen (#DAEE01)
YellowGreenGrosbeak (#E2F516)
AcidGreen (#B0BF1A)
AvocadoGreen (#B2C248)
ArmyGreen (#4B5320)
VenomGreen (#728C00)
PistachioGreen (#9DC209)
ChameleonGreen (#BDF516)
FernGreen (#667C26)
OrganicBrown (#E3F9A6)
SaladGreen (#A1C935)
TeaGreen (#CCFB5D)
SlimeGreen (#BCE954)
MilitaryGreen (#4E5B31)
ChromeWhite (#E8F1D4)
IguanaGreen (#9CB071)
DullGreenYellow (#B1FB17)
OliveDrab (#6B8E23)
YellowGreen (#9ACD32)
DarkOliveGreen (#556B2F)
SageGreen (#848B79)
GreenYellow (#ADFF2F)
AloeVeraGreen (#98F516)
GreenOnion (#6AA121)
YellowLawnGreen (#87F717)
HummingbirdGreen (#7FE817)
Chartreuse (#7FFF00)
LawnGreen (#7CFC00)
AlienGreen (#6CC417)
CamouflageGreen (#78866B)
GreenPeas (#89C35C)
SeaweedGreen (#437C17)
BrightGreen (#66FF00)
GreenSnake (#6CBB3C)
DollarBillGreen (#85BB65)
DarkForestGreen (#254117)
PeaGreen (#52D017)
NebulaGreen (#59E817)
EmeraldGreen (#5FFB17)
GreenApple (#4CC417)
DarkLimeGreen (#41A317)
ShamrockGreen (#347C17)
GreenPepper (#4AA02C)
HazelGreen (#617C58)
FrogGreen (#99C68E)
GreenThumb (#B5EAAA)
LightJade (#C3FDB8)
DinosaurGreen (#73A16C)
JungleGreen (#347C2C)
DarkGreen (#006400)
Green (#008000)
ForestGreen (#228B22)
GunmetalGray (#8D918D)
DarkSeaGreen (#8FBC8F)
LimeGreen (#32CD32)
PastelGreen (#77DD77)
LightGreen (#90EE90)
LightRoseGreen (#DBF9DB)
PaleGreen (#98FB98)
HoneyDew (#F0FFF0)
MintGreen (#98FF98)
Lime (#00FF00)
MediumForestGreen (#347235)
DeepEmeraldGreen (#046307)
KellyGreen (#4CC552)
NeonGreen (#16F529)
StoplightGoGreen (#57E964)
JadeGreen (#5EFB6E)
HunterGreen (#355E3B)
FallForestGreen (#4E9258)
ParrotGreen (#12AD2B)
PineGreen (#387C44)
CloverGreen (#3EA055)
AlgaeGreen (#64E986)
ZombieGreen (#54C571)
DragonGreen (#6AFB92)
Emerald (#50C878)
LimeMintGreen (#36F57F)
SeaGreen (#2E8B57)
MediumSeaGreen (#3CB371)
SpringGreen (#00FF7F)
MintCream (#F5FFFA)
EarthGreen (#34A56F)
MetallicGreen (#7C9D8E)
MagicMint (#AAF0D1)
MediumSpringGreen (#00FA9A)
Mint (#3EB489)
DarkMint (#31906E)
Deep-SeaGreen (#306754)
MediumAquaMarine (#66CDAA)
Dull-SeaGreen (#4E8975)
Jade (#00A36C)
Aquamarine (#7FFFD4)
BlueGreen (#7BCCB5)
LightAquamarine (#93FFE8)
SeaTurtleGreen (#438D80)
Turquoise (#40E0D0)
SeafoamGreen (#3EA99F)
TiffanyBlue (#81D8D0)
AquamarineStone (#348781)
LightSeaGreen (#20B2AA)
MediumTurquoise (#48D1CC)
TealGreen (#00827F)
DeepTeal (#033E3E)
MediumTeal (#045F5F)
Teal (#008080)
DarkCyan (#008B8B)
Deep-Sea (#3B9C9C)
CyanOpaque (#92C7C7)
NorthernLightsBlue (#78C7C7)
Jellyfish (#46C7C7)
PaleBlueLily (#CFECEC)
PaleTurquoise (#AFEEEE)
Azure (#F0FFFF)
LightCyan (#E0FFFF)
LightSlate (#CCFFFF)
BrightCyan (#0AFFFF)
Aqua (#00FFFF)
BlueZircon (#57FEFF)
Celeste (#50EBEC)
DeepTurquoise (#48CCCD)
TronBlue (#7DFDFE)
ElectricBlue (#9AFEFF)
BlueLagoon (#8EEBEC)
GreenishBlue (#307D7E)
DarkTurquoise (#00CED1)
CadetBlue (#5F9EA0)
GrayishTurquoise (#5E7D7E)
MacawBlueGreen (#43BFC7)
BlueDiamond (#4EE2EC)
BrightTurquoise (#16E2F5)
BlueHosta (#77BFC7)
PowderBlue (#B0E0E6)
BeetleGreen (#4C787E)
BlueTurquoise (#43C6DB)
BlueMossGreen (#3C565B)
DarkSlateGray (#25383C)
LightBlue (#ADD8E6)
DeepSkyBlue (#00BFFF)
CoralBlue (#AFDCEC)
RobinEggBlue (#BDEDFF)
BabyBlue (#95B9C7)
SkyBlue (#87CEEB)
Gunmetal (#2C3539)
LightSteelBlue (#B0CFDE)
ButterflyBlue (#38ACEC)
MiddayBlue (#3BB9FF)
IronGray (#52595D)
BlueIvy (#3090C7)
GulfBlue (#C9DFEC)
ColumbiaBlue (#87AFC7)
MetallicSilver (#BCC6CC)
JeansBlue (#A0CFEC)
LightSkyBlue (#87CEFA)
GlacialBlueIce (#368BC1)
LightDayBlue (#ADDFFF)
CharcoalBlue (#36454F)
Water (#EBF4FA)
BlueKoi (#659EC7)
DarkBlueGrey (#29465B)
DaySkyBlue (#82CAFF)
MarbleBlue (#566D7E)
DenimBlue (#79BAEC)
SteelBlue (#4682B4)
AliceBlue (#F0F8FF)
CrystalBlue (#5CB3FF)
Iceberg (#56A5EC)
SilkBlue (#488AC7)
DodgerBlue (#1E90FF)
Deep-SeaBlue (#123456)
NardoGray (#686A6C)
SlateGray (#708090)
LightSlateGray (#778899)
WindowsBlue (#357EC7)
NeonBlue (#1589FF)
BlueJay (#2B547E)
BrightNavyBlue (#1974D2)
BlueGray (#98AFC7)
BlueDress (#157DEC)
PastelBlue (#B4CFEC)
SeaBlue (#C2DFFF)
BlueEyes (#1569C7)
SlateGraniteGray (#657383)
WhiteBlue (#DBE9FA)
RatGray (#6D7B8D)
BlueAngel (#B7CEEC)
HeavenlyBlue (#C6DEFF)
JetGray (#616D7E)
CornflowerBlue (#6495ED)
MistBlue (#646D7E)
BlueberryBlue (#0041C2)
SilverWhite (#DADBDD)
SkyBlueDress (#6698FF)
RomanSilver (#838996)
LightPurpleBlue (#728FCE)
AzureBlue (#4863A0)
DarkSlate (#2B3856)
OceanBlue (#2B65EC)
BlueRibbon (#306EFF)
BalloonBlue (#2B60DE)
SapphireBlue (#2554C7)
LapisBlue (#15317E)
RoyalBlue (#4169E1)
SlateBlueGrey (#737CA1)
BlueOrchid (#1F45FC)
CobaltBlue (#0020C2)
NightBlue (#151B54)
PurpleNavy (#4E5180)
DenimDarkBlue (#151B8D)
PastelLightBlue (#D5D6EA)
LavenderBlue (#E3E4FA)
VeryPeri (#6667AB)
MidnightBlue (#191970)
Navy (#000080)
DarkBlue (#00008B)
NewMidnightBlue (#0000A0)
EarthBlue (#0000A5)
MediumBlue (#0000CD)
PeriwinklePurple (#7575CF)
Lavender (#E6E6FA)
GhostWhite (#F8F8FF)
Periwinkle (#CCCCFF)
BrightBlue (#0909FF)
Blue (#0000FF)
DeepPeriwinkle (#5453A6)
LightSlateBlue (#736AFF)
BlueLotus (#6960EC)
CanaryBlue (#2916F5)
BlueWhale (#342D7E)
Grape (#5E5A80)
SlateBlue (#6A5ACD)
DarkSlateBlue (#483D8B)
MediumSlateBlue (#7B68EE)
CrocusPurple (#9172EC)
PaleLilac (#DCD0FF)
LightPurple (#8467D7)
PurpleMimosa (#9E7BFF)
PurpleSageBush (#7A5DC7)
PurpleHaze (#4E387E)
MediumPurple (#9370DB)
LovelyPurple (#7F38EC)
AztechPurple (#893BFF)
PurpleAmethyst (#6C2DC7)
PurpleMonster (#461B7E)
LavenderPurple (#967BB6)
PurplePlum (#8E35EF)
RebeccaPurple (#663399)
BlueViolet (#8A2BE2)
BrightGrape (#6F2DA8)
ClematisViolet (#842DCE)
Indigo (#4B0082)
BrightPurple (#6A0DAD)
JasminePurple (#A23BEC)
PurpleDaffodil (#B041FF)
PurpleViolet (#8D38C9)
PurpleIris (#571B7E)
Mauve (#E0B0FF)
NeonPurple (#9D00FF)
MilkWhite (#FEFCFF)
DarkOrchid (#9932CC)
DarkViolet (#9400D3)
TyrianPurple (#C45AEC)
HeliotropePurple (#D462FF)
RichLilac (#B666D2)
PurpleFlower (#A74AC7)
PurpleWhite (#DFD3E3)
BrightLilac (#D891EF)
PurpleJam (#6A287E)
MediumOrchid (#BA55D3)
FrenchLilac (#86608E)
DeepPurple (#36013F)
PeriwinklePink (#E9CFEC)
CottonCandy (#FCDFFF)
BlushPink (#E6A9EC)
BlossomPink (#F9B7FF)
PurpleDragon (#C38EC7)
DarkPurple (#4B0150)
CrimsonPurple (#E238EC)
BrightNeonPink (#F433FF)
OrchidPurple (#B048B5)
WisteriaPurple (#C6AEC7)
PurpleThistle (#D2B9D3)
PlumPurple (#583759)
ViolaPurple (#7E587E)
Purple (#800080)
DarkMagenta (#8B008B)
Lilac (#C8A2C8)
Thistle (#D8BFD8)
Plum (#DDA0DD)
Violet (#EE82EE)
FuchsiaPink (#FF77FF)
Fuchsia (#FF00FF)
Orchid (#DA70D6)
DeepMauve (#DF73D4)
PastelPurple (#F2A2E8)
PinkPlum (#B93B8F)
PastelViolet (#D291BC)
PlumVelvet (#7D0552)
MediumVioletRed (#C71585)
DarkCarnationPink (#C12283)
NeonPink (#F535AA)
DimorphothecaMagenta (#E3319D)
RoyalPink (#E759AC)
MagentaPink (#CC338B)
PurpleLily (#550A35)
DeepPink (#FF1493)
NeonHotPink (#FD349C)
Eggplant (#614051)
DarkRaspberry (#872657)
PlumPie (#7D0541)
DarkHotPink (#F660AB)
HotPink (#FF69B4)
BrightPink (#FF007F)
PurpleMaroon (#810541)
PinkCupcake (#E45E9D)
HotDeepPink (#F52887)
PinkLemonade (#E4287C)
VioletRed (#F6358A)
BashfulPink (#C25283)
PinkViolet (#CA226B)
BurntPink (#C12267)
RoguePink (#C12869)
CadillacPink (#E38AAE)
Pearl (#FDEEF4)
Raspberry (#E30B5D)
RaspberryPurple (#B3446C)
LavenderPinocchio (#EBDDE2)
PigPink (#FDD7E4)
RoseRed (#C21E56)
Night (#0C090A)
Charcoal (#34282C)
LavenderBlush (#FFF0F5)
VelvetMaroon (#7E354D)
PaleVioletRed (#DB7093)
TulipPink (#C25A7C)
CarnationPink (#F778A1)
BlushRed (#E56E94)
PurplePink (#D16587)
DarkPink (#E75480)
MauveTaupe (#915F6D)
DarkScarlet (#560319)
DullPurple (#7F525D)
BrightMaroon (#C32148)
ChocolateBrown (#3F000F)
RosePink (#E7A1B0)
RedPink (#FA2A55)
Crimson (#DC143C)
DonutPink (#FAAFBE)
LipstickPink (#C48793)
CarbonRed (#A70D2A)
Burgundy (#8C001A)
RedWhite (#F3E8EA)
Pink (#FFC0CB)
WatermelonPink (#FC6C85)
GrayWolf (#504A4B)
VampireGray (#565051)
LightPink (#FFB6C1)
BabyPink (#FAAFBA)
DeepRed (#800517)
DustyPink (#D58A94)
PinkDaisy (#E799A3)
BlackEel (#463E3F)
PinkBrown (#C48189)
RedWine (#990012)
BlackCat (#413839)
FlamingoPink (#F9A7B0)
PastelRed (#F67280)
Cranberry (#9F000F)
Rosy-Finch (#7F4E52)
Blush (#FFE6E8)
PastelPink (#FEA3AA)
FerrariRed (#F70D1A)
Vermilion (#7E191B)
SaffronRed (#931314)

English11/03/22 08:12Lluís Turró Cutiller