Skip to content

#c2af5f

a balanced, soft yellow · cool · closest name: khaki

RGB
194, 175, 95
HSL
49°, 45%, 57%
CMYK
0, 10, 51, 24
Luminance
0.4296

Every format

HEX#c2af5f
RGBrgb(194, 175, 95)
HSLhsl(49, 45%, 57%)
CMYKcmyk(0%, 10%, 51%, 24%)
LABlab(71.5 -3.7 43.1)
LCHlch(71.5 43.3 94.9)
OKLCHoklch(0.753 0.103 96.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2af5f on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#c2af5f on black: 9.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green68.6%
Blue37.3%

CMYK percentages

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

Color previews

#c2af5f text on a black background

contrast 9.59:1

Card sample

#c2af5f text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2af5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2af5f in the Color Lab