Skip to content

#a2af2c

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

RGB
162, 175, 44
HSL
66°, 60%, 43%
CMYK
7, 0, 75, 31
Luminance
0.3852

Every format

HEX#a2af2c
RGBrgb(162, 175, 44)
HSLhsl(66, 60%, 43%)
CMYKcmyk(7%, 0%, 75%, 31%)
LABlab(68.4 -20.8 61.1)
LCHlch(68.4 64.5 108.8)
OKLCHoklch(0.721 0.149 115.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2af2c on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#a2af2c on black: 8.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green68.6%
Blue17.3%

CMYK percentages

Cyan7.4%
Magenta0.0%
Yellow74.9%
Key (black)31.4%

Color previews

#a2af2c text on a black background

contrast 8.70:1

Card sample

#a2af2c text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2af2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2af2c in the Color Lab