CSS Color Codes

v1.0.0
Total Colors
96
Named CSS colors
Categories
12
Color families
Showing
96
Filtered results
ColorNameHexRGBHSLCategoryActions
Text
aliceblue#F0F8FFrgb(240, 248, 255)hsl(208, 100%, 97%)
Blue
Text
aqua#00FFFFrgb(0, 255, 255)hsl(180, 100%, 50%)
Basic
Text
black#000000rgb(0, 0, 0)hsl(0, 0%, 0%)
Basic
Text
blue#0000FFrgb(0, 0, 255)hsl(240, 100%, 50%)
Basic
Text
blueviolet#8A2BE2rgb(138, 43, 226)hsl(271, 76%, 53%)
Purple
Text
brown#A52A2Argb(165, 42, 42)hsl(0, 59%, 41%)
Brown
Text
chartreuse#7FFF00rgb(127, 255, 0)hsl(90, 100%, 50%)
Green
Text
chocolate#D2691Ergb(210, 105, 30)hsl(25, 75%, 47%)
Brown
Text
cornflowerblue#6495EDrgb(100, 149, 237)hsl(219, 79%, 66%)
Blue
Text
crimson#DC143Crgb(220, 20, 60)hsl(348, 83%, 47%)
Red
Text
cyan#00FFFFrgb(0, 255, 255)hsl(180, 100%, 50%)
Basic
Text
darkblue#00008Brgb(0, 0, 139)hsl(240, 100%, 27%)
Blue
Text
darkgray#A9A9A9rgb(169, 169, 169)hsl(0, 0%, 66%)
Gray
Text
darkgreen#006400rgb(0, 100, 0)hsl(120, 100%, 20%)
Green
Text
darkorange#FF8C00rgb(255, 140, 0)hsl(33, 100%, 50%)
Orange
Text
darkred#8B0000rgb(139, 0, 0)hsl(0, 100%, 27%)
Red
Text
darkviolet#9400D3rgb(148, 0, 211)hsl(282, 100%, 41%)
Purple
Text
deeppink#FF1493rgb(255, 20, 147)hsl(328, 100%, 54%)
Pink
Text
deepskyblue#00BFFFrgb(0, 191, 255)hsl(195, 100%, 50%)
Blue
Text
dimgray#696969rgb(105, 105, 105)hsl(0, 0%, 41%)
Gray
Text
dodgerblue#1E90FFrgb(30, 144, 255)hsl(210, 100%, 56%)
Blue
Text
firebrick#B22222rgb(178, 34, 34)hsl(0, 68%, 42%)
Red
Text
forestgreen#228B22rgb(34, 139, 34)hsl(120, 61%, 34%)
Green
Text
fuchsia#FF00FFrgb(255, 0, 255)hsl(300, 100%, 50%)
Basic
Text
gainsboro#DCDCDCrgb(220, 220, 220)hsl(0, 0%, 86%)
Gray
Text
gold#FFD700rgb(255, 215, 0)hsl(51, 100%, 50%)
Yellow
Text
goldenrod#DAA520rgb(218, 165, 32)hsl(43, 74%, 49%)
Yellow
Text
gray#808080rgb(128, 128, 128)hsl(0, 0%, 50%)
Basic
Text
green#008000rgb(0, 128, 0)hsl(120, 100%, 25%)
Basic
Text
hotpink#FF69B4rgb(255, 105, 180)hsl(330, 100%, 71%)
Pink
Text
indianred#CD5C5Crgb(205, 92, 92)hsl(0, 53%, 58%)
Red
Text
indigo#4B0082rgb(75, 0, 130)hsl(275, 100%, 25%)
Purple
Text
khaki#F0E68Crgb(240, 230, 140)hsl(54, 77%, 75%)
Yellow
Text
lavender#E6E6FArgb(230, 230, 250)hsl(240, 67%, 94%)
Purple
Text
lawngreen#7CFC00rgb(124, 252, 0)hsl(90, 100%, 49%)
Green
Text
lightblue#ADD8E6rgb(173, 216, 230)hsl(195, 53%, 79%)
Blue
Text
lightcoral#F08080rgb(240, 128, 128)hsl(0, 79%, 72%)
Red
Text
lightgray#D3D3D3rgb(211, 211, 211)hsl(0, 0%, 83%)
Gray
Text
lightgreen#90EE90rgb(144, 238, 144)hsl(120, 73%, 75%)
Green
Text
lightpink#FFB6C1rgb(255, 182, 193)hsl(351, 100%, 86%)
Pink
Text
lightsalmon#FFA07Argb(255, 160, 122)hsl(17, 100%, 74%)
Red
Text
lightslategray#778899rgb(119, 136, 153)hsl(210, 14%, 53%)
Gray
Text
lightsteelblue#B0C4DErgb(176, 196, 222)hsl(214, 41%, 78%)
Blue
Text
lightyellow#FFFFE0rgb(255, 255, 224)hsl(60, 100%, 94%)
Yellow
Text
lime#00FF00rgb(0, 255, 0)hsl(120, 100%, 50%)
Basic
Text
limegreen#32CD32rgb(50, 205, 50)hsl(120, 61%, 50%)
Green
Text
magenta#FF00FFrgb(255, 0, 255)hsl(300, 100%, 50%)
Basic
Text
maroon#800000rgb(128, 0, 0)hsl(0, 100%, 25%)
Basic
Text
material-amber#FFC107rgb(255, 193, 7)hsl(45, 100%, 51%)
Material
Text
material-blue#2196F3rgb(33, 150, 243)hsl(207, 90%, 54%)
Material
Text
material-cyan#00BCD4rgb(0, 188, 212)hsl(187, 100%, 42%)
Material
Text
material-deep-orange#FF5722rgb(255, 87, 34)hsl(14, 100%, 57%)
Material
Text
material-deep-purple#673AB7rgb(103, 58, 183)hsl(262, 52%, 47%)
Material
Text
material-green#4CAF50rgb(76, 175, 80)hsl(122, 39%, 49%)
Material
Text
material-indigo#3F51B5rgb(63, 81, 181)hsl(231, 48%, 48%)
Material
Text
material-light-blue#03A9F4rgb(3, 169, 244)hsl(199, 98%, 48%)
Material
Text
material-light-green#8BC34Argb(139, 195, 74)hsl(88, 50%, 53%)
Material
Text
material-lime#CDDC39rgb(205, 220, 57)hsl(66, 70%, 54%)
Material
Text
material-orange#FF9800rgb(255, 152, 0)hsl(36, 100%, 50%)
Material
Text
material-pink#E91E63rgb(233, 30, 99)hsl(340, 82%, 52%)
Material
Text
material-purple#9C27B0rgb(156, 39, 176)hsl(291, 64%, 42%)
Material
Text
material-red#F44336rgb(244, 67, 54)hsl(4, 90%, 58%)
Material
Text
material-teal#009688rgb(0, 150, 136)hsl(174, 100%, 29%)
Material
Text
material-yellow#FFEB3Brgb(255, 235, 59)hsl(54, 100%, 62%)
Material
Text
mediumorchid#BA55D3rgb(186, 85, 211)hsl(288, 59%, 58%)
Purple
Text
mediumseagreen#3CB371rgb(60, 179, 113)hsl(147, 50%, 47%)
Green
Text
midnightblue#191970rgb(25, 25, 112)hsl(240, 64%, 27%)
Blue
Text
navy#000080rgb(0, 0, 128)hsl(240, 100%, 25%)
Basic
Text
olive#808000rgb(128, 128, 0)hsl(60, 100%, 25%)
Basic
Text
orange#FFA500rgb(255, 165, 0)hsl(39, 100%, 50%)
Orange
Text
orangered#FF4500rgb(255, 69, 0)hsl(16, 100%, 50%)
Orange
Text
peru#CD853Frgb(205, 133, 63)hsl(30, 59%, 53%)
Brown
Text
pink#FFC0CBrgb(255, 192, 203)hsl(350, 100%, 88%)
Pink
Text
plum#DDA0DDrgb(221, 160, 221)hsl(300, 47%, 75%)
Purple
Text
powderblue#B0E0E6rgb(176, 224, 230)hsl(187, 52%, 80%)
Blue
Text
purple#800080rgb(128, 0, 128)hsl(300, 100%, 25%)
Basic
Text
red#FF0000rgb(255, 0, 0)hsl(0, 100%, 50%)
Basic
Text
royalblue#4169E1rgb(65, 105, 225)hsl(225, 73%, 57%)
Blue
Text
salmon#FA8072rgb(250, 128, 114)hsl(6, 93%, 71%)
Red
Text
sandybrown#F4A460rgb(244, 164, 96)hsl(28, 87%, 67%)
Brown
Text
sienna#A0522Drgb(160, 82, 45)hsl(19, 56%, 40%)
Brown
Text
silver#C0C0C0rgb(192, 192, 192)hsl(0, 0%, 75%)
Basic
Text
skyblue#87CEEBrgb(135, 206, 235)hsl(197, 71%, 73%)
Blue
Text
slategray#708090rgb(112, 128, 144)hsl(210, 13%, 50%)
Gray
Text
springgreen#00FF7Frgb(0, 255, 127)hsl(150, 100%, 50%)
Green
Text
steelblue#4682B4rgb(70, 130, 180)hsl(207, 44%, 49%)
Blue
Text
tan#D2B48Crgb(210, 180, 140)hsl(34, 44%, 69%)
Brown
Text
teal#008080rgb(0, 128, 128)hsl(180, 100%, 25%)
Basic
Text
tomato#FF6347rgb(255, 99, 71)hsl(9, 100%, 64%)
Red
Text
violet#EE82EErgb(238, 130, 238)hsl(300, 76%, 72%)
Purple
Text
webgray#666666rgb(102, 102, 102)hsl(0, 0%, 40%)
Web Safe
Text
websafe-blue#0000CCrgb(0, 0, 204)hsl(240, 100%, 40%)
Web Safe
Text
websafe-green#00CC00rgb(0, 204, 0)hsl(120, 100%, 40%)
Web Safe
Text
websafe-red#CC0000rgb(204, 0, 0)hsl(0, 100%, 40%)
Web Safe
Text
white#FFFFFFrgb(255, 255, 255)hsl(0, 0%, 100%)
Basic
Text
yellow#FFFF00rgb(255, 255, 0)hsl(60, 100%, 50%)
Basic

Color Format Examples

Hex Format

#FF0000
#ff0000
#F00
Hexadecimal notation

RGB Format

rgb(255, 0, 0)
rgba(255, 0, 0, 0.5)
Red, Green, Blue values

HSL Format

hsl(0, 100%, 50%)
hsla(0, 100%, 50%, 0.5)
Hue, Saturation, Lightness

Named Colors

red
blue
green
CSS color keywords

Category Breakdown

Basic
18
colors
Red
8
colors
Blue
12
colors
Green
8
colors
Yellow
4
colors
Orange
3
colors
Purple
7
colors
Pink
4
colors
Brown
6
colors
Gray
6
colors
Web Safe
4
colors
Material
16
colors
  • ASCII Table
    Similar tool

    Complete ASCII character reference table with decimal, hexadecimal, binary, and octal values.

  • HTTP Status Codes
    Similar tool

    Complete reference for HTTP response status codes with descriptions, use cases, and categories.

  • Country Codes
    Similar tool

    Comprehensive reference for ISO country codes with flags, names, and regional information.

  • MIME Types
    Similar tool

    Complete reference for MIME types and file extensions used in web development and file handling.

  • Port Numbers
    Similar tool

    Comprehensive reference for network port numbers, protocols, and services used in networking and development.

Understanding CSS Colors

CSS provides multiple ways to specify colors, each with its own advantages and use cases. Understanding these different color formats helps you choose the right approach for your design needs and development workflow.

Color Format Types

Hexadecimal (Hex) Colors

Hex colors are the most common format in web development. They use base-16 notation with values from 0-9 and A-F. The format is #RRGGBB where RR, GG, and BB represent red, green, and blue values.

  • 6-digit: #FF0000 (red)
  • 3-digit shorthand: #F00 (equivalent to #FF0000)
  • 8-digit with alpha: #FF000080 (50% transparent red)

RGB and RGBA Colors

RGB uses decimal values from 0-255 for red, green, and blue channels. RGBA adds an alpha channel for transparency (0-1).

rgb(255, 0, 0) /* Red */
rgb(0, 128, 255) /* Blue */
rgba(255, 0, 0, 0.5) /* 50% transparent red */

HSL and HSLA Colors

HSL represents colors using Hue (0-360°), Saturation (0-100%), and Lightness (0-100%). This format is intuitive for color adjustments and creates harmonious color schemes.

hsl(0, 100%, 50%) /* Red */
hsl(240, 100%, 50%) /* Blue */
hsla(0, 100%, 50%, 0.5) /* 50% transparent red */

Named Colors

CSS provides 147 named colors that are easier to remember and use. These range from basic colors like "red" and "blue" to more specific ones like "lightcoral" and "steelblue".

Color Categories

Basic Colors

The 16 basic HTML colors that are supported by all browsers and are part of the original HTML specification.

Extended Colors

CSS3 added many more named colors, organized by color families (reds, blues, greens, etc.). These provide more nuanced color options while maintaining readability.

Web Safe Colors

A palette of 216 colors that display consistently across all browsers and platforms. While less critical with modern displays, they're still useful for maximum compatibility.

Material Design Colors

Google's Material Design color palette provides a modern, consistent set of colors designed for digital interfaces.

Color Accessibility

Contrast Ratios

WCAG guidelines specify minimum contrast ratios for text accessibility:

  • AA Standard: 4.5:1 for normal text, 3:1 for large text
  • AAA Enhanced: 7:1 for normal text, 4.5:1 for large text

Color Blindness Considerations

Approximately 8% of men and 0.5% of women have color vision deficiencies. Design considerations include:

  • Don't rely solely on color to convey information
  • Use sufficient contrast between colors
  • Test designs with color blindness simulators
  • Avoid problematic color combinations (red/green, blue/purple)

Best Practices

Choosing Color Formats

  • Hex: Best for static colors, easy to copy/share
  • RGB: Good for programmatic color manipulation
  • HSL: Ideal for creating color variations and themes
  • Named colors: Perfect for quick prototyping and basic colors

Color Palette Development

  • Start with a primary color and build variations
  • Use HSL for systematic color generation
  • Maintain consistent saturation and lightness levels
  • Test colors across different devices and lighting conditions

Performance Considerations

  • Named colors are slightly more performant than hex/rgb
  • Use CSS custom properties for maintainable color systems
  • Consider color format consistency across your project

Modern CSS Color Features

CSS Custom Properties (Variables)

Use CSS variables for maintainable color systems:

:root {
  --primary-color: #3B82F6;
  --primary-light: #60A5FA;
  --primary-dark: #1E40AF;
}
.button {
  background-color: var(--primary-color);
}

New Color Spaces

Modern browsers are adding support for wider color gamuts:

  • P3: color(display-p3 1 0 0)
  • Lab: lab(50% 20 -30)
  • LCH: lch(50% 40 180)

Tools and Workflow

Color Picker Tools

  • Browser DevTools color picker
  • Adobe Color (online color wheel)
  • Coolors.co (palette generator)
  • Material Design Color Tool

Testing and Validation

  • WebAIM Contrast Checker
  • Colour Contrast Analyser
  • Stark (Figma/Sketch plugin)
  • Browser accessibility audits

Pro Tip

When building a design system, use HSL colors for your primary palette. This makes it easy to create lighter/darker variations by adjusting the lightness value while keeping hue and saturation consistent.

Accessibility Reminder

Always test your color choices with actual users, including those with color vision deficiencies. Automated tools are helpful but don't replace real user testing.