Skip to content

#d0af2f

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

RGB
208, 175, 47
HSL
48°, 63%, 50%
CMYK
0, 16, 77, 18
Luminance
0.4428

Every format

HEX#d0af2f
RGBrgb(208, 175, 47)
HSLhsl(48, 63%, 50%)
CMYKcmyk(0%, 16%, 77%, 18%)
LABlab(72.4 -0.7 65.2)
LCHlch(72.4 65.2 90.6)
OKLCHoklch(0.762 0.142 93.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d0af2f on white: 2.13:1
AA ✗ fail · AA-large · AAA
Aa
#d0af2f on black: 9.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.6%
Green68.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta15.9%
Yellow77.4%
Key (black)18.4%

Color previews

#d0af2f text on a black background

contrast 9.86:1

Card sample

#d0af2f text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(208, 175, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(208, 175, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d0af2f;
background: linear-gradient(135deg, #d0af2f, #86D02F);

Monochromatic scale

Palettes built from #d0af2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d0af2f in the Color Lab