Skip to content

#c2ad2f

a balanced, vivid yellow · cool · closest name: olive

RGB
194, 173, 47
HSL
51°, 61%, 47%
CMYK
0, 11, 76, 24
Luminance
0.4156

Every format

HEX#c2ad2f
RGBrgb(194, 173, 47)
HSLhsl(51, 61%, 47%)
CMYKcmyk(0%, 11%, 76%, 24%)
LABlab(70.6 -5.8 63.0)
LCHlch(70.6 63.3 95.2)
OKLCHoklch(0.744 0.140 99.3)

Copy-ready code

/* CSS */
color: #c2ad2f;
background-color: #c2ad2f;
/* Tailwind (arbitrary) */
class="text-[#c2ad2f] bg-[#c2ad2f]"
/* SCSS */
$brand: #c2ad2f;
/* SwiftUI */
Color(red: 0.761, green: 0.678, blue: 0.184)
/* Android */
Color.parseColor("#c2ad2f")

Accessibility — WCAG contrast

Aa
#c2ad2f on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#c2ad2f on black: 9.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green67.8%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta10.8%
Yellow75.8%
Key (black)23.9%

Color previews

#c2ad2f text on a black background

contrast 9.31:1

Card sample

#c2ad2f text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 173, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 173, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2ad2f;
background: linear-gradient(135deg, #c2ad2f, #75C22F);

Monochromatic scale

Palettes built from #c2ad2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ad2f in the Color Lab