CSS named color
Orange #FFA500
Orange (CSS keyword orange) has the hex code #FFA500 and the RGB value rgb(255, 165, 0): a light, vivid orange.
Orange (#ffa500) was added in CSS 2.1 as the 17th basic color, the first addition to the 16 HTML colors. It is too light for text on white but reads well on dark backgrounds.
Color codes for Orange
| CSS keyword | orange |
|---|---|
| HEX | #FFA500 |
| RGB | rgb(255, 165, 0) |
| HSL | hsl(39, 100%, 50%) |
| HWB | hwb(39 0% 0%) |
| OKLCH | oklch(79.3% 0.171 70.7) |
| CMYK (naive, no ICC profile) | cmyk(0%, 35%, 100%, 0%) |
| Decimal | 16,753,920 |
| Hue family | Oranges |
Contrast and accessibility
On orange, black text has a contrast ratio of 10.63:1 and passes AAA at any text size; white text reaches 1.97:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on orange | 10.63:1 | Pass | Pass | Pass | Pass | 66.2 |
| White text on orange | 1.97:1 | Fail | Fail | Fail | Fail | −42.1 |
| Orange text on white | 1.97:1 | Fail | Fail | Fail | Fail | 37.7 |
| Orange text on black | 10.63:1 | Pass | Pass | Pass | Pass | −64.7 |
Tints and shades
Each step mixes orange with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, orange, white 25%) in CSS.
Tints (mixed with white)
- 5%
#ffaa0d - 15%
#ffb326 - 25%
#ffbc40 - 35%
#ffc559 - 45%
#ffce73 - 55%
#ffd78c - 65%
#ffe0a6 - 75%
#ffe9bf - 85%
#fff2d9 - 95%
#fffbf2
Shades (mixed with black)
- 5%
#f29d00 - 15%
#d98c00 - 25%
#bf7c00 - 35%
#a66b00 - 45%
#8c5b00 - 55%
#734a00 - 65%
#593a00 - 75%
#402900 - 85%
#261900 - 95%
#0d0800
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, orange's complementary color is #78C1FF (close to lightskyblue), its analogous colors are #FF986E and #D4BD00, and its triadic partners are #00DAD3 and #DE99FF. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #78c1ff |
| Analogous | −30°, +30° | #ff986e#d4bd00 |
| Triadic | +120°, +240° | #00dad3#de99ff |
| Split-complementary | +150°, +210° | #00d2ff#acb1ff |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Orange is a warm color: its hue is 39° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Nearest CSS named colors
| Color | HEX | ΔE OK |
|---|---|---|
| sandybrown | #f4a460 | 5.3 |
| darkorange | #ff8c00 | 5.7 |
| goldenrod | #daa520 | 6.0 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| amber-500 | #fd9a00 | 2.9 |
| yellow-500 | #efb100 | 4.9 |
| amber-400 | #ffba00 | 5.9 |
Code snippets
.element {
color: orange;
background-color: #ffa500;
border-color: rgb(255 165 0);
outline-color: oklch(79.3% 0.171 70.7);
}<div class="bg-[#ffa500] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-orange: #ffa500;
}
/* then use bg-orange, text-orange, border-orange */import SwiftUI
extension Color {
static let orange = Color(red: 1.000, green: 0.647, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Orange = Color(0xFFFFA500)import 'package:flutter/material.dart';
const orange = Color(0xFFFFA500);<!-- res/values/colors.xml -->
<color name="orange">#FFA500</color>Frequently asked questions
- What is the hex code for orange?
- The hex code for orange is #FFA500. The same color is rgb(255, 165, 0), hsl(39, 100%, 50%) and oklch(79.3% 0.171 70.7), and in CSS you can also write the keyword orange directly.
- Is orange a warm or cool color?
- Orange is a warm color: its hue is 39° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
- What colors go with orange?
- Rotating the hue in OKLCH while keeping lightness and chroma, orange's complementary color is #78C1FF (close to lightskyblue), its analogous colors are #FF986E and #D4BD00, and its triadic partners are #00DAD3 and #DE99FF. For text on top, black gives the higher contrast.
- Can you use white text on orange?
- White text on orange has a contrast ratio of 1.97:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.63:1 and passes both AA and AAA. In APCA terms that is Lc −42.1 for white and Lc 66.2 for black.
- What is the RGB value of orange?
- Orange is rgb(255, 165, 0): red 255, green 165 and blue 0 on the 0 to 255 scale, or 100.0%, 64.7% and 0.0%. As a decimal integer it is 16753920.
Last reviewed by Arielton Oberek.