Skip to content

#afb643

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

RGB
175, 182, 67
HSL
64°, 46%, 49%
CMYK
4, 0, 63, 29
Luminance
0.4298

Every format

HEX#afb643
RGBrgb(175, 182, 67)
HSLhsl(64, 46%, 49%)
CMYKcmyk(4%, 0%, 63%, 29%)
LABlab(71.5 -17.5 55.7)
LCHlch(71.5 58.4 107.4)
OKLCHoklch(0.749 0.137 112.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green71.4%
Blue26.3%

CMYK percentages

Cyan3.8%
Magenta0.0%
Yellow63.2%
Key (black)28.6%

Color previews

#afb643 text on a black background

contrast 9.60:1

Card sample

#afb643 text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 182, 67, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 182, 67, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb643;
background: linear-gradient(135deg, #afb643, #62B643);

Monochromatic scale

Palettes built from #afb643

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb643 in the Color Lab