Skip to content

#fbab21

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

RGB
251, 171, 33
HSL
38°, 97%, 56%
CMYK
0, 32, 87, 2
Luminance
0.4974

Every format

HEX#fbab21
RGBrgb(251, 171, 33)
HSLhsl(38, 97%, 56%)
CMYKcmyk(0%, 32%, 87%, 2%)
LABlab(75.9 19.5 74.1)
LCHlch(75.9 76.7 75.2)
OKLCHoklch(0.799 0.163 73.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fbab21 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#fbab21 on black: 10.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta31.9%
Yellow86.9%
Key (black)1.6%

Color previews

#fbab21 text on a black background

contrast 10.95:1

Card sample

#fbab21 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fbab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fbab21 in the Color Lab