Skip to content

#dcc331

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

RGB
220, 195, 49
HSL
51°, 71%, 53%
CMYK
0, 11, 78, 14
Luminance
0.5447

At a glance

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

Hex
#dcc331
Hue
51°
yellow
Saturation
71%
vivid
Lightness
53%
balanced
Brightness
86%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5447
WCAG relative
Temperature
Warm
18/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.89:1
Closest name
Gold
ΔE2000 7.1
Where it sits
Hue51° of 360°
Saturation71%
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#dcc331
RGBrgb(220, 195, 49)
HSLhsl(51, 71%, 53%)
CMYKcmyk(0%, 11%, 78%, 14%)
LABlab(78.7 -5.8 70.7)
LCHlch(78.7 71.0 94.7)
OKLCHoklch(0.815 0.156 98.9)
Decimal14467889
Display P3color(display-p3 0.863 0.765 0.192)

Copy-ready code

/* CSS */
color: #dcc331;
background-color: #dcc331;
/* Tailwind (arbitrary) */
class="text-[#dcc331] bg-[#dcc331]"
/* SCSS */
$brand: #dcc331;
/* SwiftUI */
Color(red: 0.863, green: 0.765, blue: 0.192)
/* Android */
Color.parseColor("#dcc331")
/* Flutter */
Color(0xFFDCC331)
/* Python / OpenCV (BGR) */
(49, 195, 220)

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

Accessibility — WCAG contrast

Aa
#dcc331 on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#dcc331 on black: 11.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D7BE0B
deuteranopia · #DDC73C
tritanopia · #EEB4A8

Color scale — 50 to 950

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

#FCFAF3
#F8F6E7
#F3ECC9
#EFE39F
#E7D56F
#dcc331
#D1B823
#AE991E
#8C7B18
#655915
#3F380D
Base = 500Lightest = 50 · #FCFAF3Darkest = 950 · #3F380D
:root {
  --brand-50: #FCFAF3;
  --brand-100: #F8F6E7;
  --brand-200: #F3ECC9;
  --brand-300: #EFE39F;
  --brand-400: #E7D56F;
  --brand-500: #dcc331;
  --brand-600: #D1B823;
  --brand-700: #AE991E;
  --brand-800: #8C7B18;
  --brand-900: #655915;
  --brand-950: #3F380D;
  --brand: #dcc331;
  --brand-ink: #000000;
}

Colors that work with #dcc331

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#EDE6C0
Hairlines and dividers
Muted text#9B8F4B
Captions on the surface
Accent#2C74E1
Second voice, not a rival
Dark variant#6D6012
Hover, pressed, headers
Light variant#FBF9E9
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 #dcc331

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#314ADC
Analogous left#DC6D31
Analogous right#A0DC31
Split-complement 1#31A0DC
Split-complement 2#6D31DC
Triadic 1#31DCC3
Triadic 2#C331DC
Tetradic#31DC6D

RGB percentages

Red86.3%
Green76.5%
Blue19.2%

CMYK percentages

Cyan0.0%
Magenta11.4%
Yellow77.7%
Key (black)13.7%

Color previews

#dcc331 text on a black background

contrast 11.89:1

Card sample

#dcc331 text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(220, 195, 49, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(220, 195, 49, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dcc331;
background: linear-gradient(135deg, #dcc331, #83DC31);

Monochromatic scale

Palettes built from #dcc331

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.

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

#dcc331, answered

What color is #dcc331?

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

What is the RGB value of #dcc331?

rgb(220, 195, 49) — 220 red, 195 green and 49 blue out of 255, or 86.3% / 76.5% / 19.2% by channel.

Is #dcc331 a light or a dark color?

It is a light color. Relative luminance is 0.5447 and perceived brightness is 76%, so black text on it reaches 11.89:1.

Should I use black or white text on #dcc331?

Black. It scores 11.89:1 against #dcc331, versus 1.77:1 for white — AAA at any size.

What is the complementary color of #dcc331?

#314ADC sits directly opposite on the wheel. Softer options are the split-complements #31A0DC and #6D31DC, which give the same contrast with far less vibration.

What colors go well with #dcc331?

For interface work: #FAFAF4 as the surface, #EDE6C0 for borders, #9B8F4B for secondary text, #2C74E1 as an accent and #6D6012 for hover and pressed states. For a palette, the analogous pair #DC6D31 and #A0DC31 stays calm, while #314ADC is the loudest partner.

What is #dcc331 in CMYK for printing?

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

Is #dcc331 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 #DC9931; nudged cooler, #B8DE2E.

Work with #dcc331 in the Color Lab