Skip to content

CSS named color

DarkOrange #FF8C00

DarkOrange (CSS keyword darkorange) has the hex code #FF8C00 and the RGB value rgb(255, 140, 0): a light, vivid orange.

DarkOrange#FF8C00

Dark orange (#ff8c00) keeps the red channel at full strength, so it is only slightly darker than orange (#ffa500) and reads as a more intense, reddish orange.

Color codes for DarkOrange

Color codes for DarkOrange
CSS keyworddarkorange
HEX#FF8C00
RGBrgb(255, 140, 0)
HSLhsl(33, 100%, 50%)
HWBhwb(33 0% 0%)
OKLCHoklch(75.1% 0.179 58.3)
CMYK (naive, no ICC profile)cmyk(0%, 45%, 100%, 0%)
Decimal16,747,520
Hue familyOranges

Contrast and accessibility

On darkorange, black text has a contrast ratio of 9.00:1 and passes AAA at any text size; white text reaches 2.33: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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on darkorange9.00:1PassPassPassPass58.6
White text on darkorange2.33:1FailFailFailFail−50.3
Darkorange text on white2.33:1FailFailFailFail45.4
Darkorange text on black9.00:1PassPassPassPass−56.7

Tints and shades

Each step mixes darkorange with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, darkorange, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #ff920d
  2. 15%
    #ff9d26
  3. 25%
    #ffa940
  4. 35%
    #ffb459
  5. 45%
    #ffc073
  6. 55%
    #ffcb8c
  7. 65%
    #ffd7a6
  8. 75%
    #ffe2bf
  9. 85%
    #ffeed9
  10. 95%
    #fff9f2

Shades (mixed with black)

  1. 5%
    #f28500
  2. 15%
    #d97700
  3. 25%
    #bf6900
  4. 35%
    #a65b00
  5. 45%
    #8c4d00
  6. 55%
    #733f00
  7. 65%
    #593100
  8. 75%
    #402300
  9. 85%
    #261500
  10. 95%
    #0d0700

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, darkorange's complementary color is #00BAFF (close to deepskyblue), its analogous colors are #FF7C6C and #DBA500, and its triadic partners are #00CEAF and #BD92FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#00baff
Analogous−30°, +30°#ff7c6c#dba500
Triadic+120°, +240°#00ceaf#bd92ff
Split-complementary+150°, +210°#00c7df#86a9ff

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?

DarkOrange is a warm color: its hue is 33° 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

Nearest CSS named colors
ColorHEXΔE OK
orange#ffa5005.7
coral#ff7f505.8
sandybrown#f4a4606.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-400#ff89040.8
amber-500#fd9a004.3
orange-500#ff69006.7

Code snippets

CSS
.element {
  color: darkorange;
  background-color: #ff8c00;
  border-color: rgb(255 140 0);
  outline-color: oklch(75.1% 0.179 58.3);
}
Tailwind CSS
<div class="bg-[#ff8c00] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-darkorange: #ff8c00;
}
/* then use bg-darkorange, text-darkorange, border-darkorange */
SwiftUI
import SwiftUI

extension Color {
  static let darkorange = Color(red: 1.000, green: 0.549, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Darkorange = Color(0xFFFF8C00)
Flutter
import 'package:flutter/material.dart';

const darkorange = Color(0xFFFF8C00);
Android XML
<!-- res/values/colors.xml -->
<color name="darkorange">#FF8C00</color>

Frequently asked questions

What is the hex code for darkorange?
The hex code for darkorange is #FF8C00. The same color is rgb(255, 140, 0), hsl(33, 100%, 50%) and oklch(75.1% 0.179 58.3), and in CSS you can also write the keyword darkorange directly.
Is darkorange a warm or cool color?
DarkOrange is a warm color: its hue is 33° 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 darkorange?
Rotating the hue in OKLCH while keeping lightness and chroma, darkorange's complementary color is #00BAFF (close to deepskyblue), its analogous colors are #FF7C6C and #DBA500, and its triadic partners are #00CEAF and #BD92FF. For text on top, black gives the higher contrast.
Can you use white text on darkorange?
White text on darkorange has a contrast ratio of 2.33:1, which fails AA even for large text under WCAG 2.2. Black text reaches 9.00:1 and passes both AA and AAA. In APCA terms that is Lc −50.3 for white and Lc 58.6 for black.
What is the RGB value of darkorange?
DarkOrange is rgb(255, 140, 0): red 255, green 140 and blue 0 on the 0 to 255 scale, or 100.0%, 54.9% and 0.0%. As a decimal integer it is 16747520.

Last reviewed by Arielton Oberek.