Skip to content

#af7e4f

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

RGB
175, 126, 79
HSL
29°, 38%, 50%
CMYK
0, 28, 55, 31
Luminance
0.2460

At a glance

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

Hex
#af7e4f
Hue
29°
orange
Saturation
38%
soft
Lightness
50%
balanced
Brightness
69%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2460
WCAG relative
Temperature
Warm
0/100 cool
Color family
Orange
Tone
Soft
Best ink
Black
5.92:1
Closest name
Peru
ΔE2000 7.3
Where it sits
Hue29° of 360°
Saturation38%
Lightness50%
Temperature
Warm ← → Cool0% 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#af7e4f
RGBrgb(175, 126, 79)
HSLhsl(29, 38%, 50%)
CMYKcmyk(0%, 28%, 55%, 31%)
LABlab(56.7 13.6 32.9)
LCHlch(56.7 35.6 67.6)
OKLCHoklch(0.632 0.088 63.9)
Decimal11501135
Display P3color(display-p3 0.686 0.494 0.310)

Copy-ready code

/* CSS */
color: #af7e4f;
background-color: #af7e4f;
/* Tailwind (arbitrary) */
class="text-[#af7e4f] bg-[#af7e4f]"
/* SCSS */
$brand: #af7e4f;
/* SwiftUI */
Color(red: 0.686, green: 0.494, blue: 0.310)
/* Android */
Color.parseColor("#af7e4f")
/* Flutter */
Color(0xFFAF7E4F)
/* Python / OpenCV (BGR) */
(79, 126, 175)

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 #af7e4f · 5.92:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.55:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.92:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #af7e4f as text scores 3.55:1 on white and 5.92:1 on black.

Accessibility — WCAG contrast

Aa
#af7e4f on white: 3.55:1
AA ✗ fail · AA-large · AAA
Aa
#af7e4f on black: 5.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8E814B
deuteranopia · #998C50
tritanopia · #BD7373

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af7e4f 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.

#FAF7F5
#F4F0EB
#E9DED3
#DCC6B2
#CBAA8B
#B98E64
#af7e4f
#8D653F
#705133
#523D28
#342619
Base = 600Lightest = 50 · #FAF7F5Darkest = 950 · #342619
:root {
  --brand-50: #FAF7F5;
  --brand-100: #F4F0EB;
  --brand-200: #E9DED3;
  --brand-300: #DCC6B2;
  --brand-400: #CBAA8B;
  --brand-500: #B98E64;
  --brand-600: #af7e4f;
  --brand-700: #8D653F;
  --brand-800: #705133;
  --brand-900: #523D28;
  --brand-950: #342619;
  --brand: #af7e4f;
  --brand-ink: #000000;
}

Colors that work with #af7e4f

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#E6D6C7
Hairlines and dividers
Muted text#9B724B
Captions on the surface
Accent#3B7C91
Second voice, not a rival
Dark variant#583F28
Hover, pressed, headers
Light variant#F7F2ED
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 #af7e4f

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#4F80AF
Analogous left#AF4F50
Analogous right#AFAE4F
Split-complement 1#4FAFAE
Split-complement 2#4F50AF
Triadic 1#4FAF7E
Triadic 2#7E4FAF
Tetradic#50AF4F

RGB percentages

Red68.6%
Green49.4%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta28.0%
Yellow54.9%
Key (black)31.4%

Color previews

#af7e4f text on a black background

contrast 5.92:1

Card sample

#af7e4f text on a white background

contrast 3.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 126, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 126, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7e4f;
background: linear-gradient(135deg, #af7e4f, #A0AF4F);

Monochromatic scale

Palettes built from #af7e4f

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.

#af7e4f 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

Converts to four-color process without much drama. Proof it anyway.

#af7e4f, answered

What color is #af7e4f?

#af7e4f is a balanced soft orange, closest to Peru (ΔE2000 7.3). It sits at 29° on the hue wheel with 38% saturation and 50% lightness, which reads as warm.

What is the RGB value of #af7e4f?

rgb(175, 126, 79) — 175 red, 126 green and 79 blue out of 255, or 68.6% / 49.4% / 31% by channel.

Is #af7e4f a light or a dark color?

It is a mid-tone. Relative luminance is 0.2460 and perceived brightness is 54%, so black text on it reaches 5.92:1.

Should I use black or white text on #af7e4f?

Black. It scores 5.92:1 against #af7e4f, versus 3.55:1 for white — AA at any size.

What is the complementary color of #af7e4f?

#4F80AF sits directly opposite on the wheel. Softer options are the split-complements #4FAFAE and #4F50AF, which give the same contrast with far less vibration.

What colors go well with #af7e4f?

For interface work: #FAF7F4 as the surface, #E6D6C7 for borders, #9B724B for secondary text, #3B7C91 as an accent and #583F28 for hover and pressed states. For a palette, the analogous pair #AF4F50 and #AFAE4F stays calm, while #4F80AF is the loudest partner.

What is #af7e4f in CMYK for printing?

cmyk(0%, 28%, 55%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #af7e4f warm or cool?

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

Work with #af7e4f in the Color Lab