Skip to content

#af9840

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

RGB
175, 152, 64
HSL
48°, 46%, 47%
CMYK
0, 13, 63, 31
Luminance
0.3194

Every format

HEX#af9840
RGBrgb(175, 152, 64)
HSLhsl(48, 46%, 47%)
CMYKcmyk(0%, 13%, 63%, 31%)
LABlab(63.3 -2.0 48.2)
LCHlch(63.3 48.2 92.4)
OKLCHoklch(0.683 0.111 94.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9840 on white: 2.84:1
AA ✗ fail · AA-large · AAA
Aa
#af9840 on black: 7.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green59.6%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta13.1%
Yellow63.4%
Key (black)31.4%

Color previews

#af9840 text on a black background

contrast 7.39:1

Card sample

#af9840 text on a white background

contrast 2.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 152, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 152, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9840;
background: linear-gradient(135deg, #af9840, #7CAF40);

Monochromatic scale

Palettes built from #af9840

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af9840 in the Color Lab