Orange color (#FFA500)
Orange is one of the 148 CSS named colors. Use the keyword orange
anywhere CSS accepts a color, or its hex code #FFA500, which is rgb(255, 165, 0) in RGB.
It is a light, vivid warm color with a hue angle of 39° on the HSL color wheel and a perceived lightness of 79% in OKLCH. On a orange background, black text gives the higher contrast at 10.63:1, which passes WCAG AA for normal text.
Orange color codes
| CSS name | orange |
|
|---|---|---|
| HEX | #FFA500 |
|
| HEX (8-digit) | #FFA500FF |
|
| RGB | rgb(255, 165, 0) |
|
| HSL | hsl(39, 100%, 50%) |
|
| HSV / HSB | hsv(39, 100%, 100%) |
|
| OKLCH | oklch(79.3% 0.171 70.7) |
|
| CMYK | cmyk(0%, 35.3%, 100%, 0%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for orange used as text and as a background.
Tints and shades of orange
Tints mix orange with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with orange
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
Orange with color blindness
Approximately how orange appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using orange in CSS
.element {
color: orange;
background-color: #ffa500;
border-color: rgb(255 165 0 / 50%);
outline-color: oklch(79.3% 0.171 70.7);
}Similar named colors
See all shades of orange or browse every CSS color name.