Skip to content

#c0af2f

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

RGB
192, 175, 47
HSL
53°, 61%, 47%
CMYK
0, 9, 76, 25
Luminance
0.4207

Every format

HEX#c0af2f
RGBrgb(192, 175, 47)
HSLhsl(53, 61%, 47%)
CMYKcmyk(0%, 9%, 76%, 25%)
LABlab(70.9 -7.7 63.3)
LCHlch(70.9 63.8 96.9)
OKLCHoklch(0.747 0.141 101.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red75.3%
Green68.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta8.9%
Yellow75.5%
Key (black)24.7%

Color previews

#c0af2f text on a black background

contrast 9.41:1

Card sample

#c0af2f text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c0af2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0af2f in the Color Lab