Skip to content

#ffba2c

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

RGB
255, 186, 44
HSL
40°, 100%, 59%
CMYK
0, 27, 83, 0
Luminance
0.5656

Every format

HEX#ffba2c
RGBrgb(255, 186, 44)
HSLhsl(40, 100%, 59%)
CMYKcmyk(0%, 27%, 83%, 0%)
LABlab(79.9 13.6 74.6)
LCHlch(79.9 75.9 79.6)
OKLCHoklch(0.832 0.162 79.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green72.9%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow82.7%
Key (black)0.0%

Color previews

#ffba2c text on a black background

contrast 12.31:1

Card sample

#ffba2c text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffba2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffba2c in the Color Lab