Skip to content

#c7871f

a balanced, vivid orange · warm · closest name: Dark Goldenrod

RGB
199, 135, 31
HSL
37°, 73%, 45%
CMYK
0, 32, 84, 22
Luminance
0.2957

At a glance

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

Hex
#c7871f
Hue
37°
orange
Saturation
73%
vivid
Lightness
45%
balanced
Brightness
78%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2957
WCAG relative
Temperature
Warm
6/100 cool
Color family
Orange
Tone
Vivid
Best ink
Black
6.91:1
Closest name
Dark Goldenrod
ΔE2000 4.8
Where it sits
Hue37° of 360°
Saturation73%
Lightness45%
Temperature
Warm ← → Cool6% 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#c7871f
RGBrgb(199, 135, 31)
HSLhsl(37, 73%, 45%)
CMYKcmyk(0%, 32%, 84%, 22%)
LABlab(61.3 16.4 60.3)
LCHlch(61.3 62.4 74.8)
OKLCHoklch(0.672 0.134 73.1)
Decimal13076255
Display P3color(display-p3 0.780 0.529 0.122)

Copy-ready code

/* CSS */
color: #c7871f;
background-color: #c7871f;
/* Tailwind (arbitrary) */
class="text-[#c7871f] bg-[#c7871f]"
/* SCSS */
$brand: #c7871f;
/* SwiftUI */
Color(red: 0.780, green: 0.529, blue: 0.122)
/* Android */
Color.parseColor("#c7871f")
/* Flutter */
Color(0xFFC7871F)
/* Python / OpenCV (BGR) */
(31, 135, 199)

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

Accessibility — WCAG contrast

Aa
#c7871f on white: 3.04:1
AA ✗ fail · AA-large · AAA
Aa
#c7871f on black: 6.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9D8B02
deuteranopia · #AC9A23
tritanopia · #D97674

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c7871f 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
#F8F2E7
#F3E3C9
#F0D19E
#E8B96D
#E1A23D
#c7871f
#B0781C
#8D6016
#664714
#402C0D
Base = 600Lightest = 50 · #FCF8F3Darkest = 950 · #402C0D
:root {
  --brand-50: #FCF8F3;
  --brand-100: #F8F2E7;
  --brand-200: #F3E3C9;
  --brand-300: #F0D19E;
  --brand-400: #E8B96D;
  --brand-500: #E1A23D;
  --brand-600: #c7871f;
  --brand-700: #B0781C;
  --brand-800: #8D6016;
  --brand-900: #664714;
  --brand-950: #402C0D;
  --brand: #c7871f;
  --brand-ink: #000000;
}

Colors that work with #c7871f

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#FAF8F4
Tinted page background
Border#EDDCC0
Hairlines and dividers
Muted text#9B7C4B
Captions on the surface
Accent#1A8ACC
Second voice, not a rival
Dark variant#6E4B11
Hover, pressed, headers
Light variant#FCF4E9
Selected rows, tints
Dark surface#241E14
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 #c7871f

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
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#1F5FC7
Analogous left#C7331F
Analogous right#B3C71F
Split-complement 1#1FB3C7
Split-complement 2#331FC7
Triadic 1#1FC787
Triadic 2#871FC7
Tetradic#1FC733

RGB percentages

Red78.0%
Green52.9%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta32.2%
Yellow84.4%
Key (black)22.0%

Color previews

#c7871f text on a black background

contrast 6.91:1

Card sample

#c7871f text on a white background

contrast 3.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(199, 135, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 135, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7871f;
background: linear-gradient(135deg, #c7871f, #97C71F);

Monochromatic scale

Palettes built from #c7871f

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.

#c7871f 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.

#c7871f, answered

What color is #c7871f?

#c7871f is a balanced vivid orange, closest to Dark Goldenrod (ΔE2000 4.8). It sits at 37° on the hue wheel with 73% saturation and 45% lightness, which reads as warm.

What is the RGB value of #c7871f?

rgb(199, 135, 31) — 199 red, 135 green and 31 blue out of 255, or 78% / 52.9% / 12.2% by channel.

Is #c7871f a light or a dark color?

It is a mid-tone. Relative luminance is 0.2957 and perceived brightness is 59%, so black text on it reaches 6.91:1.

Should I use black or white text on #c7871f?

Black. It scores 6.91:1 against #c7871f, versus 3.04:1 for white — AA at any size.

What is the complementary color of #c7871f?

#1F5FC7 sits directly opposite on the wheel. Softer options are the split-complements #1FB3C7 and #331FC7, which give the same contrast with far less vibration.

What colors go well with #c7871f?

For interface work: #FAF8F4 as the surface, #EDDCC0 for borders, #9B7C4B for secondary text, #1A8ACC as an accent and #6E4B11 for hover and pressed states. For a palette, the analogous pair #C7331F and #B3C71F stays calm, while #1F5FC7 is the loudest partner.

What is #c7871f in CMYK for printing?

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

Is #c7871f warm or cool?

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

Work with #c7871f in the Color Lab