Skip to content

#c2af2b

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

RGB
194, 175, 43
HSL
53°, 64%, 47%
CMYK
0, 10, 78, 24
Luminance
0.4230

Every format

HEX#c2af2b
RGBrgb(194, 175, 43)
HSLhsl(53, 64%, 47%)
CMYKcmyk(0%, 10%, 78%, 24%)
LABlab(71.1 -7.0 64.8)
LCHlch(71.1 65.2 96.1)
OKLCHoklch(0.748 0.144 100.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2af2b on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#c2af2b on black: 9.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green68.6%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta9.8%
Yellow77.8%
Key (black)23.9%

Color previews

#c2af2b text on a black background

contrast 9.46:1

Card sample

#c2af2b text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2af2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2af2b in the Color Lab