Skip to content

#dec72f

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

RGB
222, 199, 47
HSL
52°, 73%, 53%
CMYK
0, 10, 79, 13
Luminance
0.5658

At a glance

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

Hex
#dec72f
Hue
52°
yellow
Saturation
73%
vivid
Lightness
53%
balanced
Brightness
87%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5658
WCAG relative
Temperature
Warm
18/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.32:1
Closest name
Gold
ΔE2000 6.5
Where it sits
Hue52° of 360°
Saturation73%
Lightness53%
Temperature
Warm ← → Cool18% 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#dec72f
RGBrgb(222, 199, 47)
HSLhsl(52, 73%, 53%)
CMYKcmyk(0%, 10%, 79%, 13%)
LABlab(80.0 -7.1 72.5)
LCHlch(80.0 72.8 95.6)
OKLCHoklch(0.825 0.160 100.1)
Decimal14599983
Display P3color(display-p3 0.871 0.780 0.184)

Copy-ready code

/* CSS */
color: #dec72f;
background-color: #dec72f;
/* Tailwind (arbitrary) */
class="text-[#dec72f] bg-[#dec72f]"
/* SCSS */
$brand: #dec72f;
/* SwiftUI */
Color(red: 0.871, green: 0.780, blue: 0.184)
/* Android */
Color.parseColor("#dec72f")
/* Flutter */
Color(0xFFDEC72F)
/* Python / OpenCV (BGR) */
(47, 199, 222)

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

Accessibility — WCAG contrast

Aa
#dec72f on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#dec72f on black: 12.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DBC100
deuteranopia · #E1CA3B
tritanopia · #F0B8AB

Color scale — 50 to 950

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

#FCFBF3
#F8F6E7
#F3EDC9
#F0E59E
#E8D86E
#dec72f
#D3BC22
#B09D1C
#8D7D16
#665B14
#40390D
Base = 500Lightest = 50 · #FCFBF3Darkest = 950 · #40390D
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F8F6E7;
  --brand-200: #F3EDC9;
  --brand-300: #F0E59E;
  --brand-400: #E8D86E;
  --brand-500: #dec72f;
  --brand-600: #D3BC22;
  --brand-700: #B09D1C;
  --brand-800: #8D7D16;
  --brand-900: #665B14;
  --brand-950: #40390D;
  --brand: #dec72f;
  --brand-ink: #000000;
}

Colors that work with #dec72f

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#FAFAF4
Tinted page background
Border#EDE7C0
Hairlines and dividers
Muted text#9B904B
Captions on the surface
Accent#2A71E3
Second voice, not a rival
Dark variant#6E6211
Hover, pressed, headers
Light variant#FCF9E9
Selected rows, tints
Dark surface#242214
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 #dec72f

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#2F46DE
Analogous left#DE6F2F
Analogous right#9DDE2F
Split-complement 1#2F9DDE
Split-complement 2#6F2FDE
Triadic 1#2FDEC7
Triadic 2#C72FDE
Tetradic#2FDE6F

RGB percentages

Red87.1%
Green78.0%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta10.4%
Yellow78.8%
Key (black)12.9%

Color previews

#dec72f text on a black background

contrast 12.32:1

Card sample

#dec72f text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 199, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 199, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dec72f;
background: linear-gradient(135deg, #dec72f, #80DE2F);

Monochromatic scale

Palettes built from #dec72f

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.

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

#dec72f, answered

What color is #dec72f?

#dec72f is a balanced vivid yellow, closest to Gold (ΔE2000 6.5). It sits at 52° on the hue wheel with 73% saturation and 53% lightness, which reads as warm.

What is the RGB value of #dec72f?

rgb(222, 199, 47) — 222 red, 199 green and 47 blue out of 255, or 87.1% / 78% / 18.4% by channel.

Is #dec72f a light or a dark color?

It is a light color. Relative luminance is 0.5658 and perceived brightness is 77%, so black text on it reaches 12.32:1.

Should I use black or white text on #dec72f?

Black. It scores 12.32:1 against #dec72f, versus 1.71:1 for white — AAA at any size.

What is the complementary color of #dec72f?

#2F46DE sits directly opposite on the wheel. Softer options are the split-complements #2F9DDE and #6F2FDE, which give the same contrast with far less vibration.

What colors go well with #dec72f?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B904B for secondary text, #2A71E3 as an accent and #6E6211 for hover and pressed states. For a palette, the analogous pair #DE6F2F and #9DDE2F stays calm, while #2F46DE is the loudest partner.

What is #dec72f in CMYK for printing?

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

Is #dec72f warm or cool?

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

Work with #dec72f in the Color Lab