Skip to content

#fbaf0d

a balanced, electric yellow · warm · closest name: orange

RGB
251, 175, 13
HSL
41°, 97%, 52%
CMYK
0, 30, 95, 2
Luminance
0.5120

Every format

HEX#fbaf0d
RGBrgb(251, 175, 13)
HSLhsl(41, 97%, 52%)
CMYKcmyk(0%, 30%, 95%, 2%)
LABlab(76.8 17.1 78.5)
LCHlch(76.8 80.4 77.7)
OKLCHoklch(0.806 0.167 77.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fbaf0d on white: 1.87:1
AA ✗ fail · AA-large · AAA
Aa
#fbaf0d on black: 11.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green68.6%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta30.3%
Yellow94.8%
Key (black)1.6%

Color previews

#fbaf0d text on a black background

contrast 11.24:1

Card sample

#fbaf0d text on a white background

contrast 1.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fbaf0d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fbaf0d in the Color Lab