Skip to content

#afb007

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

RGB
175, 176, 7
HSL
60°, 92%, 36%
CMYK
1, 0, 96, 31
Luminance
0.4018

Every format

HEX#afb007
RGBrgb(175, 176, 7)
HSLhsl(60, 92%, 36%)
CMYKcmyk(1%, 0%, 96%, 31%)
LABlab(69.6 -16.7 70.6)
LCHlch(69.6 72.6 103.3)
OKLCHoklch(0.732 0.159 110.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb007 on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#afb007 on black: 9.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.0%
Blue2.7%

CMYK percentages

Cyan0.6%
Magenta0.0%
Yellow96.0%
Key (black)31.0%

Color previews

#afb007 text on a black background

contrast 9.04:1

Card sample

#afb007 text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb007

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb007 in the Color Lab