Skip to content

#ddcf2d

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

RGB
221, 207, 45
HSL
55°, 72%, 52%
CMYK
0, 6, 80, 13
Luminance
0.6019

At a glance

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

Hex
#ddcf2d
Hue
55°
yellow
Saturation
72%
vivid
Lightness
52%
balanced
Brightness
87%
HSV value
Perceived
78%
weighted brightness
Luminance
0.6019
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
13.04:1
Closest name
Gold
ΔE2000 7.2
Where it sits
Hue55° of 360°
Saturation72%
Lightness52%
Temperature
Warm ← → Cool21% 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#ddcf2d
RGBrgb(221, 207, 45)
HSLhsl(55, 72%, 52%)
CMYKcmyk(0%, 6%, 80%, 13%)
LABlab(81.9 -11.6 74.8)
LCHlch(81.9 75.7 98.8)
OKLCHoklch(0.840 0.167 104.1)
Decimal14536493
Display P3color(display-p3 0.867 0.812 0.176)

Copy-ready code

/* CSS */
color: #ddcf2d;
background-color: #ddcf2d;
/* Tailwind (arbitrary) */
class="text-[#ddcf2d] bg-[#ddcf2d]"
/* SCSS */
$brand: #ddcf2d;
/* SwiftUI */
Color(red: 0.867, green: 0.812, blue: 0.176)
/* Android */
Color.parseColor("#ddcf2d")
/* Flutter */
Color(0xFFDDCF2D)
/* Python / OpenCV (BGR) */
(45, 207, 221)

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

Accessibility — WCAG contrast

Aa
#ddcf2d on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#ddcf2d on black: 13.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E2C800
deuteranopia · #E7CF3B
tritanopia · #EEC0B2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ddcf2d 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
#F8F7E7
#F3F0C9
#EFE99E
#E8DE6E
#ddcf2d
#D3C522
#B0A41C
#8C8317
#665F15
#403C0D
Base = 500Lightest = 50 · #FCFBF3Darkest = 950 · #403C0D
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F8F7E7;
  --brand-200: #F3F0C9;
  --brand-300: #EFE99E;
  --brand-400: #E8DE6E;
  --brand-500: #ddcf2d;
  --brand-600: #D3C522;
  --brand-700: #B0A41C;
  --brand-800: #8C8317;
  --brand-900: #665F15;
  --brand-950: #403C0D;
  --brand: #ddcf2d;
  --brand-ink: #000000;
}

Colors that work with #ddcf2d

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#EDE9C0
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#2866E2
Second voice, not a rival
Dark variant#6E6612
Hover, pressed, headers
Light variant#FBFAE9
Selected rows, tints
Dark surface#242314
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 #ddcf2d

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#2D3BDD
Analogous left#DD772D
Analogous right#93DD2D
Split-complement 1#2D93DD
Split-complement 2#772DDD
Triadic 1#2DDDCF
Triadic 2#CF2DDD
Tetradic#2DDD77

RGB percentages

Red86.7%
Green81.2%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow79.6%
Key (black)13.3%

Color previews

#ddcf2d text on a black background

contrast 13.04:1

Card sample

#ddcf2d text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(221, 207, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(221, 207, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ddcf2d;
background: linear-gradient(135deg, #ddcf2d, #76DD2D);

Monochromatic scale

Palettes built from #ddcf2d

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.

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

#ddcf2d, answered

What color is #ddcf2d?

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

What is the RGB value of #ddcf2d?

rgb(221, 207, 45) — 221 red, 207 green and 45 blue out of 255, or 86.7% / 81.2% / 17.6% by channel.

Is #ddcf2d a light or a dark color?

It is a light color. Relative luminance is 0.6019 and perceived brightness is 78%, so black text on it reaches 13.04:1.

Should I use black or white text on #ddcf2d?

Black. It scores 13.04:1 against #ddcf2d, versus 1.61:1 for white — AAA at any size.

What is the complementary color of #ddcf2d?

#2D3BDD sits directly opposite on the wheel. Softer options are the split-complements #2D93DD and #772DDD, which give the same contrast with far less vibration.

What colors go well with #ddcf2d?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #2866E2 as an accent and #6E6612 for hover and pressed states. For a palette, the analogous pair #DD772D and #93DD2D stays calm, while #2D3BDD is the loudest partner.

What is #ddcf2d in CMYK for printing?

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

Is #ddcf2d warm or cool?

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

Work with #ddcf2d in the Color Lab