Skip to content

#ffba21

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

RGB
255, 186, 33
HSL
41°, 100%, 57%
CMYK
0, 27, 87, 0
Luminance
0.5649

Every format

HEX#ffba21
RGBrgb(255, 186, 33)
HSLhsl(41, 100%, 57%)
CMYKcmyk(0%, 27%, 87%, 0%)
LABlab(79.9 13.4 77.5)
LCHlch(79.9 78.6 80.2)
OKLCHoklch(0.832 0.166 80.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffba21 on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#ffba21 on black: 12.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green72.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow87.1%
Key (black)0.0%

Color previews

#ffba21 text on a black background

contrast 12.30:1

Card sample

#ffba21 text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffba21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffba21 in the Color Lab