Skip to content

#c7a621

a balanced, vivid yellow · warm · closest name: Goldenrod

RGB
199, 166, 33
HSL
48°, 72%, 46%
CMYK
0, 17, 83, 22
Luminance
0.3952

At a glance

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

Hex
#c7a621
Hue
48°
yellow
Saturation
72%
vivid
Lightness
46%
balanced
Brightness
78%
HSV value
Perceived
66%
weighted brightness
Luminance
0.3952
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
8.90:1
Closest name
Goldenrod
ΔE2000 5.6
Where it sits
Hue48° of 360°
Saturation72%
Lightness46%
Temperature
Warm ← → Cool15% 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#c7a621
RGBrgb(199, 166, 33)
HSLhsl(48, 72%, 46%)
CMYKcmyk(0%, 17%, 83%, 22%)
LABlab(69.1 -0.3 66.3)
LCHlch(69.1 66.3 90.3)
OKLCHoklch(0.734 0.142 93.6)
Decimal13084193
Display P3color(display-p3 0.780 0.651 0.129)

Copy-ready code

/* CSS */
color: #c7a621;
background-color: #c7a621;
/* Tailwind (arbitrary) */
class="text-[#c7a621] bg-[#c7a621]"
/* SCSS */
$brand: #c7a621;
/* SwiftUI */
Color(red: 0.780, green: 0.651, blue: 0.129)
/* Android */
Color.parseColor("#c7a621")
/* Flutter */
Color(0xFFC7A621)
/* Python / OpenCV (BGR) */
(33, 166, 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 #c7a621 · 8.90:1
Use #000000AAA at every size.
Aa
White text · 2.36:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.90:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c7a621 as text scores 2.36:1 on white and 8.90:1 on black.

Accessibility — WCAG contrast

Aa
#c7a621 on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#c7a621 on black: 8.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B9A300
deuteranopia · #C1AD2B
tritanopia · #D8988E

Color scale — 50 to 950

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

#FCFAF3
#F8F5E7
#F3EAC9
#EFDF9F
#E7CF6F
#DFBF3E
#c7a621
#AF921D
#8C7517
#665615
#3F350D
Base = 600Lightest = 50 · #FCFAF3Darkest = 950 · #3F350D
:root {
  --brand-50: #FCFAF3;
  --brand-100: #F8F5E7;
  --brand-200: #F3EAC9;
  --brand-300: #EFDF9F;
  --brand-400: #E7CF6F;
  --brand-500: #DFBF3E;
  --brand-600: #c7a621;
  --brand-700: #AF921D;
  --brand-800: #8C7517;
  --brand-900: #665615;
  --brand-950: #3F350D;
  --brand: #c7a621;
  --brand-ink: #000000;
}

Colors that work with #c7a621

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#FAF9F4
Tinted page background
Border#EDE4C0
Hairlines and dividers
Muted text#9B8B4B
Captions on the surface
Accent#1C6BCC
Second voice, not a rival
Dark variant#6D5B12
Hover, pressed, headers
Light variant#FBF8E9
Selected rows, tints
Dark surface#242114
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 #c7a621

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#2142C7
Analogous left#C75321
Analogous right#95C721
Split-complement 1#2195C7
Split-complement 2#5321C7
Triadic 1#21C7A6
Triadic 2#A621C7
Tetradic#21C753

RGB percentages

Red78.0%
Green65.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta16.6%
Yellow83.4%
Key (black)22.0%

Color previews

#c7a621 text on a black background

contrast 8.90:1

Card sample

#c7a621 text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(199, 166, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 166, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7a621;
background: linear-gradient(135deg, #c7a621, #79C721);

Monochromatic scale

Palettes built from #c7a621

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.

#c7a621 in the real world

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

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#c7a621, answered

What color is #c7a621?

#c7a621 is a balanced vivid yellow, closest to Goldenrod (ΔE2000 5.6). It sits at 48° on the hue wheel with 72% saturation and 46% lightness, which reads as warm.

What is the RGB value of #c7a621?

rgb(199, 166, 33) — 199 red, 166 green and 33 blue out of 255, or 78% / 65.1% / 12.9% by channel.

Is #c7a621 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3952 and perceived brightness is 66%, so black text on it reaches 8.90:1.

Should I use black or white text on #c7a621?

Black. It scores 8.90:1 against #c7a621, versus 2.36:1 for white — AAA at any size.

What is the complementary color of #c7a621?

#2142C7 sits directly opposite on the wheel. Softer options are the split-complements #2195C7 and #5321C7, which give the same contrast with far less vibration.

What colors go well with #c7a621?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8B4B for secondary text, #1C6BCC as an accent and #6D5B12 for hover and pressed states. For a palette, the analogous pair #C75321 and #95C721 stays calm, while #2142C7 is the loudest partner.

What is #c7a621 in CMYK for printing?

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

Is #c7a621 warm or cool?

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

Work with #c7a621 in the Color Lab