Skip to content

#c0af2d

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

RGB
192, 175, 45
HSL
53°, 62%, 47%
CMYK
0, 9, 77, 25
Luminance
0.4206

Every format

HEX#c0af2d
RGBrgb(192, 175, 45)
HSLhsl(53, 62%, 47%)
CMYKcmyk(0%, 9%, 77%, 25%)
LABlab(70.9 -7.8 64.0)
LCHlch(70.9 64.4 96.9)
OKLCHoklch(0.747 0.143 101.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0af2d on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#c0af2d on black: 9.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green68.6%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta8.9%
Yellow76.6%
Key (black)24.7%

Color previews

#c0af2d text on a black background

contrast 9.41:1

Card sample

#c0af2d text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 175, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 175, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c0af2d;
background: linear-gradient(135deg, #c0af2d, #6FC02D);

Monochromatic scale

Palettes built from #c0af2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0af2d in the Color Lab