Orange Hex Code #FFA500
Orange is a light, vivid color with the hex code #FFA500. In RGB it is 255, 165, 0, and in HSL it is 39°, 100%, 50%. It is one of the 148 named colors in CSS, so you can write “orange” instead of the hex code.
- HEX
- #FFA500
- RGB
- rgb(255, 165, 0)
- HSL
- hsl(39, 100%, 50%)
- HSV
- hsv(39°, 100%, 100%)
- CMYK
- cmyk(0%, 35%, 100%, 0%)
- CSS name
- orange
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Orange
On a white background Orange has a contrast ratio of 1.97:1 (Fail), and on black 10.63:1 (AAA). Black text is the better choice on top of it.
It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.
Orange is energetic and friendly. It works well for calls to action and highlights because it stands out against blue and neutral backgrounds without the alarm of red.
Good to know: CSS orange (#ffa500) was added in CSS 2.1 as the seventeenth color keyword, joining the 16 colors inherited from HTML 4. For a redder orange, see darkorange (#ff8c00) or orangered (#ff4500).
Shades and tints of Orange
Tints mix Orange with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Orange
These schemes are calculated from Orange on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Orange is #0001FF, close to the named color Blue.
Orange contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Orange scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.97:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 10.63:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Orange and color blindness
These are approximate previews of how Orange can look with the main types of color vision deficiency.
Orange changes noticeably.
Orange changes noticeably.
Orange changes noticeably.
Orange changes noticeably.
Gradients with Orange
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Orange to a lighter tint
background: linear-gradient(135deg, #ffa500 0%, #ffdb99 100%); Orange to its analogous neighbour
background: linear-gradient(135deg, #ffa500 0%, #daff00 100%); Orange to its complement
background: linear-gradient(135deg, #ffa500 0%, #005aff 100%); Colors similar to Orange
How each close match differs from Orange.
Use Orange in code
.element {
color: #ffa500;
background-color: #ffa500;
border-color: orange; /* orange is a valid CSS color name */
} :root {
--color-orange: #ffa500;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#ffa500] text-[#ffa500] border-[#ffa500]"></div>
/* Tailwind v4 theme color */
@theme {
--color-orange: #ffa500;
} Orange questions
What is the hex code for Orange?
The hex code for Orange is #FFA500. In RGB that is rgb(255, 165, 0), and in HSL it is hsl(39, 100%, 50%).
What is the complementary color of Orange?
On the RGB (screen) color wheel, the complement of Orange is #005AFF, which is close to Medium Slate Blue. On the artist’s RYB wheel it is #0001FF, close to Blue.
Should I use white or black text on Orange?
Black text. It has a contrast ratio of 10.63:1 against Orange, which is WCAG AAA. The other option scores 1.97:1.
Is Orange accessible as a text color on white?
No. Orange on white scores 1.97:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Orange?
Mixing Orange with black gives #CC8400, #996300, #664200, #332100 (20% to 80% black). Mixing it with white gives #FFB733, #FFC966, #FFDB99, #FFEDCC (20% to 80% white).