Skip to content

#afb710

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

RGB
175, 183, 16
HSL
63°, 84%, 39%
CMYK
4, 0, 91, 28
Luminance
0.4302

Every format

HEX#afb710
RGBrgb(175, 183, 16)
HSLhsl(63, 84%, 39%)
CMYKcmyk(4%, 0%, 91%, 28%)
LABlab(71.6 -20.1 71.0)
LCHlch(71.6 73.8 105.8)
OKLCHoklch(0.748 0.164 112.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green71.8%
Blue6.3%

CMYK percentages

Cyan4.4%
Magenta0.0%
Yellow91.3%
Key (black)28.2%

Color previews

#afb710 text on a black background

contrast 9.60:1

Card sample

#afb710 text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 183, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 183, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb710;
background: linear-gradient(135deg, #afb710, #40B710);

Monochromatic scale

Palettes built from #afb710

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb710 in the Color Lab