Skip to content

#df7f18

a balanced, electric orange · warm · closest name: Peru

RGB
223, 127, 24
HSL
31°, 81%, 48%
CMYK
0, 43, 89, 13
Luminance
0.3093

At a glance

Every number on this page in one read: what #df7f18 is made of, how bright it looks, and which way it leans.

Hex
#df7f18
Hue
31°
orange
Saturation
81%
electric
Lightness
48%
balanced
Brightness
87%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3093
WCAG relative
Temperature
Warm
1/100 cool
Color family
Orange
Tone
Electric
Best ink
Black
7.19:1
Closest name
Peru
ΔE2000 5.1
Where it sits
Hue31° of 360°
Saturation81%
Lightness48%
Temperature
Warm ← → Cool1% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#df7f18
RGBrgb(223, 127, 24)
HSLhsl(31, 81%, 48%)
CMYKcmyk(0%, 43%, 89%, 13%)
LABlab(62.5 30.8 64.5)
LCHlch(62.5 71.5 64.5)
OKLCHoklch(0.688 0.156 59.4)
Decimal14647064
Display P3color(display-p3 0.875 0.498 0.094)

Copy-ready code

/* CSS */
color: #df7f18;
background-color: #df7f18;
/* Tailwind (arbitrary) */
class="text-[#df7f18] bg-[#df7f18]"
/* SCSS */
$brand: #df7f18;
/* SwiftUI */
Color(red: 0.875, green: 0.498, blue: 0.094)
/* Android */
Color.parseColor("#df7f18")
/* Flutter */
Color(0xFFDF7F18)
/* Python / OpenCV (BGR) */
(24, 127, 223)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #df7f18 · 7.19:1
Use #000000AAA at every size.
Aa
White text · 2.92:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.19:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #df7f18 as text scores 2.92:1 on white and 7.19:1 on black.

Accessibility — WCAG contrast

Aa
#df7f18 on white: 2.92:1
AA ✗ fail · AA-large · AAA
Aa
#df7f18 on black: 7.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9C8A00
deuteranopia · #B3A018
tritanopia · #F4696D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #df7f18 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF8F3
#F9F0E6
#F5DFC6
#F4C99A
#EFAD67
#E99234
#df7f18
#B86914
#935410
#6B3F10
#43270A
Base = 600Lightest = 50 · #FCF8F3Darkest = 950 · #43270A
:root {
  --brand-50: #FCF8F3;
  --brand-100: #F9F0E6;
  --brand-200: #F5DFC6;
  --brand-300: #F4C99A;
  --brand-400: #EFAD67;
  --brand-500: #E99234;
  --brand-600: #df7f18;
  --brand-700: #B86914;
  --brand-800: #935410;
  --brand-900: #6B3F10;
  --brand-950: #43270A;
  --brand: #df7f18;
  --brand-ink: #000000;
}

Colors that work with #df7f18

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF7F4
Tinted page background
Border#EDD7C0
Hairlines and dividers
Muted text#9B744B
Captions on the surface
Accent#108EBC
Second voice, not a rival
Dark variant#73420C
Hover, pressed, headers
Light variant#FDF3E8
Selected rows, tints
Dark surface#241C14
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #df7f18

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#1878DF
Analogous left#DF1C18
Analogous right#DBDF18
Split-complement 1#18DBDF
Split-complement 2#1C18DF
Triadic 1#18DF7F
Triadic 2#7F18DF
Tetradic#18DF1C

RGB percentages

Red87.5%
Green49.8%
Blue9.4%

CMYK percentages

Cyan0.0%
Magenta43.0%
Yellow89.2%
Key (black)12.5%

Color previews

#df7f18 text on a black background

contrast 7.19:1

Card sample

#df7f18 text on a white background

contrast 2.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #df7f18;
Background color
Panel with #df7f18 background
background-color: #df7f18;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #df7f18;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(223, 127, 24, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 127, 24, 0.45);
Border & gradient
Gradient panel
border: 3px solid #df7f18;
background: linear-gradient(135deg, #df7f18, #BADF18);

Monochromatic scale

Palettes built from #df7f18

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#df7f18 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
E-commerceFood deliveryLogisticsCreator tools
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#df7f18, answered

What color is #df7f18?

#df7f18 is a balanced electric orange, closest to Peru (ΔE2000 5.1). It sits at 31° on the hue wheel with 81% saturation and 48% lightness, which reads as warm.

What is the RGB value of #df7f18?

rgb(223, 127, 24) — 223 red, 127 green and 24 blue out of 255, or 87.5% / 49.8% / 9.4% by channel.

Is #df7f18 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3093 and perceived brightness is 61%, so black text on it reaches 7.19:1.

Should I use black or white text on #df7f18?

Black. It scores 7.19:1 against #df7f18, versus 2.92:1 for white — AAA at any size.

What is the complementary color of #df7f18?

#1878DF sits directly opposite on the wheel. Softer options are the split-complements #18DBDF and #1C18DF, which give the same contrast with far less vibration.

What colors go well with #df7f18?

For interface work: #FAF7F4 as the surface, #EDD7C0 for borders, #9B744B for secondary text, #108EBC as an accent and #73420C for hover and pressed states. For a palette, the analogous pair #DF1C18 and #DBDF18 stays calm, while #1878DF is the loudest partner.

What is #df7f18 in CMYK for printing?

cmyk(0%, 43%, 89%, 13%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #df7f18 warm or cool?

Warm — it scores 1 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E88228; nudged cooler, #E13715.

Work with #df7f18 in the Color Lab