Skip to content

#cdcc48

a balanced, vivid yellow · warm · closest name: Dark Khaki

RGB
205, 204, 72
HSL
60°, 57%, 54%
CMYK
0, 1, 65, 20
Luminance
0.5663

At a glance

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

Hex
#cdcc48
Hue
60°
yellow
Saturation
57%
vivid
Lightness
54%
balanced
Brightness
80%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5663
WCAG relative
Temperature
Warm
25/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.33:1
Closest name
Dark Khaki
ΔE2000 8.8
Where it sits
Hue60° of 360°
Saturation57%
Lightness54%
Temperature
Warm ← → Cool25% 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#cdcc48
RGBrgb(205, 204, 72)
HSLhsl(60, 57%, 54%)
CMYKcmyk(0%, 1%, 65%, 20%)
LABlab(80.0 -15.7 63.3)
LCHlch(80.0 65.2 103.9)
OKLCHoklch(0.822 0.151 108.9)
Decimal13487176
Display P3color(display-p3 0.804 0.800 0.282)

Copy-ready code

/* CSS */
color: #cdcc48;
background-color: #cdcc48;
/* Tailwind (arbitrary) */
class="text-[#cdcc48] bg-[#cdcc48]"
/* SCSS */
$brand: #cdcc48;
/* SwiftUI */
Color(red: 0.804, green: 0.800, blue: 0.282)
/* Android */
Color.parseColor("#cdcc48")
/* Flutter */
Color(0xFFCDCC48)
/* Python / OpenCV (BGR) */
(72, 204, 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 #cdcc48 · 12.33:1
Use #000000AAA at every size.
Aa
White text · 1.70:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.33:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cdcc48 as text scores 1.70:1 on white and 12.33:1 on black.

Accessibility — WCAG contrast

Aa
#cdcc48 on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#cdcc48 on black: 12.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DCC436
deuteranopia · #DEC851
tritanopia · #DBBFB1

Color scale — 50 to 950

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

#FBFBF4
#F7F6E9
#EFEECD
#E7E6A7
#DBDA7B
#cdcc48
#C0BF35
#A09F2C
#807F23
#5D5D1D
#3A3A12
Base = 500Lightest = 50 · #FBFBF4Darkest = 950 · #3A3A12
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F6E9;
  --brand-200: #EFEECD;
  --brand-300: #E7E6A7;
  --brand-400: #DBDA7B;
  --brand-500: #cdcc48;
  --brand-600: #C0BF35;
  --brand-700: #A09F2C;
  --brand-800: #807F23;
  --brand-900: #5D5D1D;
  --brand-950: #3A3A12;
  --brand: #cdcc48;
  --brand-ink: #000000;
}

Colors that work with #cdcc48

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#EDECC0
Hairlines and dividers
Muted text#9B9A4B
Captions on the surface
Accent#4368D2
Second voice, not a rival
Dark variant#64641B
Hover, pressed, headers
Light variant#FAF9EB
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 #cdcc48

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#4849CD
Analogous left#CD8948
Analogous right#8CCD48
Split-complement 1#488CCD
Split-complement 2#8948CD
Triadic 1#48CDCC
Triadic 2#CC48CD
Tetradic#48CD89

RGB percentages

Red80.4%
Green80.0%
Blue28.2%

CMYK percentages

Cyan0.0%
Magenta0.5%
Yellow64.9%
Key (black)19.6%

Color previews

#cdcc48 text on a black background

contrast 12.33:1

Card sample

#cdcc48 text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 204, 72, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 204, 72, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdcc48;
background: linear-gradient(135deg, #cdcc48, #75CD48);

Monochromatic scale

Palettes built from #cdcc48

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.

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

#cdcc48, answered

What color is #cdcc48?

#cdcc48 is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 8.8). It sits at 60° on the hue wheel with 57% saturation and 54% lightness, which reads as warm.

What is the RGB value of #cdcc48?

rgb(205, 204, 72) — 205 red, 204 green and 72 blue out of 255, or 80.4% / 80% / 28.2% by channel.

Is #cdcc48 a light or a dark color?

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

Should I use black or white text on #cdcc48?

Black. It scores 12.33:1 against #cdcc48, versus 1.70:1 for white — AAA at any size.

What is the complementary color of #cdcc48?

#4849CD sits directly opposite on the wheel. Softer options are the split-complements #488CCD and #8948CD, which give the same contrast with far less vibration.

What colors go well with #cdcc48?

For interface work: #FAFAF4 as the surface, #EDECC0 for borders, #9B9A4B for secondary text, #4368D2 as an accent and #64641B for hover and pressed states. For a palette, the analogous pair #CD8948 and #8CCD48 stays calm, while #4849CD is the loudest partner.

What is #cdcc48 in CMYK for printing?

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

Is #cdcc48 warm or cool?

Warm — it scores 25 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD9C48; nudged cooler, #9ECF46.

Work with #cdcc48 in the Color Lab