Orange hex code

The hex code for orange is #FFA500, or rgb(255, 165, 0). CSS also accepts the keyword orange.

#FFA500
HEX#FFA500
RGBrgb(255, 165, 0)
HSLhsl(39, 100%, 50%)
HSV / HSBhsv(39, 100%, 100%)
OKLCHoklch(79.27% 0.171 70.67)
CMYKcmyk(0%, 35%, 100%, 0%)
HEX, 50% opacity#FFA50080
RGB, 50% opacityrgb(255 165 0 / 50%)
CSS nameorange
Defined inCSS 2.1

About orange

CSS orange (#FFA500) is a yellowish orange. It was added in CSS 2.1, after the 16 original HTML color names.

Redder oranges in CSS are darkorange (#FF8C00), orangered (#FF4500) and coral (#FF7F50), and tomato (#FF6347) sits between orange and red.

Shades and tints of orange

Orange lands on the 300 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For orange mixed with white, black or gray in even steps, use the tint and shade generator.

50#FFF6EB100#FFEBD4200#FFD6A1300#FFA500400#F29400500#D98400600#B36B00700#955700800#7C4600900#693A00950#401F00

Colors that go with orange

Partner hues are picked on the OKLCH color wheel.

Complementary: the opposite hue

#FFA500#78C1FF

Open in the palette generator · Compare the screen and painter's complements of orange

Analogous: neighboring hues 30° either side

#FFA500#FF986E#D4BD00

Open in the palette generator · See analogous and monochromatic colors of orange on three wheels

Triadic: three hues 120° apart

#FFA500#00DAD3#DE99FF

Open in the palette generator

Split complementary: the two hues beside the complement

#FFA500#00D2FF#ACB1FF

Open in the palette generator

Text on orange

White text on orange: 1.97:1
Black text on orange: 10.63:1
TextRatioAA normalAA largeAAA normal
White1.97:1FailFailFail
Black10.63:1PassPassPass

The ratio is the same either way round, so orange text on a white background is also 1.97:1. Check other pairs in the color contrast checker.

Similar named colors

The CSS named colors closest to orange, by deltaE OK distance.

sandybrown #F4A460darkorange #FF8C00goldenrod #DAA520lightsalmon #FFA07Aburlywood #DEB887darksalmon #E9967A

See all 148 on the color names page.

Closest Tailwind CSS colors

amber-500 v4: amber-500, #FD9A00, deltaE OK 0.029

amber-500 v3: amber-500, #F59E0B, deltaE OK 0.025

In Tailwind CSS v4 it is amber-500 (#FD9A00), and in v3 amber-500 (#F59E0B). For the exact color, use an arbitrary value such as bg-[#ffa500]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.

Orange with color vision deficiency

An approximation of how orange may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.

protanopia #C3AC00deuteranopia #D9C10Etritanopia #FF8E8Dachromatopsia #B8B8B8

Test a whole palette or image in the color blindness simulator.

Using orange in code

.example {
  color: orange;                 /* named color */
  background-color: #ffa500;  /* hex */
  border-color: rgb(255, 165, 0);
}

Frequently asked questions

What is the hex code for orange?
#FFA500. CSS also accepts the keyword orange, which means the same color.
What is orange in RGB?
rgb(255, 165, 0). In HSL it is hsl(39, 100%, 50%), and in OKLCH oklch(79.27% 0.171 70.67).
What text color goes on orange?
Black text has the higher contrast on #FFA500: 10.63:1, which meets AAA for all text. White text reaches 1.97:1.
What is the closest Tailwind color to orange?
In Tailwind CSS v4 it is amber-500 (#FD9A00), and in v3 amber-500 (#F59E0B). For the exact color, use an arbitrary value such as bg-[#ffa500].
How do I make orange transparent?
Add an alpha value. Half-transparent orange is #FFA50080 as 8-digit HEX (80 is 128 out of 255) or rgb(255 165 0 / 50%).