Skip to content

#cdc41c

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

RGB
205, 196, 28
HSL
57°, 76%, 46%
CMYK
0, 4, 86, 20
Luminance
0.5254

At a glance

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

Hex
#cdc41c
Hue
57°
yellow
Saturation
76%
electric
Lightness
46%
balanced
Brightness
80%
HSV value
Perceived
74%
weighted brightness
Luminance
0.5254
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.51:1
Closest name
Gold
ΔE2000 9.7
Where it sits
Hue57° of 360°
Saturation76%
Lightness46%
Temperature
Warm ← → Cool22% 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#cdc41c
RGBrgb(205, 196, 28)
HSLhsl(57, 76%, 46%)
CMYKcmyk(0%, 4%, 86%, 20%)
LABlab(77.6 -13.4 74.7)
LCHlch(77.6 75.9 100.2)
OKLCHoklch(0.802 0.166 106.1)
Decimal13485084
Display P3color(display-p3 0.804 0.769 0.110)

Copy-ready code

/* CSS */
color: #cdc41c;
background-color: #cdc41c;
/* Tailwind (arbitrary) */
class="text-[#cdc41c] bg-[#cdc41c]"
/* SCSS */
$brand: #cdc41c;
/* SwiftUI */
Color(red: 0.804, green: 0.769, blue: 0.110)
/* Android */
Color.parseColor("#cdc41c")
/* Flutter */
Color(0xFFCDC41C)
/* Python / OpenCV (BGR) */
(28, 196, 205)

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

Accessibility — WCAG contrast

Aa
#cdc41c on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#cdc41c on black: 11.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D6BC00
deuteranopia · #D9C32E
tritanopia · #DDB6A7

Color scale — 50 to 950

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

#FCFBF3
#F9F8E7
#F4F2C8
#F2ED9C
#EBE46B
#E4DB3A
#cdc41c
#B4AC18
#908914
#686412
#413E0C
Base = 600Lightest = 50 · #FCFBF3Darkest = 950 · #413E0C
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F9F8E7;
  --brand-200: #F4F2C8;
  --brand-300: #F2ED9C;
  --brand-400: #EBE46B;
  --brand-500: #E4DB3A;
  --brand-600: #cdc41c;
  --brand-700: #B4AC18;
  --brand-800: #908914;
  --brand-900: #686412;
  --brand-950: #413E0C;
  --brand: #cdc41c;
  --brand-ink: #000000;
}

Colors that work with #cdc41c

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#EDEAC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#1750D2
Second voice, not a rival
Dark variant#706B0F
Hover, pressed, headers
Light variant#FCFBE9
Selected rows, tints
Dark surface#242414
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 #cdc41c

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#1C25CD
Analogous left#CD6B1C
Analogous right#7ECD1C
Split-complement 1#1C7ECD
Split-complement 2#6B1CCD
Triadic 1#1CCDC4
Triadic 2#C41CCD
Tetradic#1CCD6B

RGB percentages

Red80.4%
Green76.9%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta4.4%
Yellow86.3%
Key (black)19.6%

Color previews

#cdc41c text on a black background

contrast 11.51:1

Card sample

#cdc41c text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 196, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 196, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdc41c;
background: linear-gradient(135deg, #cdc41c, #60CD1C);

Monochromatic scale

Palettes built from #cdc41c

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.

#cdc41c 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#cdc41c, answered

What color is #cdc41c?

#cdc41c is a balanced electric yellow, closest to Gold (ΔE2000 9.7). It sits at 57° on the hue wheel with 76% saturation and 46% lightness, which reads as warm.

What is the RGB value of #cdc41c?

rgb(205, 196, 28) — 205 red, 196 green and 28 blue out of 255, or 80.4% / 76.9% / 11% by channel.

Is #cdc41c a light or a dark color?

It is a light color. Relative luminance is 0.5254 and perceived brightness is 74%, so black text on it reaches 11.51:1.

Should I use black or white text on #cdc41c?

Black. It scores 11.51:1 against #cdc41c, versus 1.82:1 for white — AAA at any size.

What is the complementary color of #cdc41c?

#1C25CD sits directly opposite on the wheel. Softer options are the split-complements #1C7ECD and #6B1CCD, which give the same contrast with far less vibration.

What colors go well with #cdc41c?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B974B for secondary text, #1750D2 as an accent and #706B0F for hover and pressed states. For a palette, the analogous pair #CD6B1C and #7ECD1C stays calm, while #1C25CD is the loudest partner.

What is #cdc41c in CMYK for printing?

cmyk(0%, 4%, 86%, 20%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #cdc41c warm or cool?

Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD8F1C; nudged cooler, #96CF1A.

Work with #cdc41c in the Color Lab