CSS color names · Oranges

Orange color: hex #ffa500, RGB and HSL

Orange is the CSS keyword orange, hex #ffa500, rgb(255, 165, 0), hsl(39, 100%, 50%). It is a medium, fully saturated orange in the oranges family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
orange
Hex
#ffa500
RGB
rgb(255, 165, 0)
HSL
hsl(39, 100%, 50%)
On white
1.97:1 — fails AA; use as a fill, not text
On black
10.63:1 — passes AA for body text
.example {
  color: orange;          /* keyword */
  color: #ffa500;          /* hex */
  color: rgb(255, 165, 0); /* rgb */
  color: hsl(39, 100%, 50%); /* hsl */
}

What colors go with orange

Each match keeps orange's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside orange as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#005aff

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#00daff
#2500ff

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#00ffa5
#a500ff

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#ff2500
#daff00

Tints and shades of orange

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as orange — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#ffb42b
#ffc355
#ffd280
#ffe1aa
#fff0d4

Shades (darker)

#d48900
#aa6e00
#805200
#553700
#2b1c00

A UI color palette built from orange

The eight semantic roles an interface actually uses, derived from orange as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#ffa500
secondary
#00daff
accent
#2500ff
background
#fdfdfc
surface
#f7f5f3
text
#221c11
muted
#8f7b56
border
#ece7df
Dark mode
primary
#ffae1a
secondary
#1addff
accent
#3b1aff
background
#1b160e
surface
#282115
text
#f6f5f3
muted
#b8ab94
border
#493d27

Using orange in an interface

Orange is the classic accent for a blue or teal interface: it is the complement, and it reads as an object rather than a surface. Keep it to buttons, badges and single highlights; as a background it competes with everything on top of it. Whichever role orange takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Orange?
Orange is #ffa500. In CSS the keyword orange, the hex #ffa500, rgb(255, 165, 0) and hsl(39, 100%, 50%) all paint the same color.
What colors go with Orange?
Its complement is #005aff, the split-complementary pair is #00daff and #2500ff, the triadic partners are #00ffa5 and #a500ff, and the analogous neighbors are #ff2500 and #daff00. In an interface, use Orange for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Orange on the color wheel?
The opposite (complementary) color is #005aff, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Orange for text?
Orange as text on white has a contrast ratio of 1.97:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 10.63:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More oranges

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.