Skip to content

#c8af2c

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

RGB
200, 175, 44
HSL
50°, 64%, 48%
CMYK
0, 13, 78, 22
Luminance
0.4312

Every format

HEX#c8af2c
RGBrgb(200, 175, 44)
HSLhsl(50, 64%, 48%)
CMYKcmyk(0%, 13%, 78%, 22%)
LABlab(71.6 -4.3 65.2)
LCHlch(71.6 65.4 93.8)
OKLCHoklch(0.754 0.143 97.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c8af2c on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#c8af2c on black: 9.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.4%
Green68.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow78.0%
Key (black)21.6%

Color previews

#c8af2c text on a black background

contrast 9.62:1

Card sample

#c8af2c text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(200, 175, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(200, 175, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c8af2c;
background: linear-gradient(135deg, #c8af2c, #79C82C);

Monochromatic scale

Palettes built from #c8af2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c8af2c in the Color Lab