Maroon Colors  ·  Color Library

Palettes / Colors / #CDC142

#CDC142 — Yellow

#CDC142 is a yellow color we call Yellow, closest to the named color DarkKhaki (#BDB76B). It belongs to the yellow family.

Color name

Closest CSS keyword: darkkhaki (#BDB76B) — not an exact match. CSS darkkhaki gives you #BDB76B, a different color; use #CDC142 when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#CDC142 is a warm yellow color associated with optimism, attention and cheer. It sits comfortably in the middle: usable for large areas in soft schemes, or as a supporting color beside something stronger.

Its strongest partner is its complement #424DCD; it also sits naturally between #CD7C42 and #93CD42. In the palettes below you can see it working alongside real color combinations from our collection.

#CDC142 · RGB 205, 193, 66

Download PNG swatch SVG

Color values

HEX#CDC142
RGB205, 193, 66
HSL55°, 58%, 53%
HSV55°, 68%, 80%
CMYK0%, 6%, 68%, 20%
XYZ45.23, 51.51, 12.71
Yxy51.51, 0.4132, 0.4706
CIE-Lab76.99, -10.45, 62.57
Hunter Lab71.77, -9.43, 37.21

RGB & CMYK percentages

Red 80% · Green 76% · Blue 26%

Cyan 0% · Magenta 6% · Yellow 68% · Key 20%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #CDC142 on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #CDC142 on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #CDC142

.text { color: #CDC142; }
.background { background-color: #CDC142; }
.border { border: 3px solid #CDC142; }
.text-rgb { color: rgb(205, 193, 66); }
.text-hsl { color: hsl(55, 58%, 53%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #CDC142; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(205, 193, 66, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #CDC142; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(205, 193, 66, 0.8); }

HTML: <p style="color:#CDC142">Text here</p> · <div style="background-color:#CDC142">Div content here</div>

Shades of #CDC142

#C1B633#ADA32E#999029#857D23#756E1F#615B1A#4D4814#38350F#24220A#100F04

Tints of #CDC142

#D1C652#D6CD66#DBD276#DFD786#E4DE9A#E9E3AA#EDE9BB#F1EECB#F6F4DF#FBFAEF

Tones of #CDC142

#C3B94B#B8B056#AFA860#A5A069#9C9873#918F7E

Color harmonies

Complementary — #424DCD:

Analogous:

Triadic:

Contrast & accessibility

Against white text1.86:1 Fails
Against black text11.30:1 AAA

Best text color on #CDC142: #000000.

Semi-transparent (opacity) text on #CDC142

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #CDC142: ·

How #CDC142 looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #C8C861Deuteranopia · #C9C968Tritanopia · #CC797E

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Material Lime 500 · #CDDC39Material Yellow 500 · #FFEB3BTailwind yellow 500 · #EAB308

Palettes with a similar color

These palettes use a close neighbour of #CDC142 rather than the exact color:

Vintage Petal
#BF3446 · #553014 · #C6C441 · #3D661A
Frozen Cascade
#B85741 · #B67D2F · #CBC63C · #B9D586
Vivid Ruby Solace
#C57C3A · #C8C74F · #6BA338 · #46AB4A
Dusty Ruby Mosaic
#B64436 · #DE9E53 · #C5C135 · #709F2B
Dusty Ruby Horizon
#95289F · #CABC33 · #59D5CA · #EED5EF
Palette Cdc733
#CDC733 · #966C3B · #D0AF84 · #FFE6CA

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#C6C441#CBC63C#C8C74F#C5C135#CABC33#CDC733#BDC045#C0B949#CACE37#C5CE4C#DEBA41#D6B146

Browse neighbouring colors

← #CDC141  ·  #CDC143 →

Frequently asked questions

What color is #CDC142?

#CDC142 is Yellow, a yellow color (RGB 205, 193, 66). Its closest standard named color is DarkKhaki.

What is the RGB and HSL of #CDC142?

#CDC142 is RGB 205, 193, 66 — HSL 55°, 58%, 53% — CMYK 0%, 6%, 68%, 20%.

What colors go with #CDC142?

Its complement is #424DCD; analogous partners are #CD7C42 and #93CD42. It also appears in 6+ palettes in our collection.

Can I use #CDC142 for text?

Black text on #CDC142 has a contrast ratio of 11.30:1 (passes WCAG AA); white text gives 1.86:1.