Colors

Ant Design interprets the color system into two levels: a system-level color system and a product-level color system.

The system-level color system mainly defines the basic color palette, neutral color palette and data visualization color palette in the design of Ant Financial. The product-level color system is in the specific design process, based on the color of the system to further define the tone of the product in accordance with the requirements and function of the color.

Color Model#

Ant Design's design team preferred to design with the HSB color model, which makes it easier for designers to have a clear psychological expectation of color when adjusting colors, as well as facilitate communication in teams.

System-level Color System#

Ant Design system-level color system also comes from the "natural" design language. Designers abstract the natural scenes through the capture, combined with the technical gene of Ant Financial, forming a unique 12 colors. Further through a large number of observations, to capture the different colors of natural light under the law of change, with the art of drawing ideas, the 12 colors were derived. The definition of neutral color palette is balanced with readability, aesthetics and usability.

Base Color Palettes#

Ant Design's base color palette totals 120 colors, including 12 primary colors and their derivative colors. These colors can basically include the need for color in background applications design.

Dust Red / 薄暮斗志、奔放
red-1#fff1f0
red-2#ffccc7
red-3#ffa39e
red-4#ff7875
red-5#ff4d4f
red-6#f5222d
red-7#cf1322
red-8#a8071a
red-9#820014
red-10#5c0011
Volcano / 火山醒目、澎湃
volcano-1#fff2e8
volcano-2#ffd8bf
volcano-3#ffbb96
volcano-4#ff9c6e
volcano-5#ff7a45
volcano-6#fa541c
volcano-7#d4380d
volcano-8#ad2102
volcano-9#871400
volcano-10#610b00
Sunset Orange / 日暮温暖、欢快
orange-1#fff7e6
orange-2#ffe7ba
orange-3#ffd591
orange-4#ffc069
orange-5#ffa940
orange-6#fa8c16
orange-7#d46b08
orange-8#ad4e00
orange-9#873800
orange-10#612500
Calendula Gold / 金盏花活力、积极
gold-1#fffbe6
gold-2#fff1b8
gold-3#ffe58f
gold-4#ffd666
gold-5#ffc53d
gold-6#faad14
gold-7#d48806
gold-8#ad6800
gold-9#874d00
gold-10#613400
Sunrise Yellow / 日出出生、阳光
yellow-1#feffe6
yellow-2#ffffb8
yellow-3#fffb8f
yellow-4#fff566
yellow-5#ffec3d
yellow-6#fadb14
yellow-7#d4b106
yellow-8#ad8b00
yellow-9#876800
yellow-10#614700
Lime / 青柠自然、生机
lime-1#fcffe6
lime-2#f4ffb8
lime-3#eaff8f
lime-4#d3f261
lime-5#bae637
lime-6#a0d911
lime-7#7cb305
lime-8#5b8c00
lime-9#3f6600
lime-10#254000
Polar Green / 极光绿健康、创新
green-1#f6ffed
green-2#d9f7be
green-3#b7eb8f
green-4#95de64
green-5#73d13d
green-6#52c41a
green-7#389e0d
green-8#237804
green-9#135200
green-10#092b00
Cyan / 明青希望、坚强
cyan-1#e6fffb
cyan-2#b5f5ec
cyan-3#87e8de
cyan-4#5cdbd3
cyan-5#36cfc9
cyan-6#13c2c2
cyan-7#08979c
cyan-8#006d75
cyan-9#00474f
cyan-10#002329
Daybreak Blue / 拂晓蓝包容、科技、普惠
blue-1#e6f7ff
blue-2#bae7ff
blue-3#91d5ff
blue-4#69c0ff
blue-5#40a9ff
blue-6#1890ff
blue-7#096dd9
blue-8#0050b3
blue-9#003a8c
blue-10#002766
Geek Blue / 极客蓝探索、钻研
geekblue-1#f0f5ff
geekblue-2#d6e4ff
geekblue-3#adc6ff
geekblue-4#85a5ff
geekblue-5#597ef7
geekblue-6#2f54eb
geekblue-7#1d39c4
geekblue-8#10239e
geekblue-9#061178
geekblue-10#030852
Golden Purple / 酱紫优雅、浪漫
purple-1#f9f0ff
purple-2#efdbff
purple-3#d3adf7
purple-4#b37feb
purple-5#9254de
purple-6#722ed1
purple-7#531dab
purple-8#391085
purple-9#22075e
purple-10#120338
Magenta / 法式洋红明快、感性
magenta-1#fff0f6
magenta-2#ffd6e7
magenta-3#ffadd2
magenta-4#ff85c0
magenta-5#f759ab
magenta-6#eb2f96
magenta-7#c41d7f
magenta-8#9e1068
magenta-9#780650
magenta-10#520339

Ant Design's color palette also has the ability to further extend. After careful elaboration by designers and programmers, we have come up with a set of color generation tools that combine the natural variation of colors. When there is a need for further color design, designers simply define the primary colors according to certain rules and will get a complete range of derived colors automatically .

Neutral Color Palette#

gray-1#ffffff
gray-2#fafafa
gray-3#f5f5f5
gray-4#f0f0f0
gray-5#d9d9d9
gray-6#bfbfbf
gray-7#8c8c8c
gray-8#595959
gray-9#434343
gray-10#262626
gray-11#1f1f1f
gray-12#141414
gray-13#000000

Data Visualization Color Palette#

Data visualization color palette is based on the basic color palette and neutral color palette, and based on the principle that AntV's "effective, clear, accurate and beautiful". View Palette

Palette Generation Tool#

If the above palettes do not meet your needs, you can choose a main color below, and Ant Design's color generation algorithm will generate a palette for you.

Pick your primary color
color-1#e6f7ff
color-2#bae7ff
color-3#91d5ff
color-4#69c0ff
color-5#40a9ff
color-6#1890ff
color-7#096dd9
color-8#0050b3
color-9#003a8c
color-10#002766
#1890ff

Programmatic Usage#

We provide Less and JavaScript usage for developers.

  • Less

    @import '~antd/lib/style/themes/default.less';
    
    .selector {
      color: @blue-5;
      background-color: @gold-2;
    }

    Color less variables: color.less.


  • JavaScript

    npm install @ant-design/colors
    import { blue } from '@ant-design/colors';
    console.log(blue); // ['#E6F7FF', '#BAE7FF', '#91D5FF', '#69C0FF', '#40A9FF', '#1890FF', '#096DD9', '#0050B3', '#003A8C', '#002766']
    console.log(blue.primary); // '#1890FF'

    More APIs: @ant-design/colors


Product-level Color System#

Brand Color#

The brand color is one of the most intuitive visual elements used that is used to embody product characteristics and communicate ideas. When selecting colors, it is important to understand how the brand color is used in the user interface. In the basic color palette to choose the main color, we recommend choosing the color plate from the shallow depth of the sixth color as the main color. Ant Design's brand color comes from blue of the base color palette, it's Hex value is 1890FF, application scenarios include: key action point, the operation status, important information highlighting, graphics and other scenes.

Functional Color#

Functional color represents a clear message as well as status, such as success, error, failure, reminder, link and so on. Functional color selection need to comply with the user's basic understanding of color. We suggest that the functional colors should be kept as consistent as possible under a set of product systems. Do not have too much customization to interfere with the user's cognitive experience. Ant Design's functional color palette is shown on the right:

Neutral Color#

Neutral color is mainly used in a large part of the text interface, in addition to the background, borders, dividing lines, and other scenes are also very common. Neutral color definition needs to consider the difference between dark background and light background, while incorporating the WCAG 2.0 standard. The neutral color of Ant Design is based on transparency, as shown on the right:


Color Application In Enterprise Product Design#

In the design of background applications of Ant Financial, our attitude towards color is restrained. Color is used more based on information delivery, operational guidance and interactive feedback purposes. Above these principles that do not undermine operational efficiency and affect the clear communication of information, a rational choice of color is key. Of course, with illustrations and display page can be properly broken this idea.