颜色代码示例
用于验证测试的各种格式颜色代码集合(Hex、RGB、HSL、命名颜色)
📝 常用颜色代码格式
🟢 simple
包含Hex、RGB、HSL、RGBA、HSLA和命名颜色格式的颜色代码列表
# Color Code Samples
# Copy one of these lines to test the Color Code Validator
# --- Hex Short (#RGB) ---
# Red
#F00
# Green
#0F0
# Blue
#00F
# White
#FFF
# Black
#000
# --- Hex Long (#RRGGBB) ---
# Pure Red
#FF0000
# Pure Green
#00FF00
# Pure Blue
#0000FF
# White
#FFFFFF
# Black
#000000
# Gray
#808080
# Orange
#FFA500
# Purple
#800080
# Pink
#FFC0CB
# --- Hex with Alpha (#RRGGBBAA) ---
# Semi-transparent Red
#FF000080
# Semi-transparent Blue
#0000FF50
# 50% opacity White
#FFFFFF80
# --- RGB / RGBA ---
# Pure Red
rgb(255, 0, 0)
# Pure Green
rgb(0, 255, 0)
# White with spaces
rgb(255, 255, 255)
# Semi-transparent Red
rgba(255, 0, 0, 0.5)
# Transparent Blue
rgba(0, 0, 255, 0.3)
# --- HSL / HSLA ---
# Red (0 degrees)
hsl(0, 100%, 50%)
# Green (120 degrees)
hsl(120, 100%, 50%)
# Blue (240 degrees)
hsl(240, 100%, 50%)
# Semi-transparent Red
hsla(0, 100%, 50%, 0.5)
# --- Named Colors ---
# Common colors
red
green
blue
yellow
orange
purple
pink
brown
black
white
gray
cyan
magenta
lime
maroon
navy
olive
teal
silver
gold
indigo
violet
turquoise